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_24903161_3032\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_24903161_3032\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_24903161_3032\Main.java:3: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_24903161_3032\Main.java:4: 错误: 需要class, interface或enum
const int MAXN = 5e5 + 10;
^
0_0_24903161_3032\Main.java:6: 错误: 需要class, interface或enum
int n, k, Max, root;
^
0_0_24903161_3032\Main.java:7: 错误: 需要class, interface或enum
ll ans;
^
0_0_24903161_3032\Main.java:8: 错误: 需要class, interface或enum
vector <int> tree[MAXN];
^
0_0_24903161_3032\Main.java:9: 错误: 需要class, interface或enum
vector <int> sta;
^
0_0_24903161_3032\Main.java:10: 错误: 需要class, interface或enum
int sz[MAXN], maxv[MAXN], a[MAXN];
^
0_0_24903161_3032\Main.java:11: 错误: 需要class, interface或enum
ll Hash[1200];
^
0_0_24903161_3032\Main.java:12: 错误: 需要class, interface或enum
bool vis[MAXN];
^
0_0_24903161_3032\Main.java:14: 错误: 需要class, interface或enum
void init() {
^
0_0_24903161_3032\Main.java:16: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) tree[i].clear();
    ^
0_0_24903161_3032\Main.java:16: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) tree[i].clear();
                    ^
0_0_24903161_3032\Main.java:16: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) tree[i].clear();
                            ^
0_0_24903161_3032\Main.java:18: 错误: 需要class, interface或enum
}
^
0_0_24903161_3032\Main.java:21: 错误: 需要class, interface或enum
    sz[u] = 1; maxv[u] = 0;
               ^
0_0_24903161_3032\Main.java:22: 错误: 需要class, interface或enum
    int cnt = tree[u].size();
    ^
0_0_24903161_3032\Main.java:23: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
    ^
0_0_24903161_3032\Main.java:23: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
                    ^
0_0_24903161_3032\Main.java:23: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
                             ^
0_0_24903161_3032\Main.java:25: 错误: 需要class, interface或enum
        if (v == pre || vis[v]) continue;
        ^
0_0_24903161_3032\Main.java:26: 错误: 需要class, interface或enum
        dfs_size(v, u);
        ^
0_0_24903161_3032\Main.java:27: 错误: 需要class, interface或enum
        sz[u] += sz[v];
        ^
0_0_24903161_3032\Main.java:28: 错误: 需要class, interface或enum
        maxv[u] = max(maxv[u], sz[v]);
        ^
0_0_24903161_3032\Main.java:29: 错误: 需要class, interface或enum
    }
    ^
0_0_24903161_3032\Main.java:34: 错误: 需要class, interface或enum
    if (Max > maxv[u]) {
    ^
0_0_24903161_3032\Main.java:36: 错误: 需要class, interface或enum
        root = u;
        ^
0_0_24903161_3032\Main.java:37: 错误: 需要class, interface或enum
    }
    ^
0_0_24903161_3032\Main.java:39: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
    ^
0_0_24903161_3032\Main.java:39: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
                    ^
0_0_24903161_3032\Main.java:39: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
                             ^
0_0_24903161_3032\Main.java:41: 错误: 需要class, interface或enum
        if (v == pre || vis[v]) continue;
        ^
0_0_24903161_3032\Main.java:42: 错误: 需要class, interface或enum
        dfs_root(r, v, u);
        ^
0_0_24903161_3032\Main.java:43: 错误: 需要class, interface或enum
    }
    ^
0_0_24903161_3032\Main.java:49: 错误: 需要class, interface或enum
    int cnt = tree[u].size();
    ^
0_0_24903161_3032\Main.java:50: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
    ^
0_0_24903161_3032\Main.java:50: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
                    ^
0_0_24903161_3032\Main.java:50: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
                             ^
0_0_24903161_3032\Main.java:52: 错误: 需要class, interface或enum
        if (v == pre || vis[v]) continue;
        ^
0_0_24903161_3032\Main.java:53: 错误: 需要class, interface或enum
        dfs_sta(v, u, s | (1 << a[v]));
        ^
0_0_24903161_3032\Main.java:54: 错误: 需要class, interface或enum
    }
    ^
0_0_24903161_3032\Main.java:59: 错误: 需要class, interface或enum
    sta.clear(); dfs_sta(u, -1, s);
    ^
0_0_24903161_3032\Main.java:59: 错误: 需要class, interface或enum
    sta.clear(); dfs_sta(u, -1, s);
                 ^
0_0_24903161_3032\Main.java:60: 错误: 需要class, interface或enum
    memset(Hash, 0, sizeof(Hash));
    ^
0_0_24903161_3032\Main.java:61: 错误: 需要class, interface或enum
    int cnt = sta.size();
    ^
0_0_24903161_3032\Main.java:62: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) Hash[sta[i]]++;
    ^
