How can I detect my coding mistake when I receive this message

link to the code: I am getting the following error when i am running th code.

"error: expected identifieror '(' "

I use gedit to write this code. I would appreciate some support guys ;)

Thanks in advance!, Vicente


There's shouldn't be a semicolon in the int main(void); declaration.

Try replacing line 4 with: int main(void) instead.

Also, please read up on C function declaration syntax

 int main(void);
               ^you should not do this.

And you forgot to put ; after this statement -

int height=n

And also n is not declared in your program.

Need Your Help

Compiling TypeScript project composed of many files/modules to single file


I'm writing a TypeScript application, and requirements mandate that it be compiled to a single file; I don't want to lose out on defining modules, and to make the project easier to manage, I want t...