fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. for(int i=0;i<10;i++)printf("%d\n",i);
  5. return 0;
  6. }
  7.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:4:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
  for(int i=0;i<10;i++)printf("%d\n",i);
  ^
prog.c:4:2: note: use option -std=c99 or -std=gnu99 to compile your code
stdout
Standard output is empty