0_0_17002882_4603.c: In function 'init':
0_0_17002882_4603.c:13:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0;i<N;i++)
^
0_0_17002882_4603.c:13:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_17002882_4603.c:15:13: error: redefinition of 'i'
for(int i=1;i<N;i++)
^
0_0_17002882_4603.c:13:13: note: previous definition of 'i' was here
for(int i=0;i<N;i++)
^
0_0_17002882_4603.c:15:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=1;i<N;i++)
^
0_0_17002882_4603.c:16:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=1;j<i;j++)
^
0_0_17002882_4603.c: In function 'main':
0_0_17002882_4603.c:23:27: error: 'EOF' undeclared (first use in this function)
while(scanf("%d",&n)!=EOF&&n)
^
0_0_17002882_4603.c:23:27: note: each undeclared identifier is reported only once for each function it appears in
|