If syntax errors were so easy to fix, the compilers could do it automatically. The reason compilers don't automatically correct errors is because there's no way for the compiler to understand what the heck you're trying to write since it's not valid C++.