You know, I have absolutely no knowledge of C++, but it looks like there are missing brackets at the end.
Don't yell at me if I'm wrong though. :(