0_0_31073717_15756.cpp: In function 'int main()': 0_0_31073717_15756.cpp:16:21: error: 'sum' was not declared in this scope sum=sum+c; ^ 0_0_31073717_15756.cpp:18:23: error: 'sum' was not declared in this scope cout<<sum<<endl; ^