As one who has recently started writing in 'C', I can identify with this problem! The answer is that you have omitted a semi-colon on a line prior to the point at which the error is indicated. The compiler has continued past the point where you expected the previous line to terminate and is trying to add the next line to it as one long statement, and naturally, getting perplexed.
Having written in hpl, RMB, Visual Basic etc. for many years I keep forgetting to put a semi-colon at the end of my C code lines, and it gets very irritating.
Good Luck!