fork download
  1. #define CONCAT(a,b) CONCAT_(a,b)
  2. #define CONCAT_(a,b) a##b
  3. #define FCT( x ) fct( CONCAT($,x), CONCAT(@,x).first_line, CONCAT(@,x).first_column )
  4. FCT(2)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:1: error: pasting "@" and "2" does not give a valid preprocessing token
prog.cpp:4: error: stray ‘@’ in program
prog.cpp:4:1: error: pasting "@" and "2" does not give a valid preprocessing token
prog.cpp:4: error: stray ‘@’ in program
prog.cpp:4: error: expected constructor, destructor, or type conversion before ‘(’ token
stdout
Standard output is empty