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_31008739_637\Main.java:1: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_31008739_637\Main.java:1: 错误: 需要class, interface或enum
#include <algorithm>
         ^
0_0_31008739_637\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_31008739_637\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_31008739_637\Main.java:4: 错误: 非法字符: '#'
#include <iostream>
^
0_0_31008739_637\Main.java:6: 错误: 需要class, interface或enum
typedef long long LL;
^
0_0_31008739_637\Main.java:7: 错误: 需要class, interface或enum
const int maxn = 50005;
^
0_0_31008739_637\Main.java:8: 错误: 需要class, interface或enum
const int maxm = 50005;
^
0_0_31008739_637\Main.java:9: 错误: 需要class, interface或enum
int n, k, base;
^
0_0_31008739_637\Main.java:10: 错误: 需要class, interface或enum
LL ans = 0;
^
0_0_31008739_637\Main.java:11: 错误: 需要class, interface或enum
int v[maxn];
^
0_0_31008739_637\Main.java:13: 错误: 需要class, interface或enum
struct Edge {
^
0_0_31008739_637\Main.java:15: 错误: 需要class, interface或enum
    int next;
    ^
0_0_31008739_637\Main.java:16: 错误: 需要class, interface或enum
} edge[maxm << 1];
^
0_0_31008739_637\Main.java:17: 错误: 需要class, interface或enum
int head[maxn], tot;
^
0_0_31008739_637\Main.java:18: 错误: 需要class, interface或enum
void init()
^
0_0_31008739_637\Main.java:21: 错误: 需要class, interface或enum
    tot = 0;
    ^
0_0_31008739_637\Main.java:22: 错误: 需要class, interface或enum
}
^
0_0_31008739_637\Main.java:26: 错误: 需要class, interface或enum
    edge[tot].next = head[u];
    ^
0_0_31008739_637\Main.java:27: 错误: 需要class, interface或enum
    head[u] = tot;
    ^
0_0_31008739_637\Main.java:28: 错误: 需要class, interface或enum
}
^
0_0_31008739_637\Main.java:31: 错误: 需要class, interface或enum
bool vis[maxn];
^
0_0_31008739_637\Main.java:32: 错误: 需要class, interface或enum
void GetRoot(int now, int fa)
^
0_0_31008739_637\Main.java:35: 错误: 需要class, interface或enum
    dp[now] = 0;
    ^
