0_0_20675431_17300.cpp: In function 'int main()': 0_0_20675431_17300.cpp:30:9: error: 'cout' was not declared in this scope cout<<ans<<endl; ^ 0_0_20675431_17300.cpp:30:20: error: 'endl' was not declared in this scope cout<<ans<<endl; ^