0_0_33971497_25996.cpp: In function 'int main()': 0_0_33971497_25996.cpp:40:7: error: 'flag' was not declared in this scope if(flag == 0) ^