It seems you likely misplaced some braces and, in not understanding what was wrong, put semicolons (and a few other things) in wrong places since the compiler's errors probably suggested to do so. In any case, you've done a poor job of following the tutorial. Please learn a bit more about C++ and pay more attention to exactly what needs to be done to setup the compiler.