0_0_16170518_19127.cpp: In function 'int main()': 0_0_16170518_19127.cpp:11:9: error: 'flag' was not declared in this scope flag=0; ^