Looking at these errors, and without seeing any code, I would say that you have a curly braces mismatch or incorrect placement. The errors all seem to indicate that the compiler thinks these lines of code are function signatures, not executable code within a function or main. If so, it's possible that a single error is causing all of these problems, or there are multiple problems of this type.
Looking further, at the final error, an extraneous closing brace, tells me that you have an extra closing brace or, more likely, are missing an opening brace within your code. It is almost certainly the last line of code before line 124. Either there is a closing brace there that shouldn't be, or the opening brace that pairs with it is missing.
When you figure it out, let us know in a comment what it was. ;-)
If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)