0_0_17024614_19303.cpp:8:7: error: 'N' was not declared in this scope
int f[N]; //并查集
^
0_0_17024614_19303.cpp: In function 'int kruskal(int, int)':
0_0_17024614_19303.cpp:12:11: error: 'p' was not declared in this scope
sort (p, p+m, cmp);
^
0_0_17024614_19303.cpp:12:19: error: 'cmp' was not declared in this scope
sort (p, p+m, cmp);
^
0_0_17024614_19303.cpp:12:22: error: 'sort' was not declared in this scope
sort (p, p+m, cmp);
^
0_0_17024614_19303.cpp:14:9: error: 'f' was not declared in this scope
f[i] = i;
^
0_0_17024614_19303.cpp:18:29: error: 'find' was not declared in this scope
int t1 = find(p[i].s), t2 = find(p[i].e);
^
0_0_17024614_19303.cpp:19:19: error: 't2' was not declared in this scope
if (t1 != t2){
^
0_0_17024614_19303.cpp:21:13: error: 'f' was not declared in this scope
f[t1] = t2;
^
0_0_17024614_19303.cpp:27:29: error: 'find' was not declared in this scope
if (!i) tmp = find(i);
^
0_0_17024614_19303.cpp:28:31: error: 'find' was not declared in this scope
else if (tmp != find(i)) return -1;
^
|