0_0_22770605_30538\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_22770605_30538\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
^
0_0_22770605_30538\Main.java:3: 错误: 需要class, interface或enum
int T, n, k, ans;
^
0_0_22770605_30538\Main.java:4: 错误: 需要class, interface或enum
const int maxn = 200000 + 5;
^
0_0_22770605_30538\Main.java:5: 错误: 需要class, interface或enum
vector<int>G[maxn];
^
0_0_22770605_30538\Main.java:6: 错误: 需要class, interface或enum
int siz[maxn];
^
0_0_22770605_30538\Main.java:7: 错误: 需要class, interface或enum
int dfs(int cur, int fa)
^
0_0_22770605_30538\Main.java:10: 错误: 需要class, interface或enum
for(auto o : G[cur]) if(o != fa)
^
0_0_22770605_30538\Main.java:13: 错误: 需要class, interface或enum
int temp = min(sonSize, n - sonSize);
^
0_0_22770605_30538\Main.java:14: 错误: 需要class, interface或enum
ans = max(ans, temp / k);
^
0_0_22770605_30538\Main.java:15: 错误: 需要class, interface或enum
siz[cur] += siz[o];
^
0_0_22770605_30538\Main.java:16: 错误: 需要class, interface或enum
}
^
0_0_22770605_30538\Main.java:18: 错误: 需要class, interface或enum
}
^
0_0_22770605_30538\Main.java:22: 错误: 需要class, interface或enum
while(T--)
^
0_0_22770605_30538\Main.java:25: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) G[i].clear();
^
0_0_22770605_30538\Main.java:25: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) G[i].clear();
^
0_0_22770605_30538\Main.java:25: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) G[i].clear();
^
0_0_22770605_30538\Main.java:26: 错误: 需要class, interface或enum
for(int i = 0; i < n - 1; i++)
^
0_0_22770605_30538\Main.java:26: 错误: 需要class, interface或enum
for(int i = 0; i < n - 1; i++)
^
0_0_22770605_30538\Main.java:26: 错误: 需要class, interface或enum
for(int i = 0; i < n - 1; i++)
^
0_0_22770605_30538\Main.java:29: 错误: 需要class, interface或enum
scanf("%d%d", &x, &y);
^
0_0_22770605_30538\Main.java:30: 错误: 需要class, interface或enum
G[x].push_back(y);
^
0_0_22770605_30538\Main.java:31: 错误: 需要class, interface或enum
G[y].push_back(x);
^
0_0_22770605_30538\Main.java:32: 错误: 需要class, interface或enum
}
^
0_0_22770605_30538\Main.java:34: 错误: 需要class, interface或enum
dfs(1, -1);
^
0_0_22770605_30538\Main.java:35: 错误: 需要class, interface或enum
printf("%d\n", ans);
^
0_0_22770605_30538\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_22770605_30538\Main.java:38: 错误: 需要class, interface或enum
}
^
28 个错误
|