0_0_27491737_20433.cpp: In function 'int main()': 0_0_27491737_20433.cpp:58:7: error: 'cout' was not declared in this scope cout<<cnt<<endl; ^ 0_0_27491737_20433.cpp:58:18: error: 'endl' was not declared in this scope cout<<cnt<<endl; ^