fork download
  1. #include <iostream>
  2. #define endl '\n'
  3.  
  4. int main() {
  5. std::cout << "test" << std::endl;
  6. return 0;
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:2:14: error: expected unqualified-id before '\xa'
 #define endl '\n'
              ^
prog.cpp:5:30: note: in expansion of macro ‘endl’
  std::cout << "test" << std::endl;
                              ^
prog.cpp:2:14: error: expected ‘;’ before '\xa'
 #define endl '\n'
              ^
prog.cpp:5:30: note: in expansion of macro ‘endl’
  std::cout << "test" << std::endl;
                              ^
stdout
Standard output is empty