0_0_17694391_20926.cpp:6:16: error: expected initializer before numeric constant
const int maxn 100001
^
0_0_17694391_20926.cpp:19:16: error: 'maxn' was not declared in this scope
vector<Node> b[maxn];
^
0_0_17694391_20926.cpp:20:7: error: 'maxn' was not declared in this scope
int f[maxn];
^
0_0_17694391_20926.cpp: In function 'int finds(int)':
0_0_17694391_20926.cpp:27:8: error: 'f' was not declared in this scope
if (f[x] == x) return x;
^
0_0_17694391_20926.cpp:28:12: error: 'f' was not declared in this scope
return f[x] = finds(f[x]);
^
0_0_17694391_20926.cpp: In function 'long long int Kruskal()':
0_0_17694391_20926.cpp:33:20: error: 'n' was not declared in this scope
for(int i=0; i<n; i++) f[i]=i;
^
0_0_17694391_20926.cpp:33:28: error: 'f' was not declared in this scope
for(int i=0; i<n; i++) f[i]=i;
^
0_0_17694391_20926.cpp:43:9: error: 'f' was not declared in this scope
f[x]=y;
^
0_0_17694391_20926.cpp:45:9: error: 'b' was not declared in this scope
b[a[i].x].push_back(Node(a[i].y,a[i].w));
^
0_0_17694391_20926.cpp: At global scope:
0_0_17694391_20926.cpp:50:7: error: 'maxn' was not declared in this scope
int s[maxn];
^
0_0_17694391_20926.cpp:51:10: error: 'maxn' was not declared in this scope
double d[maxn];
^
0_0_17694391_20926.cpp: In function 'void dfs(int, int)':
0_0_17694391_20926.cpp:54:5: error: 's' was not declared in this scope
s[root]=1;
^
0_0_17694391_20926.cpp:55:20: error: 'b' was not declared in this scope
for(int i=0; i<b[root].size(); i++)
^
0_0_17694391_20926.cpp:62:9: error: 'd' was not declared in this scope
d[root]+=d[son]+s[son]*(n-s[son])*l;
^
0_0_17694391_20926.cpp:62:33: error: 'n' was not declared in this scope
d[root]+=d[son]+s[son]*(n-s[son])*l;
^
0_0_17694391_20926.cpp: In function 'int main()':
0_0_17694391_20926.cpp:71:23: error: 'n' was not declared in this scope
scanf("%d%d",&n,&m);
^
0_0_17694391_20926.cpp:71:26: error: 'm' was not declared in this scope
scanf("%d%d",&n,&m);
^
0_0_17694391_20926.cpp:79:16: error: 's' was not declared in this scope
memset(s,0,sizeof(s));
^
0_0_17694391_20926.cpp:80:16: error: 'd' was not declared in this scope
memset(d,0,sizeof(d));
^
0_0_17694391_20926.cpp:82:13: error: 'b' was not declared in this scope
b[i].clear();
^
|