0_0_30723916_24129\Main.java:1: 错误: 非法字符: '#'
#include<iostream>
^
0_0_30723916_24129\Main.java:1: 错误: 需要class, interface或enum
#include<iostream>
^
0_0_30723916_24129\Main.java:2: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_30723916_24129\Main.java:3: 错误: 非法字符: '#'
#include<cstring>
^
0_0_30723916_24129\Main.java:5: 错误: 需要class, interface或enum
const int MAX=1000;
^
0_0_30723916_24129\Main.java:6: 错误: 需要class, interface或enum
int head[MAX],cnt;
^
0_0_30723916_24129\Main.java:7: 错误: 需要class, interface或enum
struct Edge{
^
0_0_30723916_24129\Main.java:9: 错误: 需要class, interface或enum
}edge[MAX*2];
^
0_0_30723916_24129\Main.java:10: 错误: 需要class, interface或enum
inline void add(int u,int v)
^
0_0_30723916_24129\Main.java:13: 错误: 需要class, interface或enum
edge[cnt].next=head[u];
^
0_0_30723916_24129\Main.java:14: 错误: 需要class, interface或enum
head[u]=cnt++;
^
0_0_30723916_24129\Main.java:15: 错误: 需要class, interface或enum
}
^
0_0_30723916_24129\Main.java:17: 错误: 需要class, interface或enum
void dfs(int u,int f)
^
0_0_30723916_24129\Main.java:20: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=edge[i].next)
^
0_0_30723916_24129\Main.java:20: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=edge[i].next)
^
0_0_30723916_24129\Main.java:20: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=edge[i].next)
^
0_0_30723916_24129\Main.java:23: 错误: 需要class, interface或enum
if(v!=f)
^
0_0_30723916_24129\Main.java:26: 错误: 需要class, interface或enum
sz[u]+=sz[v];
^
0_0_30723916_24129\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_30723916_24129\Main.java:34: 错误: 需要class, interface或enum
scanf("%d",&t);
^
0_0_30723916_24129\Main.java:35: 错误: 需要class, interface或enum
while(t--)
^
0_0_30723916_24129\Main.java:38: 错误: 需要class, interface或enum
memset(sz,0,sizeof(sz));
^
0_0_30723916_24129\Main.java:39: 错误: 需要class, interface或enum
scanf("%d%d",&n,&k);
^
0_0_30723916_24129\Main.java:40: 错误: 需要class, interface或enum
for(int i=1;i<n;i++)
^
0_0_30723916_24129\Main.java:40: 错误: 需要class, interface或enum
for(int i=1;i<n;i++)
^
0_0_30723916_24129\Main.java:40: 错误: 需要class, interface或enum
for(int i=1;i<n;i++)
^
0_0_30723916_24129\Main.java:42: 错误: 需要class, interface或enum
dfs(1,-1);
^
0_0_30723916_24129\Main.java:43: 错误: 需要class, interface或enum
int ans=0;
^
0_0_30723916_24129\Main.java:44: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_30723916_24129\Main.java:44: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_30723916_24129\Main.java:44: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_30723916_24129\Main.java:46: 错误: 需要class, interface或enum
printf("%d\n",ans);
^
0_0_30723916_24129\Main.java:47: 错误: 需要class, interface或enum
}
^
0_0_30723916_24129\Main.java:49: 错误: 需要class, interface或enum
}
^
34 个错误
|