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

link to the code: http://gyazo.com/f0f4004eb606607ecaa021b5e22e6e06 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

Answers


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 https://msdn.microsoft.com/en-us/library/c4d5ssht.aspx.


 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

typescript

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...