0_0_21396125_7402\Main.java:1: 错误: 非法字符: '#'
#include <cstring>
^
0_0_21396125_7402\Main.java:1: 错误: 需要class, interface或enum
#include <cstring>
^
0_0_21396125_7402\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_21396125_7402\Main.java:3: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_21396125_7402\Main.java:4: 错误: 非法字符: '#'
#include <cstdlib>
^
0_0_21396125_7402\Main.java:5: 错误: 非法字符: '#'
#include <cmath>
^
0_0_21396125_7402\Main.java:7: 错误: 需要class, interface或enum
const int N=40000+5;
^
0_0_21396125_7402\Main.java:8: 错误: 需要class, interface或enum
struct Edge{
^
0_0_21396125_7402\Main.java:10: 错误: 需要class, interface或enum
void set(){
^
0_0_21396125_7402\Main.java:12: 错误: 需要class, interface或enum
memset(x,0,sizeof x);
^
0_0_21396125_7402\Main.java:13: 错误: 需要class, interface或enum
memset(y,0,sizeof y);
^
0_0_21396125_7402\Main.java:14: 错误: 需要class, interface或enum
memset(z,0,sizeof z);
^
0_0_21396125_7402\Main.java:15: 错误: 需要class, interface或enum
memset(nxt,0,sizeof nxt);
^
0_0_21396125_7402\Main.java:16: 错误: 需要class, interface或enum
memset(fst,0,sizeof fst);
^
0_0_21396125_7402\Main.java:17: 错误: 需要class, interface或enum
}
^
0_0_21396125_7402\Main.java:20: 错误: 需要class, interface或enum
y[cnt]=b;
^
0_0_21396125_7402\Main.java:21: 错误: 需要class, interface或enum
z[cnt]=c;
^
0_0_21396125_7402\Main.java:22: 错误: 需要class, interface或enum
nxt[cnt]=fst[a];
^
0_0_21396125_7402\Main.java:23: 错误: 需要class, interface或enum
fst[a]=cnt;
^
0_0_21396125_7402\Main.java:24: 错误: 需要class, interface或enum
}
^
0_0_21396125_7402\Main.java:26: 错误: 需要class, interface或enum
int T,n,m,from,to,dist,in[N],rt,dis[N],fa[N],ans[N];
^
0_0_21396125_7402\Main.java:27: 错误: 需要class, interface或enum
bool vis[N];
^
0_0_21396125_7402\Main.java:28: 错误: 需要class, interface或enum
void dfs(int rt){
^
0_0_21396125_7402\Main.java:29: 错误: 需要class, interface或enum
for (int i=e.fst[rt];i;i=e.nxt[i]){
^
0_0_21396125_7402\Main.java:29: 错误: 需要class, interface或enum
for (int i=e.fst[rt];i;i=e.nxt[i]){
^
0_0_21396125_7402\Main.java:31: 错误: 需要class, interface或enum
dfs(e.y[i]);
^
0_0_21396125_7402\Main.java:32: 错误: 需要class, interface或enum
}
^
0_0_21396125_7402\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_21396125_7402\Main.java:38: 错误: 需要class, interface或enum
for (int i=e.fst[rt];i;i=e.nxt[i]){
^
0_0_21396125_7402\Main.java:38: 错误: 需要class, interface或enum
for (int i=e.fst[rt];i;i=e.nxt[i]){
^
0_0_21396125_7402\Main.java:40: 错误: 需要class, interface或enum
fa[getf(e.y[i])]=rt;
^
0_0_21396125_7402\Main.java:41: 错误: 需要class, interface或enum
}
^
0_0_21396125_7402\Main.java:43: 错误: 需要class, interface或enum
for (int i=q.fst[rt];i;i=q.nxt[i])
^
0_0_21396125_7402\Main.java:43: 错误: 需要class, interface或enum
for (int i=q.fst[rt];i;i=q.nxt[i])
^
0_0_21396125_7402\Main.java:43: 错误: 需要class, interface或enum
for (int i=q.fst[rt];i;i=q.nxt[i])
^
0_0_21396125_7402\Main.java:46: 错误: 需要class, interface或enum
}
^
0_0_21396125_7402\Main.java:49: 错误: 需要class, interface或enum
while (T--){
^
0_0_21396125_7402\Main.java:51: 错误: 需要class, interface或enum
memset(in,0,sizeof in);
^
0_0_21396125_7402\Main.java:52: 错误: 需要class, interface或enum
memset(vis,0,sizeof vis);
^
0_0_21396125_7402\Main.java:53: 错误: 需要class, interface或enum
memset(ans,0,sizeof ans);
^
0_0_21396125_7402\Main.java:54: 错误: 需要class, interface或enum
scanf("%d%d",&n,&m);
^
0_0_21396125_7402\Main.java:55: 错误: 需要class, interface或enum
for (int i=1;i<n;i++)
^
0_0_21396125_7402\Main.java:55: 错误: 需要class, interface或enum
for (int i=1;i<n;i++)
^
0_0_21396125_7402\Main.java:55: 错误: 需要class, interface或enum
for (int i=1;i<n;i++)
^
0_0_21396125_7402\Main.java:57: 错误: 需要class, interface或enum
for (int i=1;i<=m;i++)
^
0_0_21396125_7402\Main.java:57: 错误: 需要class, interface或enum
for (int i=1;i<=m;i++)
^
0_0_21396125_7402\Main.java:57: 错误: 需要class, interface或enum
for (int i=1;i<=m;i++)
^
0_0_21396125_7402\Main.java:59: 错误: 需要class, interface或enum
rt=0;
^
0_0_21396125_7402\Main.java:60: 错误: 需要class, interface或enum
for (int i=1;i<=n&&rt==0;i++)
^
0_0_21396125_7402\Main.java:60: 错误: 需要class, interface或enum
for (int i=1;i<=n&&rt==0;i++)
^
0_0_21396125_7402\Main.java:60: 错误: 需要class, interface或enum
for (int i=1;i<=n&&rt==0;i++)
^
0_0_21396125_7402\Main.java:63: 错误: 需要class, interface或enum
dis[rt]=0;
^
0_0_21396125_7402\Main.java:64: 错误: 需要class, interface或enum
dfs(rt);
^
0_0_21396125_7402\Main.java:65: 错误: 需要class, interface或enum
for (int i=1;i<=n;i++)
^
0_0_21396125_7402\Main.java:65: 错误: 需要class, interface或enum
for (int i=1;i<=n;i++)
^
0_0_21396125_7402\Main.java:65: 错误: 需要class, interface或enum
for (int i=1;i<=n;i++)
^
0_0_21396125_7402\Main.java:67: 错误: 需要class, interface或enum
LCA(rt);
^
0_0_21396125_7402\Main.java:68: 错误: 需要class, interface或enum
for (int i=1;i<=m;i++)
^
0_0_21396125_7402\Main.java:68: 错误: 需要class, interface或enum
for (int i=1;i<=m;i++)
^
0_0_21396125_7402\Main.java:68: 错误: 需要class, interface或enum
for (int i=1;i<=m;i++)
^
0_0_21396125_7402\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_21396125_7402\Main.java:72: 错误: 需要class, interface或enum
}
^
62 个错误
|