0_0_36087089_22487.cpp:3:1: error: expected ';' before 'int' int main(){ ^ 0_0_36087089_22487.cpp: In function 'int main()': 0_0_36087089_22487.cpp:17:21: error: 'flag' was not declared in this scope flag=1; ^