fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. #define PRINT(message)\
  5. print("Message: "message)
  6.  
  7. void print(const char* str)
  8. {
  9. cout<< str;
  10. }
  11. int main() {
  12. // your code goes here
  13. PRINT("hello");
  14. return 0;
  15. }
Compilation error #stdin compilation error #stdout 0s 4452KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:5:7: error: unable to find string literal operator ‘operator""message’ with ‘const char [10]’, ‘long unsigned int’ arguments
 print("Message: "message)
       ^
prog.cpp:13:3: note: in expansion of macro ‘PRINT’
   PRINT("hello");
   ^~~~~
stdout
Standard output is empty