0_0_30495368_4096\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_30495368_4096\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
^
0_0_30495368_4096\Main.java:2: 错误: 非法字符: '#'
#define ll long long
^
0_0_30495368_4096\Main.java:4: 错误: 需要class, interface或enum
int n,rt,t1,ru[200001],a[200001][2],mn[200001],sz[200001],ans[200001];
^
0_0_30495368_4096\Main.java:5: 错误: 需要class, interface或enum
ll p=1e9+7;
^
0_0_30495368_4096\Main.java:6: 错误: 需要class, interface或enum
void dfs(int x){
^
0_0_30495368_4096\Main.java:8: 错误: 需要class, interface或enum
sz[x]=1;mn[x]=x;
^
0_0_30495368_4096\Main.java:8: 错误: 需要class, interface或enum
sz[x]=1;mn[x]=x;
^
0_0_30495368_4096\Main.java:9: 错误: 需要class, interface或enum
if(a[x][0])dfs(a[x][0]),sz[x]+=sz[a[x][0]],mn[x]=min(mn[x],mn[a[x][0]]);
^
0_0_30495368_4096\Main.java:10: 错误: 需要class, interface或enum
if(a[x][1])dfs(a[x][1]),sz[x]+=sz[a[x][1]],mn[x]=min(mn[x],mn[a[x][1]]);
^
0_0_30495368_4096\Main.java:11: 错误: 需要class, interface或enum
}
^
0_0_30495368_4096\Main.java:14: 错误: 需要class, interface或enum
if(!x)return;
^
0_0_30495368_4096\Main.java:15: 错误: 需要class, interface或enum
u=a[x][0];v=a[x][1];
^
0_0_30495368_4096\Main.java:15: 错误: 需要class, interface或enum
u=a[x][0];v=a[x][1];
^
0_0_30495368_4096\Main.java:16: 错误: 需要class, interface或enum
if(x<min(mn[u],mn[v])){
^
0_0_30495368_4096\Main.java:18: 错误: 需要class, interface或enum
else if(sz[u]>sz[v])get(v,l,l+sz[v]-1),get(u,l+sz[v]+1,r),ans[x]=l+sz[v],flag=1;
^
0_0_30495368_4096\Main.java:19: 错误: 需要class, interface或enum
}
^
0_0_30495368_4096\Main.java:22: 错误: 需要class, interface或enum
else get(v,l,l+sz[v]-1),get(u,l+sz[v]+1,r),ans[x]=l+sz[v];
^
0_0_30495368_4096\Main.java:23: 错误: 需要class, interface或enum
}
^
0_0_30495368_4096\Main.java:27: 错误: 需要class, interface或enum
ll ha,hh,sum;
^
0_0_30495368_4096\Main.java:28: 错误: 需要class, interface或enum
scanf("%d",&t1);
^
0_0_30495368_4096\Main.java:29: 错误: 需要class, interface或enum
mn[0]=1e9;
^
0_0_30495368_4096\Main.java:30: 错误: 需要class, interface或enum
while(t1--){
^
0_0_30495368_4096\Main.java:32: 错误: 需要class, interface或enum
for(i=1;i<=n;i++)ru[i]=0;
^
0_0_30495368_4096\Main.java:32: 错误: 需要class, interface或enum
for(i=1;i<=n;i++)ru[i]=0;
^
0_0_30495368_4096\Main.java:32: 错误: 需要class, interface或enum
for(i=1;i<=n;i++)ru[i]=0;
^
0_0_30495368_4096\Main.java:33: 错误: 需要class, interface或enum
for(i=1;i<=n;i++){
^
0_0_30495368_4096\Main.java:33: 错误: 需要class, interface或enum
for(i=1;i<=n;i++){
^
0_0_30495368_4096\Main.java:33: 错误: 需要class, interface或enum
for(i=1;i<=n;i++){
^
0_0_30495368_4096\Main.java:35: 错误: 需要class, interface或enum
a[i][0]=x;a[i][1]=y;
^
0_0_30495368_4096\Main.java:35: 错误: 需要class, interface或enum
a[i][0]=x;a[i][1]=y;
^
0_0_30495368_4096\Main.java:36: 错误: 需要class, interface或enum
ru[x]++;ru[y]++;
^
0_0_30495368_4096\Main.java:36: 错误: 需要class, interface或enum
ru[x]++;ru[y]++;
^
0_0_30495368_4096\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_30495368_4096\Main.java:38: 错误: 需要class, interface或enum
for(i=1;i<=n;i++)if(!ru[i])rt=i;
^
0_0_30495368_4096\Main.java:38: 错误: 需要class, interface或enum
for(i=1;i<=n;i++)if(!ru[i])rt=i;
^
0_0_30495368_4096\Main.java:39: 错误: 需要class, interface或enum
dfs(rt);
^
0_0_30495368_4096\Main.java:40: 错误: 需要class, interface或enum
get(rt,1,n);
^
0_0_30495368_4096\Main.java:41: 错误: 需要class, interface或enum
ha=1;hh=0;sum=0;
^
0_0_30495368_4096\Main.java:41: 错误: 需要class, interface或enum
ha=1;hh=0;sum=0;
^
0_0_30495368_4096\Main.java:41: 错误: 需要class, interface或enum
ha=1;hh=0;sum=0;
^
0_0_30495368_4096\Main.java:42: 错误: 需要class, interface或enum
for(i=1;i<=n;i++)
^
0_0_30495368_4096\Main.java:42: 错误: 需要class, interface或enum
for(i=1;i<=n;i++)
^
0_0_30495368_4096\Main.java:42: 错误: 需要class, interface或enum
for(i=1;i<=n;i++)
^
0_0_30495368_4096\Main.java:44: 错误: 需要class, interface或enum
printf("%lld\n",sum);
^
0_0_30495368_4096\Main.java:45: 错误: 需要class, interface或enum
}
^
46 个错误
|