fork download
  1. #define foo(x) ((x) / 7 + 8)
  2.  
  3. void foo() {
  4. }
  5.  
  6. int main() {
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:19: error: expected unqualified-id before ‘)’ token
 #define foo(x) ((x) / 7 + 8)
                   ^
prog.cpp:3:6: note: in expansion of macro ‘foo’
 void foo() {
      ^~~
prog.cpp:1:21: error: expected ‘)’ before ‘/’ token
 #define foo(x) ((x) / 7 + 8)
                     ^
prog.cpp:3:6: note: in expansion of macro ‘foo’
 void foo() {
      ^~~
stdout
Standard output is empty