View Code of Problem 1

include<iostream>
  using namespace std;
int main()
  {
    int a,b;
    cin>>a>>b;
    cout<<a+b;
    return 0;
  }
  
/*
Main.cc:1:1: error: 'include' does not name a type
 include<iostream>
 ^
Main.cc: In function 'int main()':
Main.cc:6:5: error: 'cin' was not declared in this scope
     cin>>a>>b;
     ^
Main.cc:7:5: error: 'cout' was not declared in this scope
     cout<<a+b;
     ^
*/

Double click to view unformatted code.


Back to problem 1