0_0_15917647_29301.c:41:1: error: unknown type name 'bool'
bool judge(int x,int y,int z)
^
0_0_15917647_29301.c: In function 'judge':
0_0_15917647_29301.c:52: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_15917647_29301.c:53:14: error: 'false' undeclared (first use in this function)
return false;
^
0_0_15917647_29301.c:53:14: note: each undeclared identifier is reported only once for each function it appears in
0_0_15917647_29301.c:55:9: error: 'true' undeclared (first use in this function)
return true;
^
0_0_15917647_29301.c: In function 'main':
0_0_15917647_29301.c:61:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int op=1;op<=t;op++)
^
0_0_15917647_29301.c:61:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_15917647_29301.c:64:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i=1;i<=n;i++)
^
0_0_15917647_29301.c:65:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j=1;j<=n;j++)
^
0_0_15917647_29301.c:67:13: error: redefinition of 'i'
for (int i=1;i<=n;i++) scanf("%d%d",&p[i],&q[i]);
^
0_0_15917647_29301.c:64:13: note: previous definition of 'i' was here
for (int i=1;i<=n;i++)
^
0_0_15917647_29301.c:67: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_15917647_29301.c:68:13: error: redefinition of 'i'
for (int i=1;i<=n;i++)
^
0_0_15917647_29301.c:67:13: note: previous definition of 'i' was here
for (int i=1;i<=n;i++) scanf("%d%d",&p[i],&q[i]);
^
0_0_15917647_29301.c:68:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i=1;i<=n;i++)
^
0_0_15917647_29301.c:69:14: error: redefinition of 'j'
for (int j=i+1;j<=n;j++)
^
0_0_15917647_29301.c:65:14: note: previous definition of 'j' was here
for (int j=1;j<=n;j++)
^
0_0_15917647_29301.c:69:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j=i+1;j<=n;j++)
^
0_0_15917647_29301.c:73:7: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int z=1;z<=n;z++)
^
0_0_15917647_29301.c:75:27: error: 'false' undeclared (first use in this function)
if (judge(i,j,z)==false) {kd=154; break;}
^
|