How to use build options in Ideone?

Asked

Viewed 137 times

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?

1 answer

5


One of the languages you can choose is C99 Strict

C99 strict no ideone

  • hehe! I never would have thought to look there.

  • Neither do they know: http://ideone.com/vjh5Fv

Browser other questions tagged

You are not signed in. Login or sign up in order to post.