View Code of Problem 1

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  cout<<a+b<<endl
    return 0;
}
/*
Main.cc: In function 'int main()':
Main.cc:7:18: error: expected ';' before 'return'
   cout<<a+b<<endl
                  ^
                  ;
     return 0;
     ~~~~~~        
*/

Double click to view unformatted code.


Back to problem 1