fork download
  1. //#include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << "Hello World" << endl;
  6. return 0;
  7. }
Compilation error #stdin compilation error #stdout 0s 4272KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:5:2: error: ‘cout’ was not declared in this scope
  cout << "Hello World" << endl;
  ^~~~
prog.cpp:5:27: error: ‘endl’ was not declared in this scope
  cout << "Hello World" << endl;
                           ^~~~
stdout
Standard output is empty