0_0_20852002_18207\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_20852002_18207\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
^
0_0_20852002_18207\Main.java:3: 错误: 需要class, interface或enum
const int MOD = 1e9 + 7;
^
0_0_20852002_18207\Main.java:4: 错误: 需要class, interface或enum
typedef long long int LL;
^
0_0_20852002_18207\Main.java:5: 错误: 需要class, interface或enum
const int maxn = 100000 + 20;
^
0_0_20852002_18207\Main.java:7: 错误: 需要class, interface或enum
struct Node {
^
0_0_20852002_18207\Main.java:9: 错误: 需要class, interface或enum
}e[maxn * 2];
^
0_0_20852002_18207\Main.java:10: 错误: 需要class, interface或enum
int first[maxn], num;
^
0_0_20852002_18207\Main.java:11: 错误: 需要class, interface或enum
void addEdge(int u, int v) {
^
0_0_20852002_18207\Main.java:13: 错误: 需要class, interface或enum
e[num].u = u, e[num].v = v, e[num].tonext = first[u];
^
0_0_20852002_18207\Main.java:14: 错误: 需要class, interface或enum
first[u] = num;
^
0_0_20852002_18207\Main.java:15: 错误: 需要class, interface或enum
}
^
0_0_20852002_18207\Main.java:17: 错误: 需要class, interface或enum
const int root = 1;
^
0_0_20852002_18207\Main.java:18: 错误: 需要class, interface或enum
int vis[maxn], DFN, seta[maxn], setb[maxn], lena, lenb;
^
0_0_20852002_18207\Main.java:19: 错误: 需要class, interface或enum
int n, m;
^
0_0_20852002_18207\Main.java:20: 错误: 需要class, interface或enum
int mx;
^
0_0_20852002_18207\Main.java:21: 错误: 需要class, interface或enum
void calc(int cur, int cnt) {
^
0_0_20852002_18207\Main.java:23: 错误: 需要class, interface或enum
deep[cur] = cnt;
^
0_0_20852002_18207\Main.java:24: 错误: 需要class, interface或enum
mx = max(mx, cnt);
^
0_0_20852002_18207\Main.java:25: 错误: 需要class, interface或enum
for (int i = first[cur]; i; i = e[i].tonext) {
^
0_0_20852002_18207\Main.java:25: 错误: 需要class, interface或enum
for (int i = first[cur]; i; i = e[i].tonext) {
^
0_0_20852002_18207\Main.java:25: 错误: 需要class, interface或enum
for (int i = first[cur]; i; i = e[i].tonext) {
^
0_0_20852002_18207\Main.java:27: 错误: 需要class, interface或enum
if (vis[v] == DFN) continue;
^
0_0_20852002_18207\Main.java:28: 错误: 需要class, interface或enum
fa[v] = cur;
^
0_0_20852002_18207\Main.java:29: 错误: 需要class, interface或enum
calc(v, cnt + 1);
^
0_0_20852002_18207\Main.java:30: 错误: 需要class, interface或enum
}
^
0_0_20852002_18207\Main.java:34: 错误: 需要class, interface或enum
mx = 0;
^
0_0_20852002_18207\Main.java:35: 错误: 需要class, interface或enum
memset(first, 0, sizeof first);
^
0_0_20852002_18207\Main.java:36: 错误: 需要class, interface或enum
for (int i = 1; i <= n - 1; ++i) {
^
0_0_20852002_18207\Main.java:36: 错误: 需要class, interface或enum
for (int i = 1; i <= n - 1; ++i) {
^
0_0_20852002_18207\Main.java:36: 错误: 需要class, interface或enum
for (int i = 1; i <= n - 1; ++i) {
^
0_0_20852002_18207\Main.java:38: 错误: 需要class, interface或enum
scanf("%d%d", &u, &v);
^
0_0_20852002_18207\Main.java:39: 错误: 需要class, interface或enum
addEdge(u, v);
^
0_0_20852002_18207\Main.java:40: 错误: 需要class, interface或enum
addEdge(v, u);
^
0_0_20852002_18207\Main.java:41: 错误: 需要class, interface或enum
}
^
0_0_20852002_18207\Main.java:43: 错误: 需要class, interface或enum
fa[root] = root;
^
0_0_20852002_18207\Main.java:44: 错误: 需要class, interface或enum
calc(root, 1);
^
0_0_20852002_18207\Main.java:45: 错误: 需要class, interface或enum
for (int i = 1; i <= m; ++i) {
^
0_0_20852002_18207\Main.java:45: 错误: 需要class, interface或enum
for (int i = 1; i <= m; ++i) {
^
0_0_20852002_18207\Main.java:45: 错误: 需要class, interface或enum
for (int i = 1; i <= m; ++i) {
^
0_0_20852002_18207\Main.java:47: 错误: 需要class, interface或enum
lena = 0;
^
0_0_20852002_18207\Main.java:48: 错误: 需要class, interface或enum
int k;
^
0_0_20852002_18207\Main.java:49: 错误: 需要class, interface或enum
scanf("%d", &k);
^
0_0_20852002_18207\Main.java:50: 错误: 需要class, interface或enum
while (k--) {
^
0_0_20852002_18207\Main.java:52: 错误: 需要class, interface或enum
scanf("%d", &val);
^
0_0_20852002_18207\Main.java:53: 错误: 需要class, interface或enum
if (vis[val] == DFN) continue;
^
0_0_20852002_18207\Main.java:54: 错误: 需要class, interface或enum
seta[++lena] = val;
^
0_0_20852002_18207\Main.java:55: 错误: 需要class, interface或enum
vis[val] = DFN;
^
0_0_20852002_18207\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_20852002_18207\Main.java:58: 错误: 需要class, interface或enum
lenb = 0;
^
0_0_20852002_18207\Main.java:59: 错误: 需要class, interface或enum
scanf("%d", &k);
^
0_0_20852002_18207\Main.java:60: 错误: 需要class, interface或enum
while (k--) {
^
0_0_20852002_18207\Main.java:62: 错误: 需要class, interface或enum
scanf("%d", &val);
^
0_0_20852002_18207\Main.java:63: 错误: 需要class, interface或enum
if (vis[val] == DFN) continue;
^
0_0_20852002_18207\Main.java:64: 错误: 需要class, interface或enum
setb[++lenb] = val;
^
0_0_20852002_18207\Main.java:65: 错误: 需要class, interface或enum
vis[val] = DFN;
^
0_0_20852002_18207\Main.java:66: 错误: 需要class, interface或enum
}
^
0_0_20852002_18207\Main.java:69: 错误: 需要class, interface或enum
while (be <= en) {
^
0_0_20852002_18207\Main.java:71: 错误: 需要class, interface或enum
++DFN;
^
0_0_20852002_18207\Main.java:72: 错误: 需要class, interface或enum
for (int i = 1; i <= lena; ++i) {
^
0_0_20852002_18207\Main.java:72: 错误: 需要class, interface或enum
for (int i = 1; i <= lena; ++i) {
^
0_0_20852002_18207\Main.java:72: 错误: 需要class, interface或enum
for (int i = 1; i <= lena; ++i) {
^
0_0_20852002_18207\Main.java:74: 错误: 需要class, interface或enum
while (deep[now] > mid) {
^
0_0_20852002_18207\Main.java:76: 错误: 需要class, interface或enum
}
^
0_0_20852002_18207\Main.java:78: 错误: 需要class, interface或enum
}
^
0_0_20852002_18207\Main.java:80: 错误: 需要class, interface或enum
for (int i = 1; i <= lenb; ++i) {
^
0_0_20852002_18207\Main.java:80: 错误: 需要class, interface或enum
for (int i = 1; i <= lenb; ++i) {
^
0_0_20852002_18207\Main.java:80: 错误: 需要class, interface或enum
for (int i = 1; i <= lenb; ++i) {
^
0_0_20852002_18207\Main.java:82: 错误: 需要class, interface或enum
while (deep[now] > mid) {
^
0_0_20852002_18207\Main.java:84: 错误: 需要class, interface或enum
}
^
0_0_20852002_18207\Main.java:87: 错误: 需要class, interface或enum
break;
^
0_0_20852002_18207\Main.java:88: 错误: 需要class, interface或enum
}
^
0_0_20852002_18207\Main.java:91: 错误: 需要class, interface或enum
else en = mid - 1;
^
0_0_20852002_18207\Main.java:92: 错误: 需要class, interface或enum
}
^
0_0_20852002_18207\Main.java:94: 错误: 需要class, interface或enum
}
^
0_0_20852002_18207\Main.java:98: 错误: 非法字符: '#'
#ifdef local
^
0_0_20852002_18207\Main.java:100: 错误: 非法字符: '#'
#endif
^
0_0_20852002_18207\Main.java:101: 错误: 需要class, interface或enum
while (scanf("%d%d", &n, &m) != EOF) work();
^
0_0_20852002_18207\Main.java:102: 错误: 需要class, interface或enum
return 0;
^
0_0_20852002_18207\Main.java:103: 错误: 需要class, interface或enum
}
^
80 个错误
|