#include <stdio.h>int numbers[3] = {1, 2, 3}; int main(void) { for (int i = 0; i < 3; i++) { printf ("%i \n", numbers[i]); } return 0; }
Standard input is empty
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
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!