>>Siggy

Make sure that you understand why was your code wrong, why you have to use char[50] instead of char, why you use int e (); before main.
Understanding why is much more important that just knowing the answer.