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_21850089_18557\Main.java:12: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_21850089_18557\Main.java:12: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_21850089_18557\Main.java:14: 错误: 需要class, interface或enum
const int N = 50000+5;
^
0_0_21850089_18557\Main.java:16: 错误: 需要class, interface或enum
struct Edge{
^
0_0_21850089_18557\Main.java:18: 错误: 需要class, interface或enum
};
^
0_0_21850089_18557\Main.java:20: 错误: 需要class, interface或enum
Edge e[N<<1];
^
0_0_21850089_18557\Main.java:21: 错误: 需要class, interface或enum
int add[N<<2];
^
0_0_21850089_18557\Main.java:22: 错误: 需要class, interface或enum
int head[N];
^
0_0_21850089_18557\Main.java:23: 错误: 需要class, interface或enum
int Rank[N];     // rank[i]代表编号为i的节点所对应的原始节点
^
0_0_21850089_18557\Main.java:24: 错误: 需要class, interface或enum
int tid[N];      // tid[i]代表节点i的编号
^
0_0_21850089_18557\Main.java:25: 错误: 需要class, interface或enum
int dep[N], f[N];
^
0_0_21850089_18557\Main.java:26: 错误: 需要class, interface或enum
int sz[N];       // 子节点的数量
^
0_0_21850089_18557\Main.java:27: 错误: 需要class, interface或enum
int son[N], tp[N];
^
0_0_21850089_18557\Main.java:28: 错误: 需要class, interface或enum
int cnt[N];
^
0_0_21850089_18557\Main.java:29: 错误: 需要class, interface或enum
int tot, id;
^
0_0_21850089_18557\Main.java:31: 错误: 需要class, interface或enum
void init() {
^
0_0_21850089_18557\Main.java:33: 错误: 需要class, interface或enum
    memset(head, 0, sizeof(head));
    ^
0_0_21850089_18557\Main.java:34: 错误: 需要class, interface或enum
    memset(son, -1, sizeof(son));
    ^
0_0_21850089_18557\Main.java:35: 错误: 需要class, interface或enum
    dep[1] = 0;
    ^
0_0_21850089_18557\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_21850089_18557\Main.java:40: 错误: 需要class, interface或enum
    head[u] = tot;
    ^
0_0_21850089_18557\Main.java:41: 错误: 需要class, interface或enum
    e[++tot] = Edge{u, head[v]};
    ^
0_0_21850089_18557\Main.java:42: 错误: 需要class, interface或enum
    head[v] = tot;
    ^
0_0_21850089_18557\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_21850089_18557\Main.java:47: 错误: 需要class, interface或enum
bool fisrt;
^
0_0_21850089_18557\Main.java:48: 错误: 需要class, interface或enum
int u, v, a, b;
^
0_0_21850089_18557\Main.java:49: 错误: 需要class, interface或enum
void dfs(int u, int fa, long long res) {
^
0_0_21850089_18557\Main.java:52: 错误: 需要class, interface或enum
    }
    ^
0_0_21850089_18557\Main.java:55: 错误: 需要class, interface或enum
        printf("%lld", res);
        ^
0_0_21850089_18557\Main.java:56: 错误: 需要class, interface或enum
        flag = true;
        ^
0_0_21850089_18557\Main.java:57: 错误: 需要class, interface或enum
        fisrt = false;
        ^
0_0_21850089_18557\Main.java:58: 错误: 需要class, interface或enum
        return ;
        ^
0_0_21850089_18557\Main.java:59: 错误: 需要class, interface或enum
    }
    ^
0_0_21850089_18557\Main.java:60: 错误: 需要class, interface或enum
    for(int i = head[u]; i != -1; i = e[i].next) {
                         ^
0_0_21850089_18557\Main.java:60: 错误: 需要class, interface或enum
    for(int i = head[u]; i != -1; i = e[i].next) {
                                  ^
0_0_21850089_18557\Main.java:62: 错误: 需要class, interface或enum
        if(flag) return ;
        ^
0_0_21850089_18557\Main.java:63: 错误: 需要class, interface或enum
        dfs(e[i].to, u, res);
        ^
0_0_21850089_18557\Main.java:64: 错误: 需要class, interface或enum
    }
    ^
0_0_21850089_18557\Main.java:70: 错误: 需要class, interface或enum
    while(scanf("%d%d", &n, &m) != EOF) {
    ^
0_0_21850089_18557\Main.java:72: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; ++ i) {
        ^
0_0_21850089_18557\Main.java:72: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; ++ i) {
                       ^
0_0_21850089_18557\Main.java:72: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; ++ i) {
                               ^
0_0_21850089_18557\Main.java:74: 错误: 需要class, interface或enum
        }
        ^
0_0_21850089_18557\Main.java:76: 错误: 需要class, interface或enum
        for(int i = 1; i < n; ++ i) {
                       ^
0_0_21850089_18557\Main.java:76: 错误: 需要class, interface或enum
        for(int i = 1; i < n; ++ i) {
                              ^
0_0_21850089_18557\Main.java:78: 错误: 需要class, interface或enum
            scanf("%d%d", &x, &y);
            ^
0_0_21850089_18557\Main.java:79: 错误: 需要class, interface或enum
            addEdge(x, y);
            ^
0_0_21850089_18557\Main.java:80: 错误: 需要class, interface或enum
        }
        ^
0_0_21850089_18557\Main.java:82: 错误: 需要class, interface或enum
        while(m --) {
        ^
0_0_21850089_18557\Main.java:84: 错误: 需要class, interface或enum
            scanf("%d%d%d%d", &u, &v, &a, &b);
            ^
0_0_21850089_18557\Main.java:85: 错误: 需要class, interface或enum
            dfs(u, -1, 0);
            ^
0_0_21850089_18557\Main.java:86: 错误: 需要class, interface或enum
        }
        ^
0_0_21850089_18557\Main.java:88: 错误: 需要class, interface或enum
    }
    ^
0_0_21850089_18557\Main.java:90: 错误: 需要class, interface或enum
}
^
54 个错误


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-30 01:18:25, Gzip enabled