C++ syntax check