Job 17391

Owner
Dr.Manhattan
Problem
A+B
Source
0.08KB
Result
Compile error (Non-zero exit status: 1)

Compiler output

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

Questions?

Sponsors Gold