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_14863722_13048\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_14863722_13048\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_14863722_13048\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_14863722_13048\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_14863722_13048\Main.java:4: 错误: 非法字符: '#'
#include <cmath>
^
0_0_14863722_13048\Main.java:5: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_14863722_13048\Main.java:6: 错误: 非法字符: '#'
#include <set>
^
0_0_14863722_13048\Main.java:7: 错误: 非法字符: '#'
#include <queue>
^
0_0_14863722_13048\Main.java:8: 错误: 非法字符: '#'
#include <vector>
^
0_0_14863722_13048\Main.java:9: 错误: 非法字符: '#'
#define LL long long
^
0_0_14863722_13048\Main.java:13: 错误: 需要class, interface或enum
const int maxN = 1005;
^
0_0_14863722_13048\Main.java:15: 错误: 需要class, interface或enum
struct Edge
^
0_0_14863722_13048\Main.java:19: 错误: 需要class, interface或enum
}edge[maxN*2];
^
0_0_14863722_13048\Main.java:21: 错误: 需要class, interface或enum
int head[maxN], cnt;
^
0_0_14863722_13048\Main.java:23: 错误: 需要class, interface或enum
void addEdge(int u, int v)
^
0_0_14863722_13048\Main.java:26: 错误: 需要class, interface或enum
    edge[cnt].next = head[u];
    ^
0_0_14863722_13048\Main.java:27: 错误: 需要class, interface或enum
    head[u] = cnt;
    ^
0_0_14863722_13048\Main.java:28: 错误: 需要class, interface或enum
    cnt++;
    ^
0_0_14863722_13048\Main.java:29: 错误: 需要class, interface或enum
}
^
0_0_14863722_13048\Main.java:34: 错误: 需要class, interface或enum
    cnt = 0;
    ^
0_0_14863722_13048\Main.java:35: 错误: 需要class, interface或enum
}
^
0_0_14863722_13048\Main.java:38: 错误: 需要class, interface或enum
bool vis[maxN];
^
0_0_14863722_13048\Main.java:39: 错误: 需要class, interface或enum
int maxDepth;
^
0_0_14863722_13048\Main.java:40: 错误: 需要class, interface或enum
bool flag;
^
0_0_14863722_13048\Main.java:42: 错误: 需要class, interface或enum
bool input()
^
0_0_14863722_13048\Main.java:46: 错误: 需要class, interface或enum
    initEdge();
    ^
0_0_14863722_13048\Main.java:47: 错误: 需要class, interface或enum
    memset(vis, false, sizeof(vis));
    ^
0_0_14863722_13048\Main.java:48: 错误: 需要class, interface或enum
    maxDepth = 0;
    ^
0_0_14863722_13048\Main.java:49: 错误: 需要class, interface或enum
    flag = true;
    ^
0_0_14863722_13048\Main.java:50: 错误: 需要class, interface或enum
    int u, v;
    ^
0_0_14863722_13048\Main.java:51: 错误: 需要class, interface或enum
    for (int i = 1; i < n; ++i)
    ^
0_0_14863722_13048\Main.java:51: 错误: 需要class, interface或enum
    for (int i = 1; i < n; ++i)
                    ^
0_0_14863722_13048\Main.java:51: 错误: 需要class, interface或enum
    for (int i = 1; i < n; ++i)
                           ^
0_0_14863722_13048\Main.java:54: 错误: 需要class, interface或enum
        addEdge(u, v);
        ^
0_0_14863722_13048\Main.java:55: 错误: 需要class, interface或enum
        addEdge(v, u);
        ^
0_0_14863722_13048\Main.java:56: 错误: 需要class, interface或enum
    }
    ^
0_0_14863722_13048\Main.java:58: 错误: 需要class, interface或enum
}
^
0_0_14863722_13048\Main.java:64: 错误: 需要class, interface或enum
    int cnt = 0;
    ^
0_0_14863722_13048\Main.java:65: 错误: 需要class, interface或enum
    vis[now] = true;
    ^
0_0_14863722_13048\Main.java:66: 错误: 需要class, interface或enum
    for (int i = head[now]; i != -1; i = edge[i].next)
    ^
0_0_14863722_13048\Main.java:66: 错误: 需要class, interface或enum
    for (int i = head[now]; i != -1; i = edge[i].next)
                            ^
0_0_14863722_13048\Main.java:66: 错误: 需要class, interface或enum
    for (int i = head[now]; i != -1; i = edge[i].next)
                                     ^
0_0_14863722_13048\Main.java:70: 错误: 需要class, interface或enum
        dfs(edge[i].to, depth+1);
        ^
0_0_14863722_13048\Main.java:71: 错误: 需要class, interface或enum
        cnt++;
        ^
0_0_14863722_13048\Main.java:72: 错误: 需要class, interface或enum
    }
    ^
0_0_14863722_13048\Main.java:75: 错误: 需要class, interface或enum
    maxDepth = max(maxDepth, depth);
    ^
0_0_14863722_13048\Main.java:76: 错误: 需要class, interface或enum
    if (depth != maxDepth && cnt != 1)
    ^
0_0_14863722_13048\Main.java:78: 错误: 需要class, interface或enum
}
^
0_0_14863722_13048\Main.java:83: 错误: 需要class, interface或enum
    if (flag)
    ^
0_0_14863722_13048\Main.java:85: 错误: 需要class, interface或enum
    else
    ^
0_0_14863722_13048\Main.java:87: 错误: 需要class, interface或enum
}
^
0_0_14863722_13048\Main.java:95: 错误: 需要class, interface或enum
    }
    ^
0_0_14863722_13048\Main.java:97: 错误: 需要class, interface或enum
}
^
53 个错误


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-12-02 06:55:01, Gzip enabled