0_0_24601525_16612.cpp: In function 'int main()': 0_0_24601525_16612.cpp:58:13: error: 'cout' was not declared in this scope cout<<sum[i]<<endl; ^ 0_0_24601525_16612.cpp:58:27: error: 'endl' was not declared in this scope cout<<sum[i]<<endl; ^