Submission details
Task:A + B
Sender:Tuukka Korhonen
Submission time:2016-08-21 20:08:31 +0300
Language:C++
Status:COMPILE ERROR

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:4:2: error: 'cin' was not declared in this scope
  cin>>a>>b;
  ^~~
input/code.cpp:4:2: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:75:0,
                 from input/code.cpp:1:
/usr/include/c++/7/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^~~
input/code.cpp:5:2: error: 'cout' was not declared in this scope
  cout<<a+b<<endl;
  ^~~~
input/code.cpp:5:2: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:75:0,
                 from input/code.cpp:1:
/usr/include/c++/7/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^~~~
input/code.cpp:5:13: error: 'endl' was not declared in this scope
  cout<<a+b<<endl;
             ^~~~
input/code.cpp:5:13: note: suggested alternative:
In file included from /usr/include/...

Code

#include <bits/stdc++.h>
int main(){
	int a,b;
	cin>>a>>b;
	cout<<a+b<<endl;
}