F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_31001893_24491\Main.java:2: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_31001893_24491\Main.java:2: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_31001893_24491\Main.java:4: 错误: 需要class, interface或enum
using namespace std;
^
0_0_31001893_24491\Main.java:5: 错误: 需要class, interface或enum
const int N=50010;
^
0_0_31001893_24491\Main.java:6: 错误: 需要class, interface或enum
struct Edge{
^
0_0_31001893_24491\Main.java:8: 错误: 需要class, interface或enum
}e[2*N];
^
0_0_31001893_24491\Main.java:9: 错误: 需要class, interface或enum
int head[N],tot,vis[N],sz[N],rt;
^
0_0_31001893_24491\Main.java:10: 错误: 需要class, interface或enum
void add(int x,int y){
^
0_0_31001893_24491\Main.java:12: 错误: 需要class, interface或enum
	e[tot].next=head[x];
	^
0_0_31001893_24491\Main.java:13: 错误: 需要class, interface或enum
	head[x]=tot;
	^
0_0_31001893_24491\Main.java:14: 错误: 需要class, interface或enum
}
^
0_0_31001893_24491\Main.java:16: 错误: 需要class, interface或enum
ll ans;
^
0_0_31001893_24491\Main.java:17: 错误: 需要class, interface或enum
int num[1<<10],val[N]; 
^
0_0_31001893_24491\Main.java:18: 错误: 需要class, interface或enum
void getk(int x,int f,int st){
^
0_0_31001893_24491\Main.java:19: 错误: 需要class, interface或enum
	num[st]++;q[++r]=st;
	          ^
0_0_31001893_24491\Main.java:20: 错误: 需要class, interface或enum
	for(int i=head[x];i;i=e[i].next){
	^
0_0_31001893_24491\Main.java:20: 错误: 需要class, interface或enum
	for(int i=head[x];i;i=e[i].next){
	                  ^
0_0_31001893_24491\Main.java:20: 错误: 需要class, interface或enum
	for(int i=head[x];i;i=e[i].next){
	                    ^
0_0_31001893_24491\Main.java:22: 错误: 需要class, interface或enum
		if(vis[v]||v==f)continue;
		^
0_0_31001893_24491\Main.java:23: 错误: 需要class, interface或enum
		getk(v,x,st|val[v]);
		^
0_0_31001893_24491\Main.java:24: 错误: 需要class, interface或enum
	}
	^
0_0_31001893_24491\Main.java:28: 错误: 需要class, interface或enum
	if(f==0)getk(x,f,val[x]);
	^
0_0_31001893_24491\Main.java:29: 错误: 需要class, interface或enum
	else getk(x,f,val[x]|val[f]);
	^
0_0_31001893_24491\Main.java:30: 错误: 需要class, interface或enum
	ll res=0;
	^
0_0_31001893_24491\Main.java:31: 错误: 需要class, interface或enum
	for(int i=1;i<=r;i++){
	^
0_0_31001893_24491\Main.java:31: 错误: 需要class, interface或enum
	for(int i=1;i<=r;i++){
	            ^
0_0_31001893_24491\Main.java:31: 错误: 需要class, interface或enum
	for(int i=1;i<=r;i++){
	                 ^
0_0_31001893_24491\Main.java:34: 错误: 需要class, interface或enum
		for(int s=S;;s=(s-1)&S){
		^
0_0_31001893_24491\Main.java:34: 错误: 需要class, interface或enum
		for(int s=S;;s=(s-1)&S){
		             ^
0_0_31001893_24491\Main.java:37: 错误: 需要class, interface或enum
			res+=num[p];
			^
0_0_31001893_24491\Main.java:38: 错误: 需要class, interface或enum
			if(s==0)break;
			^
0_0_31001893_24491\Main.java:39: 错误: 需要class, interface或enum
		}
		^
0_0_31001893_24491\Main.java:41: 错误: 需要class, interface或enum
	for(int i=1;i<=r;i++)num[q[i]]=0;
	            ^
0_0_31001893_24491\Main.java:41: 错误: 需要class, interface或enum
	for(int i=1;i<=r;i++)num[q[i]]=0;
	                 ^
0_0_31001893_24491\Main.java:43: 错误: 需要class, interface或enum
	return res;
	^
0_0_31001893_24491\Main.java:44: 错误: 需要class, interface或enum
}
^
0_0_31001893_24491\Main.java:47: 错误: 需要class, interface或enum
	int maxx=0; //最大子树大小 
	^
0_0_31001893_24491\Main.java:48: 错误: 需要class, interface或enum
	for(int i=head[x];i;i=e[i].next){
	^
0_0_31001893_24491\Main.java:48: 错误: 需要class, interface或enum
	for(int i=head[x];i;i=e[i].next){
	                  ^
0_0_31001893_24491\Main.java:48: 错误: 需要class, interface或enum
	for(int i=head[x];i;i=e[i].next){
	                    ^
0_0_31001893_24491\Main.java:50: 错误: 需要class, interface或enum
		if(v==f||vis[v])continue;
		^
0_0_31001893_24491\Main.java:51: 错误: 需要class, interface或enum
		sz[x]+=getroot(v,x);
		^
0_0_31001893_24491\Main.java:52: 错误: 需要class, interface或enum
		maxx=max(maxx,sz[v]);
		^
0_0_31001893_24491\Main.java:53: 错误: 需要class, interface或enum
	}
	^
0_0_31001893_24491\Main.java:55: 错误: 需要class, interface或enum
	if(maxx<rz){rz=maxx;rt=x;}
	^
0_0_31001893_24491\Main.java:55: 错误: 需要class, interface或enum
	if(maxx<rz){rz=maxx;rt=x;}
	                    ^
0_0_31001893_24491\Main.java:55: 错误: 需要class, interface或enum
	if(maxx<rz){rz=maxx;rt=x;}
	                         ^
0_0_31001893_24491\Main.java:57: 错误: 需要class, interface或enum
}
^
0_0_31001893_24491\Main.java:60: 错误: 需要class, interface或enum
	ans+=sol(x,0);vis[x]=1;
	^
0_0_31001893_24491\Main.java:60: 错误: 需要class, interface或enum
	ans+=sol(x,0);vis[x]=1;
	              ^
0_0_31001893_24491\Main.java:61: 错误: 需要class, interface或enum
	for(int i=head[x];i;i=e[i].next){
	^
0_0_31001893_24491\Main.java:61: 错误: 需要class, interface或enum
	for(int i=head[x];i;i=e[i].next){
	                  ^
0_0_31001893_24491\Main.java:61: 错误: 需要class, interface或enum
	for(int i=head[x];i;i=e[i].next){
	                    ^
0_0_31001893_24491\Main.java:63: 错误: 需要class, interface或enum
		if(vis[v])continue;
		^
0_0_31001893_24491\Main.java:64: 错误: 需要class, interface或enum
		ans-=sol(v,x);
		^
0_0_31001893_24491\Main.java:65: 错误: 需要class, interface或enum
		sum=sz[v];rz=1e9;
		^
0_0_31001893_24491\Main.java:65: 错误: 需要class, interface或enum
		sum=sz[v];rz=1e9;
		          ^
0_0_31001893_24491\Main.java:66: 错误: 需要class, interface或enum
		getroot(v,x);div(rt);
		^
0_0_31001893_24491\Main.java:66: 错误: 需要class, interface或enum
		getroot(v,x);div(rt);
		             ^
0_0_31001893_24491\Main.java:67: 错误: 需要class, interface或enum
	}
	^
0_0_31001893_24491\Main.java:70: 错误: 需要class, interface或enum
	for(int i=1;i<=n;i++)vis[i]=head[i]=0;
	            ^
0_0_31001893_24491\Main.java:70: 错误: 需要class, interface或enum
	for(int i=1;i<=n;i++)vis[i]=head[i]=0;
	                 ^
0_0_31001893_24491\Main.java:71: 错误: 需要class, interface或enum
	ans=0;tot=0;sum=n;rz=1e9;
	^
0_0_31001893_24491\Main.java:71: 错误: 需要class, interface或enum
	ans=0;tot=0;sum=n;rz=1e9;
	      ^
0_0_31001893_24491\Main.java:71: 错误: 需要class, interface或enum
	ans=0;tot=0;sum=n;rz=1e9;
	            ^
0_0_31001893_24491\Main.java:71: 错误: 需要class, interface或enum
	ans=0;tot=0;sum=n;rz=1e9;
	                  ^
0_0_31001893_24491\Main.java:72: 错误: 需要class, interface或enum
}
^
0_0_31001893_24491\Main.java:76: 错误: 需要class, interface或enum
    	for(int i=1;i<=n;i++)scanf("%d",&val[i]),val[i]=(1<<(val[i]-1));
    	^
0_0_31001893_24491\Main.java:76: 错误: 需要class, interface或enum
    	for(int i=1;i<=n;i++)scanf("%d",&val[i]),val[i]=(1<<(val[i]-1));
    	            ^
0_0_31001893_24491\Main.java:76: 错误: 需要class, interface或enum
    	for(int i=1;i<=n;i++)scanf("%d",&val[i]),val[i]=(1<<(val[i]-1));
    	                 ^
0_0_31001893_24491\Main.java:77: 错误: 需要class, interface或enum
    	for(int i=1;i<n;i++){
    	^
0_0_31001893_24491\Main.java:77: 错误: 需要class, interface或enum
    	for(int i=1;i<n;i++){
    	            ^
0_0_31001893_24491\Main.java:77: 错误: 需要class, interface或enum
    	for(int i=1;i<n;i++){
    	                ^
0_0_31001893_24491\Main.java:79: 错误: 需要class, interface或enum
    		scanf("%d%d",&u,&v);
    		^
0_0_31001893_24491\Main.java:80: 错误: 需要class, interface或enum
    		add(u,v);add(v,u);
    		^
0_0_31001893_24491\Main.java:80: 错误: 需要class, interface或enum
    		add(u,v);add(v,u);
    		         ^
0_0_31001893_24491\Main.java:81: 错误: 需要class, interface或enum
		}
		^
0_0_31001893_24491\Main.java:83: 错误: 需要class, interface或enum
		getroot(1,0);div(rt);
		^
0_0_31001893_24491\Main.java:83: 错误: 需要class, interface或enum
		getroot(1,0);div(rt);
		             ^
0_0_31001893_24491\Main.java:84: 错误: 需要class, interface或enum
		printf("%lld\n",ans);
		^
0_0_31001893_24491\Main.java:85: 错误: 需要class, interface或enum
	}
	^
0_0_31001893_24491\Main.java:87: 错误: 需要class, interface或enum
}
^
82 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-27 08:41:30, Gzip enabled