0_0_31008739_637\Main.java:36: 错误: 需要class, interface或enum
    for (int i = head[now]; i; i = edge[i].next) {
    ^
0_0_31008739_637\Main.java:36: 错误: 需要class, interface或enum
    for (int i = head[now]; i; i = edge[i].next) {
                            ^
0_0_31008739_637\Main.java:36: 错误: 需要class, interface或enum
    for (int i = head[now]; i; i = edge[i].next) {
                               ^
0_0_31008739_637\Main.java:39: 错误: 需要class, interface或enum
        GetRoot(edge[i].v, now);
        ^
0_0_31008739_637\Main.java:40: 错误: 需要class, interface或enum
        n_size[now] += n_size[edge[i].v];
        ^
0_0_31008739_637\Main.java:41: 错误: 需要class, interface或enum
        dp[now] = max(dp[now], n_size[edge[i].v]);
        ^
0_0_31008739_637\Main.java:42: 错误: 需要class, interface或enum
    }
    ^
0_0_31008739_637\Main.java:44: 错误: 需要class, interface或enum
    if (dp[now] < dp[root])
    ^
0_0_31008739_637\Main.java:46: 错误: 需要class, interface或enum
}
^
0_0_31008739_637\Main.java:49: 错误: 需要class, interface或enum
void solve(int now)
^
0_0_31008739_637\Main.java:52: 错误: 需要class, interface或enum
    ans += cal(now, 0);
    ^
0_0_31008739_637\Main.java:54: 错误: 需要class, interface或enum
    for (int i = head[now]; i; i = edge[i].next) {
    ^
0_0_31008739_637\Main.java:54: 错误: 需要class, interface或enum
    for (int i = head[now]; i; i = edge[i].next) {
                            ^
0_0_31008739_637\Main.java:54: 错误: 需要class, interface或enum
    for (int i = head[now]; i; i = edge[i].next) {
                               ^
0_0_31008739_637\Main.java:57: 错误: 需要class, interface或enum
        ans -= cal(edge[i].v, v[now]);
        ^
0_0_31008739_637\Main.java:58: 错误: 需要class, interface或enum
        root = 0;
        ^
0_0_31008739_637\Main.java:59: 错误: 需要class, interface或enum
        dp[0] = sum = n_size[edge[i].v];
        ^
0_0_31008739_637\Main.java:60: 错误: 需要class, interface或enum
        GetRoot(edge[i].v, 0);
        ^
0_0_31008739_637\Main.java:61: 错误: 需要class, interface或enum
        solve(root);
        ^
0_0_31008739_637\Main.java:62: 错误: 需要class, interface或enum
    }
    ^
0_0_31008739_637\Main.java:67: 错误: 需要class, interface或enum
    dp[root = 0] = sum = n;
    ^
0_0_31008739_637\Main.java:68: 错误: 需要class, interface或enum
    GetRoot(1, 0);
    ^
0_0_31008739_637\Main.java:69: 错误: 需要class, interface或enum
    solve(root);
    ^
0_0_31008739_637\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_31008739_637\Main.java:73: 错误: 需要class, interface或enum
void dfs_add(int now, int w, int fa)
^
0_0_31008739_637\Main.java:76: 错误: 需要class, interface或enum
    cnt[w]++;
    ^
0_0_31008739_637\Main.java:77: 错误: 需要class, interface或enum
    for (int i = head[now]; i; i = edge[i].next) {
    ^
0_0_31008739_637\Main.java:77: 错误: 需要class, interface或enum
    for (int i = head[now]; i; i = edge[i].next) {
                            ^
0_0_31008739_637\Main.java:77: 错误: 需要class, interface或enum
    for (int i = head[now]; i; i = edge[i].next) {
                               ^
0_0_31008739_637\Main.java:80: 错误: 需要class, interface或enum
        dfs_add(edge[i].v, w, now);
        ^
0_0_31008739_637\Main.java:81: 错误: 需要class, interface或enum
    }
    ^
0_0_31008739_637\Main.java:88: 错误: 需要class, interface或enum
    cnt[w]++;
    ^
0_0_31008739_637\Main.java:89: 错误: 需要class, interface或enum
    dfs_add(now, w, 0);
    ^
0_0_31008739_637\Main.java:90: 错误: 需要class, interface或enum
    LL res = 0;
    ^
0_0_31008739_637\Main.java:91: 错误: 需要class, interface或enum
    for (int i = 0; i <= base; i++) {
    ^
0_0_31008739_637\Main.java:91: 错误: 需要class, interface或enum
    for (int i = 0; i <= base; i++) {
                    ^
0_0_31008739_637\Main.java:91: 错误: 需要class, interface或enum
    for (int i = 0; i <= base; i++) {
                               ^
0_0_31008739_637\Main.java:95: 错误: 需要class, interface或enum
            res += cnt[i] * cnt[temp];
            ^
0_0_31008739_637\Main.java:96: 错误: 需要class, interface或enum
            for (int j = i; j; j = (j - 1) & i)
            ^
0_0_31008739_637\Main.java:96: 错误: 需要class, interface或enum
            for (int j = i; j; j = (j - 1) & i)
                            ^
0_0_31008739_637\Main.java:96: 错误: 需要class, interface或enum
            for (int j = i; j; j = (j - 1) & i)
                               ^
0_0_31008739_637\Main.java:98: 错误: 需要class, interface或enum
        }
        ^
0_0_31008739_637\Main.java:102: 错误: 需要class, interface或enum
}
^
0_0_31008739_637\Main.java:105: 错误: 需要class, interface或enum
int main()
^
0_0_31008739_637\Main.java:108: 错误: 需要class, interface或enum
    for (int i = 2; i <= 10; i++)
    ^
0_0_31008739_637\Main.java:108: 错误: 需要class, interface或enum
    for (int i = 2; i <= 10; i++)
                    ^
0_0_31008739_637\Main.java:108: 错误: 需要class, interface或enum
    for (int i = 2; i <= 10; i++)
                             ^
0_0_31008739_637\Main.java:110: 错误: 需要class, interface或enum
    scanf("%d%d", &n, &k);
    ^
0_0_31008739_637\Main.java:111: 错误: 需要class, interface或enum
    base = (1 << k) - 1;
    ^
0_0_31008739_637\Main.java:112: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) {
    ^
0_0_31008739_637\Main.java:112: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) {
                    ^
0_0_31008739_637\Main.java:112: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) {
                            ^
0_0_31008739_637\Main.java:114: 错误: 需要class, interface或enum
        v[i] = n2[v[i]];
        ^
0_0_31008739_637\Main.java:115: 错误: 需要class, interface或enum
    }
    ^
0_0_31008739_637\Main.java:117: 错误: 需要class, interface或enum
    for (int i = 1; i < n; i++) {
    ^
0_0_31008739_637\Main.java:117: 错误: 需要class, interface或enum
    for (int i = 1; i < n; i++) {
                    ^
0_0_31008739_637\Main.java:117: 错误: 需要class, interface或enum
    for (int i = 1; i < n; i++) {
                           ^
0_0_31008739_637\Main.java:119: 错误: 需要class, interface或enum
        AddEdge(u, v);
        ^
0_0_31008739_637\Main.java:120: 错误: 需要class, interface或enum
        AddEdge(v, u);
        ^
0_0_31008739_637\Main.java:121: 错误: 需要class, interface或enum
    }
    ^
0_0_31008739_637\Main.java:123: 错误: 需要class, interface或enum
    printf("%lld\n", ans);
    ^
0_0_31008739_637\Main.java:126: 错误: 需要class, interface或enum
}
^
86 个错误


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:31:13, Gzip enabled