0_0_29020066_32565.cpp: In function 'int main()': 0_0_29020066_32565.cpp:25:3: error: 'cout' was not declared in this scope cout<<sum[n]<<endl; ^ 0_0_29020066_32565.cpp:25:17: error: 'endl' was not declared in this scope cout<<sum[n]<<endl; ^