** for loop initial declarations are only allowed in c99 mode ** 如下: 报错: “在 for 循环语句头中初始化变量,只在 c99 标准里被允许” 因为 gcc 是基于 c89 标准,可以换成 c99 标准。或变量在语句外定义: