fork download
  1. #include <stdio.h>
  2.  
  3. const int x = 4711;
  4. enum {y = 4711};
  5.  
  6. int main() {
  7. #if 0
  8. *(int*)&x = 4712;
  9. printf("%d",x);
  10. #else
  11. y=4712;
  12. #endif
  13. return 0;
  14. }
  15.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:11:6: error: lvalue required as left operand of assignment
     y=4712;
      ^
stdout
Standard output is empty