0_0_28913200_4289.cpp: In function 'int main()': 0_0_28913200_4289.cpp:29:7: error: 'cnt' was not declared in this scope cnt++; ^ 0_0_28913200_4289.cpp:36:12: error: 'cnt' was not declared in this scope cout <<cnt<<endl; ^