0_0_38418911_20470.cpp:1:9: error: expected unqualified-id before 'if' if(h=='\n'){ ^ 0_0_38418911_20470.cpp:6:5: error: expected declaration before '}' token } ^