0_0_22911411_21481.cpp: In function 'int main()': 0_0_22911411_21481.cpp:77:17: error: 'cout' was not declared in this scope cout<<sum<<endl; ^ 0_0_22911411_21481.cpp:77:28: error: 'endl' was not declared in this scope cout<<sum<<endl; ^