0_0_24785581_27545.cpp: In function 'int main()': 0_0_24785581_27545.cpp:10:9: error: 'flag1' was not declared in this scope flag1=false; ^ 0_0_24785581_27545.cpp:11:9: error: 'flag2' was not declared in this scope flag2=false; ^