0_0_26638643_22942\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_26638643_22942\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
^
0_0_26638643_22942\Main.java:3: 错误: 需要class, interface或enum
const int maxn=200005;
^
0_0_26638643_22942\Main.java:4: 错误: 需要class, interface或enum
struct data
^
0_0_26638643_22942\Main.java:7: 错误: 需要class, interface或enum
int next;
^
0_0_26638643_22942\Main.java:8: 错误: 需要class, interface或enum
};
^
0_0_26638643_22942\Main.java:9: 错误: 需要class, interface或enum
data E[maxn*2];
^
0_0_26638643_22942\Main.java:10: 错误: 需要class, interface或enum
int head[maxn],sz[maxn];
^
0_0_26638643_22942\Main.java:11: 错误: 需要class, interface或enum
int tot,n,k,ans;
^
0_0_26638643_22942\Main.java:12: 错误: 需要class, interface或enum
void add(int u,int v)
^
0_0_26638643_22942\Main.java:15: 错误: 需要class, interface或enum
E[tot].next=head[u];
^
0_0_26638643_22942\Main.java:16: 错误: 需要class, interface或enum
head[u]=tot;
^
0_0_26638643_22942\Main.java:17: 错误: 需要class, interface或enum
}
^
0_0_26638643_22942\Main.java:21: 错误: 需要class, interface或enum
sz[u]=1;
^
0_0_26638643_22942\Main.java:22: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=E[i].next)
^
0_0_26638643_22942\Main.java:22: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=E[i].next)
^
0_0_26638643_22942\Main.java:22: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=E[i].next)
^
0_0_26638643_22942\Main.java:25: 错误: 需要class, interface或enum
if(v!=fa)
^
0_0_26638643_22942\Main.java:28: 错误: 需要class, interface或enum
sz[u]+=sz[v];
^
0_0_26638643_22942\Main.java:29: 错误: 需要class, interface或enum
}
^
0_0_26638643_22942\Main.java:33: 错误: 需要class, interface或enum
}
^
0_0_26638643_22942\Main.java:37: 错误: 需要class, interface或enum
int x,y;
^
0_0_26638643_22942\Main.java:38: 错误: 需要class, interface或enum
scanf("%d",&T);
^
0_0_26638643_22942\Main.java:39: 错误: 需要class, interface或enum
while(T--)
^
0_0_26638643_22942\Main.java:42: 错误: 需要class, interface或enum
tot=0;
^
0_0_26638643_22942\Main.java:43: 错误: 需要class, interface或enum
ans=0;
^
0_0_26638643_22942\Main.java:44: 错误: 需要class, interface或enum
scanf("%d %d",&n,&k);
^
0_0_26638643_22942\Main.java:45: 错误: 需要class, interface或enum
for(int i=1;i<n;i++)
^
0_0_26638643_22942\Main.java:45: 错误: 需要class, interface或enum
for(int i=1;i<n;i++)
^
0_0_26638643_22942\Main.java:45: 错误: 需要class, interface或enum
for(int i=1;i<n;i++)
^
0_0_26638643_22942\Main.java:48: 错误: 需要class, interface或enum
add(x,y);
^
0_0_26638643_22942\Main.java:49: 错误: 需要class, interface或enum
add(y,x);
^
0_0_26638643_22942\Main.java:50: 错误: 需要class, interface或enum
}
^
0_0_26638643_22942\Main.java:52: 错误: 需要class, interface或enum
printf("%d\n",ans);
^
0_0_26638643_22942\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_26638643_22942\Main.java:55: 错误: 需要class, interface或enum
}
^
36 个错误
|