0_0_33484053_9887.cpp: In function 'int main()': 0_0_33484053_9887.cpp:40:9: error: 'flag' was not declared in this scope flag=0;cnt=0; ^