0_0_21356510_12652.cpp: In function 'int main()': 0_0_21356510_12652.cpp:8:16: error: 'flag2' was not declared in this scope flag=0,flag2=0; ^