0_0_15917606_6962.c: In function 'det':
0_0_15917606_6962.c:11:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=1;i<=n;i++)
^
0_0_15917606_6962.c:11:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_15917606_6962.c:12:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=1;j<=n;j++)
^
0_0_15917606_6962.c:15:13: error: redefinition of 'i'
for(int i=1;i<=n;i++)
^
0_0_15917606_6962.c:11:10: note: previous definition of 'i' was here
for(int i=1;i<=n;i++)
^
0_0_15917606_6962.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_15917606_6962.c:17:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=i+1;j<=n;j++)
^
0_0_15917606_6962.c:25:17: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int k=i;k<=n;k++)
^
0_0_15917606_6962.c:27:25: error: redefinition of 'k'
for(int k=i;k<=n;k++)
^
0_0_15917606_6962.c:25:25: note: previous definition of 'k' was here
for(int k=i;k<=n;k++)
^
0_0_15917606_6962.c:27:17: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int k=i;k<=n;k++)
^
0_0_15917606_6962.c: At top level:
0_0_15917606_6962.c:40:1: error: unknown type name 'bool'
bool judge(int x,int y,int z)
^
0_0_15917606_6962.c: In function 'judge':
0_0_15917606_6962.c:51:33: error: expected ')' before 'or'
if ((p[x]<p[z]&&p[z]<p[y]) or (p[x]>p[z]&&p[z]>p[y]))
^
0_0_15917606_6962.c:52:14: error: 'false' undeclared (first use in this function)
return false;
^
0_0_15917606_6962.c:52:14: note: each undeclared identifier is reported only once for each function it appears in
0_0_15917606_6962.c:54:9: error: 'true' undeclared (first use in this function)
return true;
^
0_0_15917606_6962.c: In function 'main':
0_0_15917606_6962.c:60:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int op=1;op<=t;op++)
^
0_0_15917606_6962.c:63:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i=1;i<=n;i++)
^
0_0_15917606_6962.c:64:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j=1;j<=n;j++)
^
0_0_15917606_6962.c:66:13: error: redefinition of 'i'
for (int i=1;i<=n;i++) scanf("%d%d",&p[i],&q[i]);
^
0_0_15917606_6962.c:63:13: note: previous definition of 'i' was here
for (int i=1;i<=n;i++)
^
0_0_15917606_6962.c:66:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i=1;i<=n;i++) scanf("%d%d",&p[i],&q[i]);
^
0_0_15917606_6962.c:67:13: error: redefinition of 'i'
for (int i=1;i<=n;i++)
^
0_0_15917606_6962.c:66:13: note: previous definition of 'i' was here
for (int i=1;i<=n;i++) scanf("%d%d",&p[i],&q[i]);
^
0_0_15917606_6962.c:67:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i=1;i<=n;i++)
^
0_0_15917606_6962.c:68:14: error: redefinition of 'j'
for (int j=i+1;j<=n;j++)
^
0_0_15917606_6962.c:64:14: note: previous definition of 'j' was here
for (int j=1;j<=n;j++)
^
0_0_15917606_6962.c:68:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j=i+1;j<=n;j++)
^
0_0_15917606_6962.c:72:7: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int z=1;z<=n;z++)
^
0_0_15917606_6962.c:74:27: error: 'false' undeclared (first use in this function)
if (judge(i,j,z)==false) {kd=154; break;}
^
|