0_0_32663621_18111\Main.java:1: 错误: 非法字符: '#'
#include<iostream>
^
0_0_32663621_18111\Main.java:1: 错误: 需要class, interface或enum
#include<iostream>
^
0_0_32663621_18111\Main.java:2: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_32663621_18111\Main.java:3: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_32663621_18111\Main.java:4: 错误: 非法字符: '#'
#include<queue>
^
0_0_32663621_18111\Main.java:5: 错误: 非法字符: '#'
#include<cmath>
^
0_0_32663621_18111\Main.java:6: 错误: 非法字符: '#'
#include<cstring>
^
0_0_32663621_18111\Main.java:8: 错误: 需要class, interface或enum
typedef long long LL;
^
0_0_32663621_18111\Main.java:10: 错误: 需要class, interface或enum
const int maxn=2e5+50;
^
0_0_32663621_18111\Main.java:12: 错误: 需要class, interface或enum
int node[maxn], cur;
^
0_0_32663621_18111\Main.java:13: 错误: 需要class, interface或enum
int num[maxn];
^
0_0_32663621_18111\Main.java:15: 错误: 需要class, interface或enum
struct E{
^
0_0_32663621_18111\Main.java:17: 错误: 需要class, interface或enum
}e[maxn*2];
^
0_0_32663621_18111\Main.java:19: 错误: 需要class, interface或enum
void add(int a,int b){
^
0_0_32663621_18111\Main.java:21: 错误: 需要class, interface或enum
e[cur].b = b;
^
0_0_32663621_18111\Main.java:22: 错误: 需要class, interface或enum
e[cur].next = node[a];
^
0_0_32663621_18111\Main.java:23: 错误: 需要class, interface或enum
node[a] = cur;
^
0_0_32663621_18111\Main.java:24: 错误: 需要class, interface或enum
}
^
0_0_32663621_18111\Main.java:27: 错误: 需要class, interface或enum
for(int k=node[x]; k; k=e[k].next){
^
0_0_32663621_18111\Main.java:27: 错误: 需要class, interface或enum
for(int k=node[x]; k; k=e[k].next){
^
0_0_32663621_18111\Main.java:27: 错误: 需要class, interface或enum
for(int k=node[x]; k; k=e[k].next){
^
0_0_32663621_18111\Main.java:29: 错误: 需要class, interface或enum
if(b!=pre) dfs(b, x);
^
0_0_32663621_18111\Main.java:30: 错误: 需要class, interface或enum
num[x] += num[b];
^
0_0_32663621_18111\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_32663621_18111\Main.java:37: 错误: 需要class, interface或enum
cin>>T;
^
0_0_32663621_18111\Main.java:38: 错误: 需要class, interface或enum
while(T--){
^
0_0_32663621_18111\Main.java:40: 错误: 需要class, interface或enum
cur = 0;
^
0_0_32663621_18111\Main.java:41: 错误: 需要class, interface或enum
int n, k;
^
0_0_32663621_18111\Main.java:42: 错误: 需要class, interface或enum
cin>>n>>k;
^
0_0_32663621_18111\Main.java:43: 错误: 需要class, interface或enum
for(int i=1; i<=n-1; i++){
^
0_0_32663621_18111\Main.java:43: 错误: 需要class, interface或enum
for(int i=1; i<=n-1; i++){
^
0_0_32663621_18111\Main.java:43: 错误: 需要class, interface或enum
for(int i=1; i<=n-1; i++){
^
0_0_32663621_18111\Main.java:45: 错误: 需要class, interface或enum
scanf("%d%d",&a,&b);
^
0_0_32663621_18111\Main.java:46: 错误: 需要class, interface或enum
add(a,b), add(b,a);
^
0_0_32663621_18111\Main.java:47: 错误: 需要class, interface或enum
}
^
0_0_32663621_18111\Main.java:49: 错误: 需要class, interface或enum
int ans=0;
^
0_0_32663621_18111\Main.java:50: 错误: 需要class, interface或enum
for(int i=2; i<=n; i++) if(num[i]>=k && (n-num[i]>=k)) ans++;
^
0_0_32663621_18111\Main.java:50: 错误: 需要class, interface或enum
for(int i=2; i<=n; i++) if(num[i]>=k && (n-num[i]>=k)) ans++;
^
0_0_32663621_18111\Main.java:50: 错误: 需要class, interface或enum
for(int i=2; i<=n; i++) if(num[i]>=k && (n-num[i]>=k)) ans++;
^
0_0_32663621_18111\Main.java:51: 错误: 需要class, interface或enum
printf("%d\n",ans);
^
0_0_32663621_18111\Main.java:52: 错误: 需要class, interface或enum
}
^
41 个错误
|