0_0_15917594_24975.c:4:1: error: unknown type name 'using'
using namespace std;
^
0_0_15917594_24975.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
using namespace std;
^
0_0_15917594_24975.c: In function 'det':
0_0_15917594_24975.c:12:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=1;i<=n;i++)
^
0_0_15917594_24975.c:12:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_15917594_24975.c:13:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=1;j<=n;j++)
^
0_0_15917594_24975.c:16:13: error: redefinition of 'i'
for(int i=1;i<=n;i++)
^
0_0_15917594_24975.c:12:10: note: previous definition of 'i' was here
for(int i=1;i<=n;i++)
^
0_0_15917594_24975.c:16:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=1;i<=n;i++)
^
0_0_15917594_24975.c:18:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=i+1;j<=n;j++)
^
0_0_15917594_24975.c:26:17: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int k=i;k<=n;k++)
^
0_0_15917594_24975.c:28:25: error: redefinition of 'k'
for(int k=i;k<=n;k++)
^
0_0_15917594_24975.c:26:25: note: previous definition of 'k' was here
for(int k=i;k<=n;k++)
^
0_0_15917594_24975.c:28:17: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int k=i;k<=n;k++)
^
0_0_15917594_24975.c: At top level:
0_0_15917594_24975.c:41:1: error: unknown type name 'bool'
bool judge(int x,int y,int z)
^
0_0_15917594_24975.c: In function 'judge':
0_0_15917594_24975.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_15917594_24975.c:53:14: error: 'false' undeclared (first use in this function)
return false;
^
0_0_15917594_24975.c:53:14: note: each undeclared identifier is reported only once for each function it appears in
0_0_15917594_24975.c:55:9: error: 'true' undeclared (first use in this function)
return true;
^
0_0_15917594_24975.c: In function 'main':
0_0_15917594_24975.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_15917594_24975.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_15917594_24975.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_15917594_24975.c:67:13: error: redefinition of 'i'
for (int i=1;i<=n;i++) scanf("%d%d",&p[i],&q[i]);
^
0_0_15917594_24975.c:64:13: note: previous definition of 'i' was here
for (int i=1;i<=n;i++)
^
0_0_15917594_24975.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_15917594_24975.c:68:13: error: redefinition of 'i'
for (int i=1;i<=n;i++)
^
0_0_15917594_24975.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_15917594_24975.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_15917594_24975.c:69:14: error: redefinition of 'j'
for (int j=i+1;j<=n;j++)
^
0_0_15917594_24975.c:65:14: note: previous definition of 'j' was here
for (int j=1;j<=n;j++)
^
0_0_15917594_24975.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_15917594_24975.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_15917594_24975.c:75:27: error: 'false' undeclared (first use in this function)
if (judge(i,j,z)==false) {kd=154; break;}
^
|