0_0_31454568_16467.cpp: In function 'int main()': 0_0_31454568_16467.cpp:21:5: error: 'flag' was not declared in this scope flag=0; ^ 0_0_31454568_16467.cpp:25:6: error: 'flag' was not declared in this scope if(flag==0) ^