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