View Code of Problem 1

#include<iostream>
using namespace std;
int main(void)
{
    int a,b;
    while (cin>>a>>b)
        cout<<a+b<<endl;
    return 0;

/*
Main.cc: In function 'int main()':
Main.cc:9:13: error: expected '}' at end of input
     return 0;
             ^
*/

Double click to view unformatted code.


Back to problem 1