wvmarle:
The solution in this case: scour your code and find the extraneous } which can be lots of lines before where the error is thrown, literally hundreds of lines, this kind of errors can be hard to find. Doing a Ctrl-T helps a lot, it fixes your indentation and that in turn helps you to find where the offending block is.To understand error messages, make sure you understand C++ syntax, as in fact the error message does tell you pretty much what's wrong: something with the } token, and you should know you must have the { and } tokens balanced.
it was hard to find but i found it, i knew it had to be balanced but then again i didn't get the error code. Thats why i asked if you knew a site, i did diffrent courses on tutorialspoint.com about c++ from beginner and then steps up that helped alot back then but the error codes weren't included in there
unfortunately.