fork download
  1. #define foo 123
  2.  
  3. int main() {
  4. int foo = 456;
  5. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:1:13: error: expected unqualified-id before numeric constant
 #define foo 123
             ^
prog.cpp:4:6: note: in expansion of macro ‘foo’
  int foo = 456;
      ^~~
stdout
Standard output is empty