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:5:3: error: 'cin' was not declared in this scope
   cin>>a>>b;
   ^
Main.cc:6:3: error: 'cout' was not declared in this scope
   cout<<a+b;
   ^
*/

Double click to view unformatted code.


Back to problem 1