Lite-C does not allow you to declare int i where you did (initialization). Declare int i in a previous line.