Fix only the first error (or at most the first 2 errors) before recompiling (rebuilding).
Compilers sometimes appear to give suggestions on fixing errors. These are usually wrong, especially after the first few errors reported.
A missing semicolon at the end of one statement will usually be reported as an error on the next statement. So look at the line before the one the compiler indicates in this case.