0_0_29444971_17277\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_29444971_17277\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
^
0_0_29444971_17277\Main.java:6: 错误: 需要class, interface或enum
const int N=2e5+5;
^
0_0_29444971_17277\Main.java:7: 错误: 需要class, interface或enum
vector<int> g[N];
^
0_0_29444971_17277\Main.java:8: 错误: 需要class, interface或enum
int fa[N];
^
0_0_29444971_17277\Main.java:9: 错误: 需要class, interface或enum
int sum[N];
^
0_0_29444971_17277\Main.java:10: 错误: 需要class, interface或enum
int n,k;
^
0_0_29444971_17277\Main.java:11: 错误: 需要class, interface或enum
int st,ed;
^
0_0_29444971_17277\Main.java:12: 错误: 需要class, interface或enum
int tot;
^
0_0_29444971_17277\Main.java:13: 错误: 需要class, interface或enum
bool f=false;
^
0_0_29444971_17277\Main.java:14: 错误: 需要class, interface或enum
int root=0;
^
0_0_29444971_17277\Main.java:15: 错误: 需要class, interface或enum
bool cnt[N];
^
0_0_29444971_17277\Main.java:16: 错误: 需要class, interface或enum
void dfs2(int u,int father,int deep)
^
0_0_29444971_17277\Main.java:19: 错误: 需要class, interface或enum
sum[u]=1;
^
0_0_29444971_17277\Main.java:20: 错误: 需要class, interface或enum
for(int v:g[u]){
^
0_0_29444971_17277\Main.java:23: 错误: 需要class, interface或enum
sum[u]+=sum[v];
^
0_0_29444971_17277\Main.java:24: 错误: 需要class, interface或enum
}
^
0_0_29444971_17277\Main.java:28: 错误: 需要class, interface或enum
}
^
0_0_29444971_17277\Main.java:33: 错误: 需要class, interface或enum
sum[u]=1;
^
0_0_29444971_17277\Main.java:34: 错误: 需要class, interface或enum
for(int v:g[u]){
^
0_0_29444971_17277\Main.java:37: 错误: 需要class, interface或enum
sum[u]+=sum[v];
^
0_0_29444971_17277\Main.java:38: 错误: 需要class, interface或enum
if(f){
^
0_0_29444971_17277\Main.java:40: 错误: 需要class, interface或enum
}
^
0_0_29444971_17277\Main.java:44: 错误: 需要class, interface或enum
if(sum[u]>=k){
^
0_0_29444971_17277\Main.java:46: 错误: 需要class, interface或enum
}
^
0_0_29444971_17277\Main.java:48: 错误: 需要class, interface或enum
}
^
0_0_29444971_17277\Main.java:53: 错误: 需要class, interface或enum
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
^
0_0_29444971_17277\Main.java:53: 错误: 需要class, interface或enum
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
^
0_0_29444971_17277\Main.java:54: 错误: 需要class, interface或enum
int T;
^
0_0_29444971_17277\Main.java:55: 错误: 需要class, interface或enum
cin>>T;
^
0_0_29444971_17277\Main.java:56: 错误: 需要class, interface或enum
while(T--){
^
0_0_29444971_17277\Main.java:58: 错误: 需要class, interface或enum
st=-1,ed=-1;
^
0_0_29444971_17277\Main.java:59: 错误: 需要class, interface或enum
tot=0;
^
0_0_29444971_17277\Main.java:60: 错误: 需要class, interface或enum
cin>>n>>k;
^
0_0_29444971_17277\Main.java:61: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++) g[i].clear();
^
0_0_29444971_17277\Main.java:61: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++) g[i].clear();
^
0_0_29444971_17277\Main.java:61: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++) g[i].clear();
^
0_0_29444971_17277\Main.java:62: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++) cnt[i]=0;
^
0_0_29444971_17277\Main.java:62: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++) cnt[i]=0;
^
0_0_29444971_17277\Main.java:62: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++) cnt[i]=0;
^
0_0_29444971_17277\Main.java:63: 错误: 需要class, interface或enum
for(int i=0;i<n-1;i++){
^
0_0_29444971_17277\Main.java:63: 错误: 需要class, interface或enum
for(int i=0;i<n-1;i++){
^
0_0_29444971_17277\Main.java:63: 错误: 需要class, interface或enum
for(int i=0;i<n-1;i++){
^
0_0_29444971_17277\Main.java:65: 错误: 需要class, interface或enum
cin>>u>>v;
^
0_0_29444971_17277\Main.java:66: 错误: 需要class, interface或enum
g[u].emplace_back(v);
^
0_0_29444971_17277\Main.java:67: 错误: 需要class, interface或enum
g[v].emplace_back(u);
^
0_0_29444971_17277\Main.java:68: 错误: 需要class, interface或enum
}
^
0_0_29444971_17277\Main.java:71: 错误: 需要class, interface或enum
if(root==0){
^
0_0_29444971_17277\Main.java:73: 错误: 需要class, interface或enum
continue;
^
0_0_29444971_17277\Main.java:74: 错误: 需要class, interface或enum
}
^
0_0_29444971_17277\Main.java:76: 错误: 需要class, interface或enum
dfs(root,fa[root],1);
^
0_0_29444971_17277\Main.java:77: 错误: 需要class, interface或enum
for(int v:g[root]){
^
0_0_29444971_17277\Main.java:80: 错误: 需要class, interface或enum
}
^
0_0_29444971_17277\Main.java:83: 错误: 需要class, interface或enum
}
^
0_0_29444971_17277\Main.java:85: 错误: 需要class, interface或enum
}
^
55 个错误
|