It looks like you copy/pasted some of the code which is a frequent cause of things like this. Also, being able to keep track of braces is why I always but both the opening and closing brace on their own line so that they line up (when properly indented). Then, it's extremely easy to see where you're missing one.
In this particular code, it's immediately above the line where the compiler threw an error.
Also, if you use Notepad++, it has "matching brace highlighting" which can help finding this also.