fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. #define myNode NodeP
  5. #define f(x) fp(x##NodeStr)
  6.  
  7. int fp(void * x)
  8. {
  9. return 0 ;
  10. }
  11. int main() {
  12.  
  13. void * NodePNodeStr = NULL;
  14. f( myNode);
  15. // your code goes here
  16. return 0;
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:14:5: error: 'myNodeNodeStr' was not declared in this scope
  f( myNode);
     ^
prog.cpp:5:17: note: in definition of macro 'f'
 #define f(x) fp(x##NodeStr)
                 ^
stdout
Standard output is empty