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_24008081_29565\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_24008081_29565\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_24008081_29565\Main.java:3: 错误: 需要class, interface或enum
const int N=5e4+10;
^
0_0_24008081_29565\Main.java:4: 错误: 需要class, interface或enum
const int inf=(1<<30)-1;
^
0_0_24008081_29565\Main.java:5: 错误: 需要class, interface或enum
int IN(){
^
0_0_24008081_29565\Main.java:7: 错误: 需要class, interface或enum
    while (!isdigit(c=getchar())&&c!='-');c=='-'?(f=1,x=0):(f=0,x=c-'0');
    ^
0_0_24008081_29565\Main.java:7: 错误: 需要class, interface或enum
    while (!isdigit(c=getchar())&&c!='-');c=='-'?(f=1,x=0):(f=0,x=c-'0');
                                          ^
0_0_24008081_29565\Main.java:8: 错误: 需要class, interface或enum
    while (isdigit(c=getchar())) x=(x<<1)+(x<<3)+c-'0';return !f?x:-x;
    ^
0_0_24008081_29565\Main.java:8: 错误: 需要class, interface或enum
    while (isdigit(c=getchar())) x=(x<<1)+(x<<3)+c-'0';return !f?x:-x;
                                                       ^
0_0_24008081_29565\Main.java:9: 错误: 需要class, interface或enum
}
^
0_0_24008081_29565\Main.java:10: 错误: 非法字符: '#'
#define Rep(x) for(int i=head[x],y;~i;i=e[i].next) if(!vis[y=e[i].to])
^
0_0_24008081_29565\Main.java:10: 错误: 需要class, interface或enum
#define Rep(x) for(int i=head[x],y;~i;i=e[i].next) if(!vis[y=e[i].to])
                                   ^
0_0_24008081_29565\Main.java:10: 错误: 需要class, interface或enum
#define Rep(x) for(int i=head[x],y;~i;i=e[i].next) if(!vis[y=e[i].to])
                                      ^
