0_0_38245700_21882.cpp:55:5: error: expected unqualified-id before 'if' if(flag) ^ 0_0_38245700_21882.cpp:57:1: error: expected declaration before '}' token } ^