fork download
  1. #include <stdio.h>
  2. #pragma GCC poison new
  3. int main(void)
  4. {
  5. int new=5; // oops compiler error use of poisoned identifer new.
  6. printf("%d",new);
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:5:8: error: attempt to use poisoned "new"
    int new=5;  // oops compiler error use of poisoned identifer new.
        ^
prog.c:6:16: error: attempt to use poisoned "new"
    printf("%d",new);
                ^
stdout
Standard output is empty