Q:'for' loop initial declaration used outside C99 mode?
add "std=c99" to Makefile