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_27345071_26791\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_27345071_26791\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_27345071_26791\Main.java:3: 错误: 非法字符: '#'
#define se second
^
0_0_27345071_26791\Main.java:4: 错误: 非法字符: '#'
#define fi first
^
0_0_27345071_26791\Main.java:5: 错误: 非法字符: '#'
#define ll long long
^
0_0_27345071_26791\Main.java:6: 错误: 非法字符: '#'
#define Pii pair<int,int>
^
0_0_27345071_26791\Main.java:7: 错误: 非法字符: '#'
#define Pli pair<ll,int>
^
0_0_27345071_26791\Main.java:8: 错误: 非法字符: '#'
#define ull unsigned long long
^
0_0_27345071_26791\Main.java:9: 错误: 非法字符: '#'
#define pb push_back
^
0_0_27345071_26791\Main.java:10: 错误: 非法字符: '#'
#define fio ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)
^
0_0_27345071_26791\Main.java:10: 错误: 需要class, interface或enum
#define fio ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)
                                        ^
0_0_27345071_26791\Main.java:10: 错误: 需要class, interface或enum
#define fio ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)
                                                   ^
0_0_27345071_26791\Main.java:12: 错误: 需要class, interface或enum
const int INF=0x3f3f3f3f;
^
0_0_27345071_26791\Main.java:13: 错误: 需要class, interface或enum
const int mod=1e9+7;
^
0_0_27345071_26791\Main.java:14: 错误: 需要class, interface或enum
using namespace std;
^
0_0_27345071_26791\Main.java:15: 错误: 需要class, interface或enum
int n,m;
^
0_0_27345071_26791\Main.java:16: 错误: 需要class, interface或enum
int val[N];
^
0_0_27345071_26791\Main.java:17: 错误: 需要class, interface或enum
int head[N],to[N],nx[N],tot=0;
^
0_0_27345071_26791\Main.java:18: 错误: 需要class, interface或enum
int root,MAX,son[N],sum;ll ans;
^
0_0_27345071_26791\Main.java:18: 错误: 需要class, interface或enum
int root,MAX,son[N],sum;ll ans;
                        ^
0_0_27345071_26791\Main.java:19: 错误: 需要class, interface或enum
int Hash[1050];
^
0_0_27345071_26791\Main.java:20: 错误: 需要class, interface或enum
bool vis[N];
^
0_0_27345071_26791\Main.java:21: 错误: 需要class, interface或enum
void add(int u,int v){
^
0_0_27345071_26791\Main.java:23: 错误: 需要class, interface或enum
    nx[tot]=head[u];
    ^
0_0_27345071_26791\Main.java:24: 错误: 需要class, interface或enum
    head[u]=tot++;
    ^
0_0_27345071_26791\Main.java:25: 错误: 需要class, interface或enum
}
^
0_0_27345071_26791\Main.java:27: 错误: 需要class, interface或enum
    for(int i=1;i<=n;++i)head[i]=-1,vis[i]=0;
                ^
0_0_27345071_26791\Main.java:27: 错误: 需要class, interface或enum
    for(int i=1;i<=n;++i)head[i]=-1,vis[i]=0;
                     ^
0_0_27345071_26791\Main.java:28: 错误: 需要class, interface或enum
    tot=0;root=0;MAX=INF;ans=0;
    ^
0_0_27345071_26791\Main.java:28: 错误: 需要class, interface或enum
    tot=0;root=0;MAX=INF;ans=0;
          ^
0_0_27345071_26791\Main.java:28: 错误: 需要class, interface或enum
    tot=0;root=0;MAX=INF;ans=0;
                 ^
0_0_27345071_26791\Main.java:28: 错误: 需要class, interface或enum
    tot=0;root=0;MAX=INF;ans=0;
                         ^
0_0_27345071_26791\Main.java:29: 错误: 需要class, interface或enum
}
^
0_0_27345071_26791\Main.java:31: 错误: 需要class, interface或enum
    int MAXN=0;son[u]=1;
               ^
