#include <iostream> #define endl '\n' int main() { std::cout << "test" << std::endl; return 0; }
Standard input is empty
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;
^
Standard output is empty