0_0_23642055_13317.cpp: In function 'int main()': 0_0_23642055_13317.cpp:39:3: error: 'cout' was not declared in this scope cout << ans << endl; ^ 0_0_23642055_13317.cpp:39:18: error: 'endl' was not declared in this scope cout << ans << endl; ^