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_22157703_10560\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_22157703_10560\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>
        ^
0_0_22157703_10560\Main.java:2: 错误: 非法字符: '#'
#include<vector>
^
0_0_22157703_10560\Main.java:3: 错误: 非法字符: '#'
#include<cstring>
^
0_0_22157703_10560\Main.java:4: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_22157703_10560\Main.java:6: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_22157703_10560\Main.java:7: 错误: 需要class, interface或enum
const int N=5e5+100;
^
0_0_22157703_10560\Main.java:8: 错误: 需要class, interface或enum
int n,k,Max,root;
^
0_0_22157703_10560\Main.java:9: 错误: 需要class, interface或enum
ll ans;
^
0_0_22157703_10560\Main.java:10: 错误: 需要class, interface或enum
vector<int>tree[N],sta;
^
0_0_22157703_10560\Main.java:11: 错误: 需要class, interface或enum
int sz[N],maxv[N],a[N];
^
0_0_22157703_10560\Main.java:12: 错误: 需要class, interface或enum
ll Hash[1200];
^
0_0_22157703_10560\Main.java:13: 错误: 需要class, interface或enum
bool vis[N];
^
0_0_22157703_10560\Main.java:14: 错误: 需要class, interface或enum
void init(){
^
0_0_22157703_10560\Main.java:16: 错误: 需要class, interface或enum
    for(int i=1;i<=n;++i) tree[i].clear();
    ^
0_0_22157703_10560\Main.java:16: 错误: 需要class, interface或enum
    for(int i=1;i<=n;++i) tree[i].clear();
                ^
0_0_22157703_10560\Main.java:16: 错误: 需要class, interface或enum
    for(int i=1;i<=n;++i) tree[i].clear();
                     ^
0_0_22157703_10560\Main.java:17: 错误: 需要class, interface或enum
}
^
0_0_22157703_10560\Main.java:19: 错误: 需要class, interface或enum
    sz[u]=1;maxv[u]=0;
            ^
0_0_22157703_10560\Main.java:20: 错误: 需要class, interface或enum
    int cnt=tree[u].size();
    ^
