0_0_34653609_24409\Main.java:6: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_34653609_24409\Main.java:6: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
^
0_0_34653609_24409\Main.java:8: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_34653609_24409\Main.java:9: 错误: 需要class, interface或enum
const int N = 2e5 + 10;
^
0_0_34653609_24409\Main.java:11: 错误: 需要class, interface或enum
vector<int> T[N];
^
0_0_34653609_24409\Main.java:12: 错误: 需要class, interface或enum
int a[N];
^
0_0_34653609_24409\Main.java:13: 错误: 需要class, interface或enum
int n, k, res;
^
0_0_34653609_24409\Main.java:15: 错误: 需要class, interface或enum
int dfs(int u, int fa) {
^
0_0_34653609_24409\Main.java:17: 错误: 需要class, interface或enum
for (auto v : T[u]) {
^
0_0_34653609_24409\Main.java:20: 错误: 需要class, interface或enum
}
^
0_0_34653609_24409\Main.java:22: 错误: 需要class, interface或enum
return a[u];
^
0_0_34653609_24409\Main.java:23: 错误: 需要class, interface或enum
}
^
0_0_34653609_24409\Main.java:28: 错误: 需要class, interface或enum
cin >> t;
^
0_0_34653609_24409\Main.java:29: 错误: 需要class, interface或enum
while (t--) {
^
0_0_34653609_24409\Main.java:31: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) T[i].clear();
^
0_0_34653609_24409\Main.java:31: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) T[i].clear();
^
0_0_34653609_24409\Main.java:31: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) T[i].clear();
^
0_0_34653609_24409\Main.java:32: 错误: 需要class, interface或enum
for (int i = 1; i <= n - 1; i++) {
^
0_0_34653609_24409\Main.java:32: 错误: 需要class, interface或enum
for (int i = 1; i <= n - 1; i++) {
^
0_0_34653609_24409\Main.java:32: 错误: 需要class, interface或enum
for (int i = 1; i <= n - 1; i++) {
^
0_0_34653609_24409\Main.java:34: 错误: 需要class, interface或enum
scanf("%d%d", &u, &v);
^
0_0_34653609_24409\Main.java:35: 错误: 需要class, interface或enum
T[u].push_back(v);
^
0_0_34653609_24409\Main.java:36: 错误: 需要class, interface或enum
T[v].push_back(u);
^
0_0_34653609_24409\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_34653609_24409\Main.java:39: 错误: 需要class, interface或enum
dfs(1, -1);
^
0_0_34653609_24409\Main.java:40: 错误: 需要class, interface或enum
cout << res << '\n';
^
0_0_34653609_24409\Main.java:41: 错误: 需要class, interface或enum
}
^
0_0_34653609_24409\Main.java:43: 错误: 需要class, interface或enum
}
^
28 个错误
|