0_0_17571984_19026.cpp: In function 'int main()': 0_0_17571984_19026.cpp:49:3: error: 'flag' was not declared in this scope flag=1; ^