0_0_22157703_10560\Main.java:21: 错误: 需要class, interface或enum
    for(int i=0;i<cnt;++i) {
    ^
0_0_22157703_10560\Main.java:21: 错误: 需要class, interface或enum
    for(int i=0;i<cnt;++i) {
                ^
0_0_22157703_10560\Main.java:21: 错误: 需要class, interface或enum
    for(int i=0;i<cnt;++i) {
                      ^
0_0_22157703_10560\Main.java:23: 错误: 需要class, interface或enum
        if(v==pre||vis[v]) continue;
        ^
0_0_22157703_10560\Main.java:24: 错误: 需要class, interface或enum
        dfs_size(v,u);
        ^
0_0_22157703_10560\Main.java:25: 错误: 需要class, interface或enum
        sz[u]+=sz[v];
        ^
0_0_22157703_10560\Main.java:26: 错误: 需要class, interface或enum
        maxv[u]=max(maxv[u],sz[v]);
        ^
0_0_22157703_10560\Main.java:27: 错误: 需要class, interface或enum
    }
    ^
0_0_22157703_10560\Main.java:31: 错误: 需要class, interface或enum
    if(Max>maxv[u]) Max=maxv[u],root=u;
    ^
0_0_22157703_10560\Main.java:32: 错误: 需要class, interface或enum
    int cnt=tree[u].size();
    ^
0_0_22157703_10560\Main.java:33: 错误: 需要class, interface或enum
    for(int i=0;i<cnt;++i) {
    ^
0_0_22157703_10560\Main.java:33: 错误: 需要class, interface或enum
    for(int i=0;i<cnt;++i) {
                ^
0_0_22157703_10560\Main.java:33: 错误: 需要class, interface或enum
    for(int i=0;i<cnt;++i) {
                      ^
0_0_22157703_10560\Main.java:35: 错误: 需要class, interface或enum
        if(v==pre||vis[v]) continue;
        ^
0_0_22157703_10560\Main.java:36: 错误: 需要class, interface或enum
        dfs_root(r,v,u);
        ^
0_0_22157703_10560\Main.java:37: 错误: 需要class, interface或enum
    }
    ^
0_0_22157703_10560\Main.java:41: 错误: 需要class, interface或enum
   int cnt=tree[u].size();
   ^
0_0_22157703_10560\Main.java:42: 错误: 需要class, interface或enum
   for(int i=0;i<cnt;++i) {
   ^
0_0_22157703_10560\Main.java:42: 错误: 需要class, interface或enum
   for(int i=0;i<cnt;++i) {
               ^
0_0_22157703_10560\Main.java:42: 错误: 需要class, interface或enum
   for(int i=0;i<cnt;++i) {
                     ^
0_0_22157703_10560\Main.java:44: 错误: 需要class, interface或enum
    if(v==pre||vis[v]) continue;
    ^
0_0_22157703_10560\Main.java:45: 错误: 需要class, interface或enum
    dfs_sta(v,u,s|(1<<a[v]));
    ^
0_0_22157703_10560\Main.java:46: 错误: 需要class, interface或enum
   }
   ^
0_0_22157703_10560\Main.java:50: 错误: 需要class, interface或enum
   sta.clear();dfs_sta(u,-1,s);
   ^
0_0_22157703_10560\Main.java:50: 错误: 需要class, interface或enum
   sta.clear();dfs_sta(u,-1,s);
               ^
0_0_22157703_10560\Main.java:51: 错误: 需要class, interface或enum
   memset(Hash,0,sizeof(Hash));
   ^
0_0_22157703_10560\Main.java:52: 错误: 需要class, interface或enum
   int cnt=sta.size();
   ^
0_0_22157703_10560\Main.java:53: 错误: 需要class, interface或enum
   for(int i=0;i<cnt;++i) Hash[sta[i]]++;
   ^
0_0_22157703_10560\Main.java:53: 错误: 需要class, interface或enum
   for(int i=0;i<cnt;++i) Hash[sta[i]]++;
               ^
0_0_22157703_10560\Main.java:53: 错误: 需要class, interface或enum
   for(int i=0;i<cnt;++i) Hash[sta[i]]++;
                     ^
0_0_22157703_10560\Main.java:54: 错误: 需要class, interface或enum
   for(int i=0;i<cnt;++i) {
   ^
0_0_22157703_10560\Main.java:54: 错误: 需要class, interface或enum
   for(int i=0;i<cnt;++i) {
               ^
0_0_22157703_10560\Main.java:54: 错误: 需要class, interface或enum
   for(int i=0;i<cnt;++i) {
                     ^
0_0_22157703_10560\Main.java:56: 错误: 需要class, interface或enum
    res+=Hash[(1<<k)-1];
    ^
0_0_22157703_10560\Main.java:57: 错误: 需要class, interface或enum
    for(int s0=sta[i];s0;s0=(s0-1)&sta[i])
    ^
0_0_22157703_10560\Main.java:57: 错误: 需要class, interface或enum
    for(int s0=sta[i];s0;s0=(s0-1)&sta[i])
                      ^
0_0_22157703_10560\Main.java:57: 错误: 需要class, interface或enum
    for(int s0=sta[i];s0;s0=(s0-1)&sta[i])
                         ^
0_0_22157703_10560\Main.java:59: 错误: 需要class, interface或enum
    Hash[sta[i]]++;
    ^
0_0_22157703_10560\Main.java:60: 错误: 需要class, interface或enum
   }
   ^
0_0_22157703_10560\Main.java:62: 错误: 需要class, interface或enum
}
^
0_0_22157703_10560\Main.java:65: 错误: 需要class, interface或enum
   dfs_size(u,-1);
   ^
0_0_22157703_10560\Main.java:66: 错误: 需要class, interface或enum
   dfs_root(u,u,-1);
   ^
0_0_22157703_10560\Main.java:67: 错误: 需要class, interface或enum
   ans+=cal(root,(1<<a[root]));
   ^
0_0_22157703_10560\Main.java:68: 错误: 需要class, interface或enum
   vis[root]=1;
   ^
0_0_22157703_10560\Main.java:69: 错误: 需要class, interface或enum
   int cnt=tree[root].size(),rt=root;
   ^
0_0_22157703_10560\Main.java:70: 错误: 需要class, interface或enum
   for(int i=0;i<cnt;++i) {
   ^
0_0_22157703_10560\Main.java:70: 错误: 需要class, interface或enum
   for(int i=0;i<cnt;++i) {
               ^
0_0_22157703_10560\Main.java:70: 错误: 需要class, interface或enum
   for(int i=0;i<cnt;++i) {
                     ^
0_0_22157703_10560\Main.java:72: 错误: 需要class, interface或enum
    if(vis[v]) continue;
    ^
0_0_22157703_10560\Main.java:73: 错误: 需要class, interface或enum
    ans-=cal(v,(1<<a[rt])|(1<<a[v]));
    ^
0_0_22157703_10560\Main.java:74: 错误: 需要class, interface或enum
    dfs(v);
    ^
0_0_22157703_10560\Main.java:75: 错误: 需要class, interface或enum
   }
   ^
0_0_22157703_10560\Main.java:80: 错误: 需要class, interface或enum
        int u,v;
        ^
0_0_22157703_10560\Main.java:81: 错误: 需要class, interface或enum
        for(int i=1;i<=n;++i) scanf("%d",&a[i]),--a[i];
        ^
0_0_22157703_10560\Main.java:81: 错误: 需要class, interface或enum
        for(int i=1;i<=n;++i) scanf("%d",&a[i]),--a[i];
                    ^
0_0_22157703_10560\Main.java:81: 错误: 需要class, interface或enum
        for(int i=1;i<=n;++i) scanf("%d",&a[i]),--a[i];
                         ^
0_0_22157703_10560\Main.java:82: 错误: 需要class, interface或enum
        for(int i=1;i<n;++i) {
        ^
0_0_22157703_10560\Main.java:82: 错误: 需要class, interface或enum
        for(int i=1;i<n;++i) {
                    ^
0_0_22157703_10560\Main.java:82: 错误: 需要class, interface或enum
        for(int i=1;i<n;++i) {
                        ^
0_0_22157703_10560\Main.java:84: 错误: 需要class, interface或enum
            tree[u].push_back(v);
            ^
0_0_22157703_10560\Main.java:85: 错误: 需要class, interface或enum
            tree[v].push_back(u);
            ^
0_0_22157703_10560\Main.java:86: 错误: 需要class, interface或enum
        }
        ^
0_0_22157703_10560\Main.java:89: 错误: 需要class, interface或enum
            continue;
            ^
0_0_22157703_10560\Main.java:90: 错误: 需要class, interface或enum
        }
        ^
0_0_22157703_10560\Main.java:92: 错误: 需要class, interface或enum
        dfs(1);
        ^
0_0_22157703_10560\Main.java:93: 错误: 需要class, interface或enum
        printf("%I64d\n",ans);
        ^
0_0_22157703_10560\Main.java:94: 错误: 需要class, interface或enum
    }
    ^
87 个错误


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 16:26:00, Gzip enabled