[Error] 'for' loop initial declarations are only allowed in C99 or C11 mode