0_0_15010739_13762.c:9:13: error: expected identifier or '(' before '/' token
int dist[N];//到根节点的距离
^
0_0_15010739_13762.c:9:13: error: stray '\265' in program
0_0_15010739_13762.c:9:13: error: stray '\275' in program
0_0_15010739_13762.c:9:13: error: stray '\270' in program
0_0_15010739_13762.c:9:13: error: stray '\371' in program
0_0_15010739_13762.c:9:13: error: stray '\275' in program
0_0_15010739_13762.c:9:13: error: stray '\332' in program
0_0_15010739_13762.c:9:13: error: stray '\265' in program
0_0_15010739_13762.c:9:13: error: stray '\343' in program
0_0_15010739_13762.c:9:13: error: stray '\265' in program
0_0_15010739_13762.c:9:13: error: stray '\304' in program
0_0_15010739_13762.c:9:13: error: stray '\276' in program
0_0_15010739_13762.c:9:13: error: stray '\340' in program
0_0_15010739_13762.c:9:13: error: stray '\300' in program
0_0_15010739_13762.c:9:13: error: stray '\353' in program
0_0_15010739_13762.c:16:1: error: unknown type name 'Edge'
Edge E[N << 1];
^
0_0_15010739_13762.c: In function 'Add':
0_0_15010739_13762.c:20:8: error: request for member 'to' in something not a structure or union
E[tot].to = v; E[tot].val = w; E[tot].next = Head[u]; Head[u] = tot++;
^
0_0_15010739_13762.c:20:23: error: request for member 'val' in something not a structure or union
E[tot].to = v; E[tot].val = w; E[tot].next = Head[u]; Head[u] = tot++;
^
0_0_15010739_13762.c:20:39: error: request for member 'next' in something not a structure or union
E[tot].to = v; E[tot].val = w; E[tot].next = Head[u]; Head[u] = tot++;
^
0_0_15010739_13762.c: In function 'Init':
0_0_15010739_13762.c:25:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i <= n; i++)
^
0_0_15010739_13762.c:25:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_15010739_13762.c: In function 'dfs1':
0_0_15010739_13762.c:37:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = Head[root]; i != -1; i = E[i].next)
^
0_0_15010739_13762.c:37:44: error: request for member 'next' in something not a structure or union
for (int i = Head[root]; i != -1; i = E[i].next)
^
0_0_15010739_13762.c:39:15: error: request for member 'to' in something not a structure or union
int u = E[i].to;
^
0_0_15010739_13762.c:40:15: error: request for member 'val' in something not a structure or union
int v = E[i].val;
^
0_0_15010739_13762.c: In function 'dfs2':
0_0_15010739_13762.c:55:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = Head[root]; i != -1; i = E[i].next)
^
0_0_15010739_13762.c:55:44: error: request for member 'next' in something not a structure or union
for (int i = Head[root]; i != -1; i = E[i].next)
^
0_0_15010739_13762.c:57:15: error: request for member 'to' in something not a structure or union
int u = E[i].to;
^
0_0_15010739_13762.c: In function 'Scan':
0_0_15010739_13762.c:85:43: error: expected expression before '/' token
if ((ch = getchar()) == '-') //判断正负
^
0_0_15010739_13762.c:85:43: error: stray '\305' in program
0_0_15010739_13762.c:85:43: error: stray '\320' in program
0_0_15010739_13762.c:85:43: error: stray '\266' in program
0_0_15010739_13762.c:85:43: error: stray '\317' in program
0_0_15010739_13762.c:85:43: error: stray '\325' in program
0_0_15010739_13762.c:85:43: error: stray '\375' in program
0_0_15010739_13762.c:85:43: error: stray '\270' in program
0_0_15010739_13762.c:85:43: error: stray '\272' in program
0_0_15010739_13762.c:88:45: error: expected expression before '/' token
else if (ch >= '0' && ch <= '9') //得到完整的数
^
0_0_15010739_13762.c:88:45: error: stray '\265' in program
0_0_15010739_13762.c:88:45: error: stray '\303' in program
0_0_15010739_13762.c:88:45: error: stray '\265' in program
0_0_15010739_13762.c:88:45: error: stray '\275' in program
0_0_15010739_13762.c:88:45: error: stray '\315' in program
0_0_15010739_13762.c:88:45: error: stray '\352' in program
0_0_15010739_13762.c:88:45: error: stray '\325' in program
0_0_15010739_13762.c:88:45: error: stray '\373' in program
0_0_15010739_13762.c:88:45: error: stray '\265' in program
0_0_15010739_13762.c:88:45: error: stray '\304' in program
0_0_15010739_13762.c:88:45: error: stray '\312' in program
0_0_15010739_13762.c:88:45: error: stray '\375' in program
0_0_15010739_13762.c: In function 'main':
0_0_15010739_13762.c:99:2: error: expected expression before '/' token
//freopen("data.txt", "r", stdin);
^
0_0_15010739_13762.c:103:3: error: expected expression before '/' token
//scanf("%d%d", &n, &m);
^
0_0_15010739_13762.c:109:4: error: expected expression before '/' token
//scanf("%d%d%d", &a, &b, &c);
^
0_0_15010739_13762.c:120:4: error: expected expression before '/' token
//scanf("%d%d", &a, &b);
^
|