0_0_33536453_30335.c:3:1: error: unknown type name 'using'
using namespace std;
^
0_0_33536453_30335.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
using namespace std;
^
0_0_33536453_30335.c:9:2: error: variably modified 'e' at file scope
}e[500 * N];
^
0_0_33536453_30335.c:12:5: error: variably modified 'head' at file scope
int head[N];
^
0_0_33536453_30335.c:13:5: error: variably modified 'd' at file scope
int d[N];
^
0_0_33536453_30335.c:21:5: error: variably modified 'q' at file scope
int q[N * N * N];
^
0_0_33536453_30335.c: In function 'bfs':
0_0_33536453_30335.c:30:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i=head[cur];i!=-1;i=e[i].nxt) {
^
0_0_33536453_30335.c:30:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_33536453_30335.c: In function 'dfs':
0_0_33536453_30335.c:43:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i=head[a];i!=-1 && r<b;i=e[i].nxt) {
^
0_0_33536453_30335.c: In function 'main':
0_0_33536453_30335.c:68:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i=1;i<=m;i++) {
^
0_0_33536453_30335.c:73:6: error: missing terminating " character
printf ("%d\n%
^
0_0_33536453_30335.c:73:6: error: expected expression at end of input
0_0_33536453_30335.c:73:6: error: expected declaration or statement at end of input
0_0_33536453_30335.c:73:6: error: expected declaration or statement at end of input
|