Your main-declaration isn't complete.
main should return a integer and if you don't need the parameter, than write 'void' in the function parentheses.
It should look like:
Code:
int main(void) {
…
Your problem is a wrong bracket. The bracket in front of the (not working) 'else' is an open-bracket.
This should be an closing-bracket (i think).
If you use a editor with parentheses highlighting, you have seen this problem.