0_0_18619909_20651.c: In function 'main':
0_0_18619909_20651.c:17:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0;i<=n;i++)
^
0_0_18619909_20651.c:17:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_18619909_20651.c:22:17: error: redefinition of 'i'
for(int i=0;i<=n;i++)
^
0_0_18619909_20651.c:17:17: note: previous definition of 'i' was here
for(int i=0;i<=n;i++)
^
0_0_18619909_20651.c:22:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0;i<=n;i++)
^
0_0_18619909_20651.c:24:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=i;j<=n;j++)
^
0_0_18619909_20651.c:26:17: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int k=0;k<=n;k++)set[k]=k;
^
0_0_18619909_20651.c:27:25: error: redefinition of 'k'
for(int k=0;k<=n;k++)
^
0_0_18619909_20651.c:26:25: note: previous definition of 'k' was here
for(int k=0;k<=n;k++)set[k]=k;
^
0_0_18619909_20651.c:27:17: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int k=0;k<=n;k++)
^
0_0_18619909_20651.c:36:25: error: redefinition of 'k'
for(int k=1;k<=n;k++)if(set[k]==k)flag++;
^
0_0_18619909_20651.c:27:25: note: previous definition of 'k' was here
for(int k=0;k<=n;k++)
^
0_0_18619909_20651.c:36:17: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int k=1;k<=n;k++)if(set[k]==k)flag++;
^
|