0_0_16937538_16787.cpp: In function 'int main()': 0_0_16937538_16787.cpp:23:17: error: 'flag' was not declared in this scope flag=0; ^