fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int const *ptr 5;
  6.  
  7. printf("%d\r\n",++(*ptr));
  8.  
  9. return 0;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
  int const *ptr 5;
                 ^
prog.c:5:17: warning: statement with no effect [-Wunused-value]
prog.c:7:22: error: 'ptr' undeclared (first use in this function)
  printf("%d\r\n",++(*ptr));
                      ^
prog.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
stdout
Standard output is empty