Kryptkat already mentioned that you need to use int main. Once you do that, you need to make sure main returns an int at the end, usually 0.

As for the program automatically "taking character...