Please, Alexis929, try to enhance your question or you are not likely to get any answer.
Firstly, please read here about how to post code:
http://www.cplusplus.com/articles/jEywvCM9/
Secondly, please try to post compilable or nearly compilable code (it implies that there should be a
main(), if possible).
If your code has been written in C++, then there should be the definitions of
print() and
GetInt(), shouldn’t they?
Thirdly, please try to keep a consistent indentation style; we would appreciate if you used a more widespread style, one we could be used to.
And, what about choosing a less generic object for your question?
Talking of your problem, how can we help you? What could we add that the compiler hasn’t already told you?
I think you know every
else should match an
if - so please check if there’s some stray
else, which has not been preceded by an
if.
Happy coding.