0_0_27345071_26791\Main.java:32: 错误: 需要class, interface或enum
    for(int i=head[u];~i;i=nx[i]){
    ^
0_0_27345071_26791\Main.java:32: 错误: 需要class, interface或enum
    for(int i=head[u];~i;i=nx[i]){
                      ^
0_0_27345071_26791\Main.java:32: 错误: 需要class, interface或enum
    for(int i=head[u];~i;i=nx[i]){
                         ^
0_0_27345071_26791\Main.java:34: 错误: 需要class, interface或enum
        if(vis[v]||v==fa)continue;
        ^
0_0_27345071_26791\Main.java:35: 错误: 需要class, interface或enum
        get_root(v,u);
        ^
0_0_27345071_26791\Main.java:36: 错误: 需要class, interface或enum
        son[u]+=son[v];
        ^
0_0_27345071_26791\Main.java:37: 错误: 需要class, interface或enum
        MAXN=max(MAXN,son[v]);
        ^
0_0_27345071_26791\Main.java:38: 错误: 需要class, interface或enum
    }
    ^
0_0_27345071_26791\Main.java:40: 错误: 需要class, interface或enum
    if(MAX>MAXN)MAX=MAXN,root=u;
    ^
0_0_27345071_26791\Main.java:41: 错误: 需要class, interface或enum
}
^
0_0_27345071_26791\Main.java:43: 错误: 需要class, interface或enum
void get_dis(int u,int fa,int len){
^
0_0_27345071_26791\Main.java:46: 错误: 需要class, interface或enum
    s.pb(len);
    ^
0_0_27345071_26791\Main.java:47: 错误: 需要class, interface或enum
    for(int i=head[u];~i;i=nx[i]){
    ^
0_0_27345071_26791\Main.java:47: 错误: 需要class, interface或enum
    for(int i=head[u];~i;i=nx[i]){
                      ^
0_0_27345071_26791\Main.java:47: 错误: 需要class, interface或enum
    for(int i=head[u];~i;i=nx[i]){
                         ^
0_0_27345071_26791\Main.java:49: 错误: 需要class, interface或enum
        if(vis[v]||v==fa)continue;
        ^
0_0_27345071_26791\Main.java:50: 错误: 需要class, interface或enum
        get_dis(v,u,len|(1<<val[i]));
        ^
0_0_27345071_26791\Main.java:51: 错误: 需要class, interface或enum
    }
    ^
0_0_27345071_26791\Main.java:55: 错误: 需要class, interface或enum
    memset(Hash,0,sizeof(Hash));
    ^
0_0_27345071_26791\Main.java:56: 错误: 需要class, interface或enum
    get_dis(u,0,len);
    ^
0_0_27345071_26791\Main.java:57: 错误: 需要class, interface或enum
    ll ans=0;
    ^
0_0_27345071_26791\Main.java:59: 错误: 需要class, interface或enum
    for(auto it:s){
    ^
0_0_27345071_26791\Main.java:62: 错误: 需要class, interface或enum
        ans+=Hash[(1<<m)-1];
        ^
0_0_27345071_26791\Main.java:63: 错误: 需要class, interface或enum
        for(int j=it;j;j=(j-1)&it){
        ^
0_0_27345071_26791\Main.java:63: 错误: 需要class, interface或enum
        for(int j=it;j;j=(j-1)&it){
                     ^
0_0_27345071_26791\Main.java:63: 错误: 需要class, interface或enum
        for(int j=it;j;j=(j-1)&it){
                       ^
0_0_27345071_26791\Main.java:65: 错误: 需要class, interface或enum
        }
        ^
0_0_27345071_26791\Main.java:67: 错误: 需要class, interface或enum
    }
    ^
0_0_27345071_26791\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_27345071_26791\Main.java:73: 错误: 需要class, interface或enum
    ans+=get_ans(u,1<<val[u]);
    ^
0_0_27345071_26791\Main.java:75: 错误: 需要class, interface或enum
    for(int i=head[u];~i;i=nx[i]){
    ^
0_0_27345071_26791\Main.java:75: 错误: 需要class, interface或enum
    for(int i=head[u];~i;i=nx[i]){
                      ^
0_0_27345071_26791\Main.java:75: 错误: 需要class, interface或enum
    for(int i=head[u];~i;i=nx[i]){
                         ^
0_0_27345071_26791\Main.java:77: 错误: 需要class, interface或enum
        if(vis[v])continue;
        ^
0_0_27345071_26791\Main.java:78: 错误: 需要class, interface或enum
        ans-=get_ans(v,(1<<val[u])|(1<<val[v]));
        ^
0_0_27345071_26791\Main.java:79: 错误: 需要class, interface或enum
        root=0,sum=son[v],MAX=INF;
        ^
0_0_27345071_26791\Main.java:80: 错误: 需要class, interface或enum
        get_root(v,0);
        ^
0_0_27345071_26791\Main.java:81: 错误: 需要class, interface或enum
        dfs(root);
        ^
0_0_27345071_26791\Main.java:82: 错误: 需要class, interface或enum
    }
    ^
0_0_27345071_26791\Main.java:87: 错误: 需要class, interface或enum
        for(int i=1;i<=n;++i)scanf("%d",&val[i]),--val[i];
        ^
0_0_27345071_26791\Main.java:87: 错误: 需要class, interface或enum
        for(int i=1;i<=n;++i)scanf("%d",&val[i]),--val[i];
                    ^
0_0_27345071_26791\Main.java:87: 错误: 需要class, interface或enum
        for(int i=1;i<=n;++i)scanf("%d",&val[i]),--val[i];
                         ^
0_0_27345071_26791\Main.java:88: 错误: 需要class, interface或enum
        for(int i=1;i<n;++i){
        ^
0_0_27345071_26791\Main.java:88: 错误: 需要class, interface或enum
        for(int i=1;i<n;++i){
                    ^
0_0_27345071_26791\Main.java:88: 错误: 需要class, interface或enum
        for(int i=1;i<n;++i){
                        ^
0_0_27345071_26791\Main.java:89: 错误: 需要class, interface或enum
            int u,v;scanf("%d%d",&u,&v);
                    ^
0_0_27345071_26791\Main.java:90: 错误: 需要class, interface或enum
            add(u,v);add(v,u);
            ^
0_0_27345071_26791\Main.java:90: 错误: 需要class, interface或enum
            add(u,v);add(v,u);
                     ^
0_0_27345071_26791\Main.java:91: 错误: 需要class, interface或enum
        }
        ^
0_0_27345071_26791\Main.java:93: 错误: 需要class, interface或enum
        get_root(1,0);
        ^
0_0_27345071_26791\Main.java:94: 错误: 需要class, interface或enum
        dfs(root);
        ^
0_0_27345071_26791\Main.java:95: 错误: 需要class, interface或enum
        printf("%lld\n",ans);
        ^
0_0_27345071_26791\Main.java:96: 错误: 需要class, interface或enum
    }
    ^
0_0_27345071_26791\Main.java:98: 错误: 需要class, interface或enum
}
^
88 个错误


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-26 22:06:58, Gzip enabled