0_0_24008081_29565\Main.java:12: 错误: 需要class, interface或enum
struct data{
^
0_0_24008081_29565\Main.java:14: 错误: 需要class, interface或enum
}e[N<<1];
^
0_0_24008081_29565\Main.java:15: 错误: 需要class, interface或enum
int head[N],tot;
^
0_0_24008081_29565\Main.java:16: 错误: 需要class, interface或enum
inline void Add(int x,int y) {
^
0_0_24008081_29565\Main.java:17: 错误: 需要class, interface或enum
	e[tot]=(data){y,head[x]};head[x]=tot++;
	                         ^
0_0_24008081_29565\Main.java:18: 错误: 需要class, interface或enum
	e[tot]=(data){x,head[y]};head[y]=tot++;
	^
0_0_24008081_29565\Main.java:18: 错误: 需要class, interface或enum
	e[tot]=(data){x,head[y]};head[y]=tot++;
	                         ^
0_0_24008081_29565\Main.java:19: 错误: 需要class, interface或enum
}
^
0_0_24008081_29565\Main.java:21: 错误: 需要class, interface或enum
bool vis[N];
^
0_0_24008081_29565\Main.java:22: 错误: 需要class, interface或enum
int a[N],n,k;
^
0_0_24008081_29565\Main.java:23: 错误: 需要class, interface或enum
void findcen(int x,int fa,int n) {
^
0_0_24008081_29565\Main.java:24: 错误: 需要class, interface或enum
	sz[x]=1;mn=inf;
	        ^
0_0_24008081_29565\Main.java:25: 错误: 需要class, interface或enum
	int tmp=0;
	^
0_0_24008081_29565\Main.java:26: 错误: 需要class, interface或enum
	Rep(x) if(y!=fa) {
	^
0_0_24008081_29565\Main.java:28: 错误: 需要class, interface或enum
		sz[x]+=sz[y];
		^
0_0_24008081_29565\Main.java:29: 错误: 需要class, interface或enum
		tmp=max(tmp,sz[y]);
		^
0_0_24008081_29565\Main.java:30: 错误: 需要class, interface或enum
	}
	^
0_0_24008081_29565\Main.java:32: 错误: 需要class, interface或enum
	if(mn>tmp) mn=tmp,cen=x,fcen=fa;
	^
0_0_24008081_29565\Main.java:33: 错误: 需要class, interface或enum
}
^
0_0_24008081_29565\Main.java:35: 错误: 需要class, interface或enum
ll ans;
^
0_0_24008081_29565\Main.java:36: 错误: 需要class, interface或enum
vector<int> sta;
^
0_0_24008081_29565\Main.java:37: 错误: 需要class, interface或enum
void dfs_init(int x,int fa) {
^
0_0_24008081_29565\Main.java:39: 错误: 需要class, interface或enum
	Rep(x) if(y!=fa) {
	^
0_0_24008081_29565\Main.java:41: 错误: 需要class, interface或enum
		sz[x]+=sz[y];
		^
0_0_24008081_29565\Main.java:42: 错误: 需要class, interface或enum
	}
	^
0_0_24008081_29565\Main.java:46: 错误: 需要class, interface或enum
	Rep(x) if(y!=fa) {
	^
0_0_24008081_29565\Main.java:48: 错误: 需要class, interface或enum
	}
	^
0_0_24008081_29565\Main.java:52: 错误: 需要class, interface或enum
	sta.clear();dfs_sta(x,-1,s);
	^
0_0_24008081_29565\Main.java:52: 错误: 需要class, interface或enum
	sta.clear();dfs_sta(x,-1,s);
	            ^
0_0_24008081_29565\Main.java:53: 错误: 需要class, interface或enum
	memset(h,0,sizeof(h));
	^
0_0_24008081_29565\Main.java:54: 错误: 需要class, interface或enum
	for(int i=0;i<sta.size();i++) h[sta[i]]++;
	^
0_0_24008081_29565\Main.java:54: 错误: 需要class, interface或enum
	for(int i=0;i<sta.size();i++) h[sta[i]]++;
	            ^
0_0_24008081_29565\Main.java:54: 错误: 需要class, interface或enum
	for(int i=0;i<sta.size();i++) h[sta[i]]++;
	                         ^
0_0_24008081_29565\Main.java:55: 错误: 需要class, interface或enum
	for(int i=0;i<sta.size();i++) {
	^
0_0_24008081_29565\Main.java:55: 错误: 需要class, interface或enum
	for(int i=0;i<sta.size();i++) {
	            ^
0_0_24008081_29565\Main.java:55: 错误: 需要class, interface或enum
	for(int i=0;i<sta.size();i++) {
	                         ^
0_0_24008081_29565\Main.java:57: 错误: 需要class, interface或enum
		res+=h[(1<<k)-1];
		^
0_0_24008081_29565\Main.java:58: 错误: 需要class, interface或enum
		for(int s0=sta[i];s0;s0=(s0-1)&sta[i]) {
		^
0_0_24008081_29565\Main.java:58: 错误: 需要class, interface或enum
		for(int s0=sta[i];s0;s0=(s0-1)&sta[i]) {
		                  ^
0_0_24008081_29565\Main.java:58: 错误: 需要class, interface或enum
		for(int s0=sta[i];s0;s0=(s0-1)&sta[i]) {
		                     ^
0_0_24008081_29565\Main.java:60: 错误: 需要class, interface或enum
		}
		^
0_0_24008081_29565\Main.java:62: 错误: 需要class, interface或enum
	}
	^
0_0_24008081_29565\Main.java:64: 错误: 需要class, interface或enum
}
^
0_0_24008081_29565\Main.java:67: 错误: 需要class, interface或enum
	findcen(x,-1,n);
	^
0_0_24008081_29565\Main.java:68: 错误: 需要class, interface或enum
	vis[x=cen]=1;
	^
0_0_24008081_29565\Main.java:69: 错误: 需要class, interface或enum
	if(~fcen) sz[fcen]=n-sz[x];
	^
0_0_24008081_29565\Main.java:70: 错误: 需要class, interface或enum
	dfs_init(x,-1);
	^
0_0_24008081_29565\Main.java:71: 错误: 需要class, interface或enum
	ans+=cal(x,1<<a[x]);
	^
0_0_24008081_29565\Main.java:72: 错误: 需要class, interface或enum
	Rep(x) ans-=cal(y,(1<<a[x])|(1<<a[y]));
	^
0_0_24008081_29565\Main.java:73: 错误: 需要class, interface或enum
	Rep(x) solve(y,sz[y]);
	^
0_0_24008081_29565\Main.java:74: 错误: 需要class, interface或enum
}
^
0_0_24008081_29565\Main.java:78: 错误: 需要class, interface或enum
		for(int i=0;i<=n;i++) head[i]=-1,vis[i]=0;
		            ^
0_0_24008081_29565\Main.java:78: 错误: 需要class, interface或enum
		for(int i=0;i<=n;i++) head[i]=-1,vis[i]=0;
		                 ^
0_0_24008081_29565\Main.java:79: 错误: 需要class, interface或enum
		tot=0;
		^
0_0_24008081_29565\Main.java:80: 错误: 需要class, interface或enum
		for(int i=1;i<=n;i++) a[i]=IN(),--a[i];
		^
0_0_24008081_29565\Main.java:80: 错误: 需要class, interface或enum
		for(int i=1;i<=n;i++) a[i]=IN(),--a[i];
		            ^
0_0_24008081_29565\Main.java:80: 错误: 需要class, interface或enum
		for(int i=1;i<=n;i++) a[i]=IN(),--a[i];
		                 ^
0_0_24008081_29565\Main.java:81: 错误: 需要class, interface或enum
		for(int i=1;i<n;i++) Add(IN(),IN());
		^
0_0_24008081_29565\Main.java:81: 错误: 需要class, interface或enum
		for(int i=1;i<n;i++) Add(IN(),IN());
		            ^
0_0_24008081_29565\Main.java:81: 错误: 需要class, interface或enum
		for(int i=1;i<n;i++) Add(IN(),IN());
		                ^
0_0_24008081_29565\Main.java:82: 错误: 需要class, interface或enum
		ans=0;
		^
0_0_24008081_29565\Main.java:83: 错误: 需要class, interface或enum
		if(k==1) {
		^
0_0_24008081_29565\Main.java:85: 错误: 需要class, interface或enum
			continue;
			^
0_0_24008081_29565\Main.java:86: 错误: 需要class, interface或enum
		}
		^
0_0_24008081_29565\Main.java:88: 错误: 需要class, interface或enum
		printf("%lld\n",ans);
		^
0_0_24008081_29565\Main.java:89: 错误: 需要class, interface或enum
	}
	^
0_0_24008081_29565\Main.java:91: 错误: 需要class, interface或enum
}
^
80 个错误


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-22 22:09:16, Gzip enabled