5
Yesterday in answering this question wanted to test it on Ideone, while running the code I received this error:
Prog. c: In Function 'main': Prog. c:12:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode is (int i = 0; i < k-1; j++) Prog. c:12:9: note: use option -Std=C99, -Std=gnu99, -Std=C11 or -Std=gnu11 to Compile your code
I understood that the problem was in the statement of i
within the for
and that the solution would be to use one of these compile options or declare the variable outside the for
.
As I couldn’t find where to use the build options I had to use the other solution.
So the question remains:
You can use build options in Ideone?
If yes, how?
hehe! I never would have thought to look there.
– ramaral
Neither do they know: http://ideone.com/vjh5Fv
– Ivan Ferrer