error: ‘for’ loop initial declarations are only allowed in C99 mode.

Some errors you might encounter when you compile with code::blocks.

One of many reasons is you have written code like:

To solve this error, just write code like this:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.