Job 17817

Owner
Septimiu Bodica
Problem
A+B
Source
0.09KB
Result
Compile error (Non-zero exit status: 1)

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:5:14: error: 'a' was not declared in this scope
  std::cin >> a >> b;
              ^
prog.cpp:5:19: error: 'b' was not declared in this scope
  std::cin >> a >> b;
                   ^
prog.cpp:6:2: error: 'cout' was not declared in this scope
  cout << a + b << '\n';
  ^
prog.cpp:6:2: note: suggested alternative:
In file included from prog.cpp:1:0:
/usr/include/c++/4.9/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^

Questions?

Sponsors Gold