0_0_24903161_3032\Main.java:62: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) Hash[sta[i]]++;
                    ^
0_0_24903161_3032\Main.java:62: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) Hash[sta[i]]++;
                             ^
0_0_24903161_3032\Main.java:63: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
    ^
0_0_24903161_3032\Main.java:63: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
                    ^
0_0_24903161_3032\Main.java:63: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
                             ^
0_0_24903161_3032\Main.java:65: 错误: 需要class, interface或enum
        res += Hash[(1 << k) - 1];
        ^
0_0_24903161_3032\Main.java:66: 错误: 需要class, interface或enum
        for (int s0 = sta[i]; s0; s0 = (s0 - 1) & sta[i])
        ^
0_0_24903161_3032\Main.java:66: 错误: 需要class, interface或enum
        for (int s0 = sta[i]; s0; s0 = (s0 - 1) & sta[i])
                              ^
0_0_24903161_3032\Main.java:66: 错误: 需要class, interface或enum
        for (int s0 = sta[i]; s0; s0 = (s0 - 1) & sta[i])
                                  ^
0_0_24903161_3032\Main.java:68: 错误: 需要class, interface或enum
        Hash[sta[i]]++;
        ^
0_0_24903161_3032\Main.java:69: 错误: 需要class, interface或enum
    }
    ^
0_0_24903161_3032\Main.java:71: 错误: 需要class, interface或enum
}
^
0_0_24903161_3032\Main.java:75: 错误: 需要class, interface或enum
    dfs_size(u, -1); dfs_root(u, u, -1);
    ^
0_0_24903161_3032\Main.java:75: 错误: 需要class, interface或enum
    dfs_size(u, -1); dfs_root(u, u, -1);
                     ^
0_0_24903161_3032\Main.java:76: 错误: 需要class, interface或enum
    ans += cal(root, (1 << a[root]));
    ^
0_0_24903161_3032\Main.java:77: 错误: 需要class, interface或enum
    vis[root] = true;
    ^
0_0_24903161_3032\Main.java:78: 错误: 需要class, interface或enum
    int cnt = tree[root].size(), rt = root;
    ^
0_0_24903161_3032\Main.java:79: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
    ^
0_0_24903161_3032\Main.java:79: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
                    ^
0_0_24903161_3032\Main.java:79: 错误: 需要class, interface或enum
    for (int i = 0; i < cnt; i++) {
                             ^
0_0_24903161_3032\Main.java:81: 错误: 需要class, interface或enum
        if (vis[v]) continue;
        ^
0_0_24903161_3032\Main.java:82: 错误: 需要class, interface或enum
        ans -= cal(v, (1 << a[rt]) | (1 << a[v]));
        ^
0_0_24903161_3032\Main.java:83: 错误: 需要class, interface或enum
        dfs(v);
        ^
0_0_24903161_3032\Main.java:84: 错误: 需要class, interface或enum
    }
    ^
0_0_24903161_3032\Main.java:91: 错误: 需要class, interface或enum
        for (int i = 1; i <= n; i++) {
        ^
0_0_24903161_3032\Main.java:91: 错误: 需要class, interface或enum
        for (int i = 1; i <= n; i++) {
                        ^
0_0_24903161_3032\Main.java:91: 错误: 需要class, interface或enum
        for (int i = 1; i <= n; i++) {
                                ^
0_0_24903161_3032\Main.java:93: 错误: 需要class, interface或enum
            --a[i];
            ^
0_0_24903161_3032\Main.java:94: 错误: 需要class, interface或enum
        }
        ^
0_0_24903161_3032\Main.java:95: 错误: 需要class, interface或enum
        for (int i = 1; i < n; i++) {
                        ^
0_0_24903161_3032\Main.java:95: 错误: 需要class, interface或enum
        for (int i = 1; i < n; i++) {
                               ^
0_0_24903161_3032\Main.java:97: 错误: 需要class, interface或enum
            scanf("%d%d", &u, &v);
            ^
0_0_24903161_3032\Main.java:98: 错误: 需要class, interface或enum
            tree[u].push_back(v);
            ^
0_0_24903161_3032\Main.java:99: 错误: 需要class, interface或enum
            tree[v].push_back(u);
            ^
0_0_24903161_3032\Main.java:100: 错误: 需要class, interface或enum
        }
        ^
0_0_24903161_3032\Main.java:103: 错误: 需要class, interface或enum
            continue;
            ^
0_0_24903161_3032\Main.java:104: 错误: 需要class, interface或enum
        }
        ^
0_0_24903161_3032\Main.java:106: 错误: 需要class, interface或enum
        dfs(1);
        ^
0_0_24903161_3032\Main.java:107: 错误: 需要class, interface或enum
        printf("%lld\n", ans);
        ^
0_0_24903161_3032\Main.java:108: 错


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 05:00:20, Gzip enabled