test.c: In function ‘main’:
test.c:5:1: error: parameter name omitted
int main(int,char**)
^
test.c:5:1: error: parameter name omitted
test.c: In function ‘foo1’:
test.c:22:5: error: ‘for’ loop initial declarations are only allowed in C9
9 mode
for( int i=0; i<100; ++i ) a[i] = 111;
^
test.c:22:5: note: use option -std=c99 or -std=gnu99 to compile your code
出错了
【 在 liuxueshen 的大作中提到: 】
: 试试这个:
: void foo();
: void foo1();
: ...................
--
FROM 218.29.119.*