0_0_26925728_2700\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_26925728_2700\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
^
0_0_26925728_2700\Main.java:2: 错误: 非法字符: '#'
#include <set>
^
0_0_26925728_2700\Main.java:3: 错误: 非法字符: '#'
#include <cmath>
^
0_0_26925728_2700\Main.java:4: 错误: 非法字符: '#'
#include <stdio.h>
^
0_0_26925728_2700\Main.java:5: 错误: 非法字符: '#'
#include <cstring>
^
0_0_26925728_2700\Main.java:6: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_26925728_2700\Main.java:7: 错误: 非法字符: '#'
#include <vector>
^
0_0_26925728_2700\Main.java:8: 错误: 非法字符: '#'
#include <queue>
^
0_0_26925728_2700\Main.java:9: 错误: 非法字符: '#'
#include <map>
^
0_0_26925728_2700\Main.java:11: 错误: 需要class, interface或enum
typedef long long LL;
^
0_0_26925728_2700\Main.java:12: 错误: 非法字符: '#'
#define inf 0x7f7f7f7f
^
0_0_26925728_2700\Main.java:12: 错误: 需要class, interface或enum
#define inf 0x7f7f7f7f
^
0_0_26925728_2700\Main.java:15: 错误: 需要class, interface或enum
const int maxn = 2e5 + 5;
^
0_0_26925728_2700\Main.java:16: 错误: 需要class, interface或enum
struct edge{
^
0_0_26925728_2700\Main.java:18: 错误: 需要class, interface或enum
}e[maxn];
^
0_0_26925728_2700\Main.java:19: 错误: 需要class, interface或enum
int head[maxn], tot;
^
0_0_26925728_2700\Main.java:20: 错误: 需要class, interface或enum
int cnt_son[maxn];
^
0_0_26925728_2700\Main.java:22: 错误: 需要class, interface或enum
void addedge(int u, int v)
^
0_0_26925728_2700\Main.java:25: 错误: 需要class, interface或enum
e[tot].u = u;
^
0_0_26925728_2700\Main.java:26: 错误: 需要class, interface或enum
e[tot].nxt = head[u];
^
0_0_26925728_2700\Main.java:27: 错误: 需要class, interface或enum
head[u] = tot++;
^
0_0_26925728_2700\Main.java:28: 错误: 需要class, interface或enum
e[tot].v = u;
^
0_0_26925728_2700\Main.java:29: 错误: 需要class, interface或enum
e[tot].u = v;
^
0_0_26925728_2700\Main.java:30: 错误: 需要class, interface或enum
e[tot].nxt = head[v];
^
0_0_26925728_2700\Main.java:31: 错误: 需要class, interface或enum
head[v] = tot++;
^
0_0_26925728_2700\Main.java:32: 错误: 需要class, interface或enum
}
^
0_0_26925728_2700\Main.java:37: 错误: 需要class, interface或enum
for(int i = 0; i <= n; i++){
^
0_0_26925728_2700\Main.java:37: 错误: 需要class, interface或enum
for(int i = 0; i <= n; i++){
^
0_0_26925728_2700\Main.java:37: 错误: 需要class, interface或enum
for(int i = 0; i <= n; i++){
^
0_0_26925728_2700\Main.java:39: 错误: 需要class, interface或enum
cnt_son[i] = 0;
^
0_0_26925728_2700\Main.java:40: 错误: 需要class, interface或enum
}
^
0_0_26925728_2700\Main.java:45: 错误: 需要class, interface或enum
for(int i = head[rt]; i != -1; i = e[i].nxt){
^
0_0_26925728_2700\Main.java:45: 错误: 需要class, interface或enum
for(int i = head[rt]; i != -1; i = e[i].nxt){
^
0_0_26925728_2700\Main.java:47: 错误: 需要class, interface或enum
dfs(e[i].v, rt);
^
0_0_26925728_2700\Main.java:48: 错误: 需要class, interface或enum
cnt_son[rt] += cnt_son[e[i].v];
^
0_0_26925728_2700\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_26925728_2700\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_26925728_2700\Main.java:56: 错误: 需要class, interface或enum
while(t--){
^
0_0_26925728_2700\Main.java:58: 错误: 需要class, interface或enum
init();
^
0_0_26925728_2700\Main.java:59: 错误: 需要class, interface或enum
for(int i = 0; i < n - 1; i++){
^
0_0_26925728_2700\Main.java:59: 错误: 需要class, interface或enum
for(int i = 0; i < n - 1; i++){
^
0_0_26925728_2700\Main.java:59: 错误: 需要class, interface或enum
for(int i = 0; i < n - 1; i++){
^
0_0_26925728_2700\Main.java:61: 错误: 需要class, interface或enum
scanf("%d%d", &u, &v);
^
0_0_26925728_2700\Main.java:62: 错误: 需要class, interface或enum
addedge(u, v);
^
0_0_26925728_2700\Main.java:63: 错误: 需要class, interface或enum
}
^
0_0_26925728_2700\Main.java:66: 错误: 需要class, interface或enum
int cnt = 0;
^
0_0_26925728_2700\Main.java:70: 错误: 需要class, interface或enum
for(int i = 0; i < tot; i++){
^
0_0_26925728_2700\Main.java:70: 错误: 需要class, interface或enum
for(int i = 0; i < tot; i++){
^
0_0_26925728_2700\Main.java:70: 错误: 需要class, interface或enum
for(int i = 0; i < tot; i++){
^
0_0_26925728_2700\Main.java:72: 错误: 需要class, interface或enum
if(cnt_son[u] < cnt_son[v]){
^
0_0_26925728_2700\Main.java:74: 错误: 需要class, interface或enum
}
^
0_0_26925728_2700\Main.java:77: 错误: 需要class, interface或enum
}
^
0_0_26925728_2700\Main.java:80: 错误: 需要class, interface或enum
}
^
0_0_26925728_2700\Main.java:82: 错误: 需要class, interface或enum
}
^
55 个错误
|