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