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