0_0_33852908_29175.cpp:4:10: error: 'maxn' was not declared in this scope
int head[maxn],nume;
^
0_0_33852908_29175.cpp:5:35: error: 'maxm' was not declared in this scope
struct edge { int v,w,c,next; } e[maxm]; // v顶点,w权值,c花费
^
0_0_33852908_29175.cpp: In function 'void init_edge()':
0_0_33852908_29175.cpp:6:34: error: 'head' was not declared in this scope
inline void init_edge() { memset(head,-1,sizeof head); nume=0; }
^
0_0_33852908_29175.cpp:6:53: error: 'memset' was not declared in this scope
inline void init_edge() { memset(head,-1,sizeof head); nume=0; }
^
0_0_33852908_29175.cpp: In function 'void add_edge(int, int, int, int)':
0_0_33852908_29175.cpp:8:5: error: 'e' was not declared in this scope
e[nume].v=v; e[nume].w=w; e[nume].c=c;
^
0_0_33852908_29175.cpp:9:18: error: 'head' was not declared in this scope
e[nume].next=head[u]; head[u]=nume++;
^
0_0_33852908_29175.cpp: In function 'void dfs(int, int)':
0_0_33852908_29175.cpp:13:2: error: 'sz' was not declared in this scope
sz[u]=1;
^
0_0_33852908_29175.cpp:14:2: error: 'mx' was not declared in this scope
mx[u]=0;
^
0_0_33852908_29175.cpp:15:12: error: 'head' was not declared in this scope
for(int i=head[u];~i;i=e[i].next)
^
0_0_33852908_29175.cpp:15:25: error: 'e' was not declared in this scope
for(int i=head[u];~i;i=e[i].next)
^
0_0_33852908_29175.cpp:18:13: error: 'vis' was not declared in this scope
if(v!=f&&!vis[v])
^
0_0_33852908_29175.cpp:22:25: error: 'max' was not declared in this scope
mx[u]=max(mx[u],mx[v]);
^
0_0_33852908_29175.cpp: In function 'int dfs2(int, int, int)':
0_0_33852908_29175.cpp:29:12: error: 'head' was not declared in this scope
for(int i=head[u];~i;i=e[i].next)
^
0_0_33852908_29175.cpp:29:25: error: 'e' was not declared in this scope
for(int i=head[u];~i;i=e[i].next)
^
0_0_33852908_29175.cpp:32:13: error: 'vis' was not declared in this scope
if(v!=f&&!vis[v])
^
0_0_33852908_29175.cpp:34:16: error: 'mx' was not declared in this scope
if(minn>max(mx[u],size-sz[u]))
^
0_0_33852908_29175.cpp:34:27: error: 'sz' was not declared in this scope
if(minn>max(mx[u],size-sz[u]))
^
0_0_33852908_29175.cpp:34:32: error: 'max' was not declared in this scope
if(minn>max(mx[u],size-sz[u]))
^
0_0_33852908_29175.cpp: In function 'int dfs3(int, int)':
0_0_33852908_29175.cpp:45:12: error: 'head' was not declared in this scope
for(int i=head[u];~i;i=e[i].next)
^
0_0_33852908_29175.cpp:45:25: error: 'e' was not declared in this scope
for(int i=head[u];~i;i=e[i].next)
^
0_0_33852908_29175.cpp:48:13: error: 'vis' was not declared in this scope
if(v!=f&&!vis[v])
^
0_0_33852908_29175.cpp:50:4: error: 'c' was not declared in this scope
c[v]=c[u]+1;
^
0_0_33852908_29175.cpp:51:4: error: 'l' was not declared in this scope
l[v]=i>>1;
^
0_0_33852908_29175.cpp:52:4: error: 'g' was not declared in this scope
g[c[v]]++;
^
0_0_33852908_29175.cpp: In function 'void node_div(int)':
0_0_33852908_29175.cpp:60:7: error: 'sz' was not declared in this scope
minn=sz[u],mint=-1;
^
0_0_33852908_29175.cpp:62:3: error: 'g' was not declared in this scope
g[i]=0;
^
0_0_33852908_29175.cpp:65:2: error: 'c' was not declared in this scope
c[node]=0;
^
0_0_33852908_29175.cpp:66:2: error: 'g' was not declared in this scope
g[0]++;
^
0_0_33852908_29175.cpp:71:2: error: 'vis' was not declared in this scope
vis[node]=1;
^
0_0_33852908_29175.cpp: In function 'int main()':
0_0_33852908_29175.cpp:75:14: error: 'T' was not declared in this scope
scanf("%d",&T);
^
0_0_33852908_29175.cpp:78:17: error: 'n' was not declared in this scope
scanf("%d%d",&n,&k);
^
0_0_33852908_29175.cpp:78:20: error: 'k' was not declared in this scope
scanf("%d%d",&n,&k);
^
0_0_33852908_29175.cpp:82:18: error: 'u' was not declared in this scope
scanf("%d%d",&u,&v);
^
0_0_33852908_29175.cpp:82:21: error: 'v' was not declared in this scope
scanf("%d%d",&u,&v);
^
0_0_33852908_29175.cpp:86:10: error: 'vis' was not declared in this scope
memset(vis,0,sizeof vis);
^
0_0_33852908_29175.cpp:86:26: error: 'memset' was not declared in this scope
memset(vis,0,sizeof vis);
^
|