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_5953820_3425\Main.java:1: illegal character: \35
#include <cstdlib>
^
0_0_5953820_3425\Main.java:2: illegal character: \35
#include <cstdio>
^
0_0_5953820_3425\Main.java:3: illegal character: \35
#include <cstring>
^
0_0_5953820_3425\Main.java:4: illegal character: \35
#include <vector>
^
0_0_5953820_3425\Main.java:5: illegal character: \35
#include <cmath>
^
0_0_5953820_3425\Main.java:9: class, interface, or enum expected
struct CNode {
^
0_0_5953820_3425\Main.java:11: class, interface, or enum expected
    double l;
    ^
0_0_5953820_3425\Main.java:13: class, interface, or enum expected
    CNode(short v, double l, short org_u, short org_v)
    ^
0_0_5953820_3425\Main.java:16: class, interface, or enum expected
        this->l = l;
        ^
0_0_5953820_3425\Main.java:17: class, interface, or enum expected
        this->org_u = org_u;
        ^
0_0_5953820_3425\Main.java:18: class, interface, or enum expected
        this->org_v = org_v;
        ^
0_0_5953820_3425\Main.java:19: class, interface, or enum expected
    }
    ^
0_0_5953820_3425\Main.java:22: class, interface, or enum expected
const int MAXN = 2010;
^
0_0_5953820_3425\Main.java:24: class, interface, or enum expected
vector<CNode> a[MAXN];
^
0_0_5953820_3425\Main.java:26: class, interface, or enum expected
int n, m, nn; //nn表示添加扩展点之后的点上界
^
0_0_5953820_3425\Main.java:28: class, interface, or enum expected
int pre[MAXN], flag[MAXN], merge[MAXN], uu[MAXN], vv[MAXN];
^
0_0_5953820_3425\Main.java:29: class, interface, or enum expected
double len[MAXN];
^
0_0_5953820_3425\Main.java:31: class, interface, or enum expected
double sum;
^
0_0_5953820_3425\Main.java:33: class, interface, or enum expected
void dfs1(int u)
^
0_0_5953820_3425\Main.java:37: class, interface, or enum expected
    flag[u] = 1;
    ^
0_0_5953820_3425\Main.java:38: class, interface, or enum expected
    for (vector<CNode>::iterator i = a[u].begin(); i != a[u].end(); ++i) {
    ^
0_0_5953820_3425\Main.java:38: class, interface, or enum expected
    for (vector<CNode>::iterator i = a[u].begin(); i != a[u].end(); ++i) {
                                                   ^
0_0_5953820_3425\Main.java:38: class, interface, or enum expected
    for (vector<CNode>::iterator i = a[u].begin(); i != a[u].end(); ++i) {
                                                                    ^
0_0_5953820_3425\Main.java:40: class, interface, or enum expected
    }
    ^
0_0_5953820_3425\Main.java:46: class, interface, or enum expected
    dfs1(root);
    ^
0_0_5953820_3425\Main.java:47: class, interface, or enum expected
    for (int i = 0; i < n; ++i)
    ^
0_0_5953820_3425\Main.java:47: class, interface, or enum expected
    for (int i = 0; i < n; ++i)
                    ^
0_0_5953820_3425\Main.java:47: class, interface, or enum expected
    for (int i = 0; i < n; ++i)
                           ^
0_0_5953820_3425\Main.java:50: class, interface, or enum expected
    return true;
    ^
0_0_5953820_3425\Main.java:51: class, interface, or enum expected
}
^
0_0_5953820_3425\Main.java:60: class, interface, or enum expected
    if (flag[u] > 0)
    ^
0_0_5953820_3425\Main.java:62: class, interface, or enum expected
    flag[u] = 1;
    ^
0_0_5953820_3425\Main.java:63: class, interface, or enum expected
    int ret = dfs2(pre[u]);
    ^
0_0_5953820_3425\Main.java:64: class, interface, or enum expected
    flag[u] = -1;
    ^
0_0_5953820_3425\Main.java:65: class, interface, or enum expected
    return ret;
    ^
0_0_5953820_3425\Main.java:66: class, interface, or enum expected
}
^
0_0_5953820_3425\Main.java:74: class, interface, or enum expected
    double ans = 0;
    ^
0_0_5953820_3425\Main.java:75: class, interface, or enum expected
    for (int i = 0; i < 2 * n; ++i) {
    ^
0_0_5953820_3425\Main.java:75: class, interface, or enum expected
    for (int i = 0; i < 2 * n; ++i) {
                    ^
0_0_5953820_3425\Main.java:75: class, interface, or enum expected
    for (int i = 0; i < 2 * n; ++i) {
                               ^
0_0_5953820_3425\Main.java:77: class, interface, or enum expected
        len[i] = 0;
        ^
0_0_5953820_3425\Main.java:78: class, interface, or enum expected
        merge[i] = i;
        ^
0_0_5953820_3425\Main.java:79: class, interface, or enum expected
        uu[i] = -1;
        ^
0_0_5953820_3425\Main.java:80: class, interface, or enum expected
    }
    ^
0_0_5953820_3425\Main.java:82: class, interface, or enum expected
    while (true) {
    ^
0_0_5953820_3425\Main.java:83: class, interface, or enum expected
        for (int i = 0; i < nn; ++i) {
                        ^
0_0_5953820_3425\Main.java:83: class, interface, or enum expected
        for (int i = 0; i < nn; ++i) {
                                ^
0_0_5953820_3425\Main.java:85: class, interface, or enum expected
        }
        ^
0_0_5953820_3425\Main.java:86: class, interface, or enum expected
        for (int i = 0; i < nn; ++i) {
                        ^
0_0_5953820_3425\Main.java:86: class, interface, or enum expected
        for (int i = 0; i < nn; ++i) {
                                ^
0_0_5953820_3425\Main.java:89: class, interface, or enum expected
            for (vector<CNode>::iterator index = a[i].begin(); index != a[i].end(); ++index) {
            ^
0_0_5953820_3425\Main.java:89: class, interface, or enum expected
            for (vector<CNode>::iterator index = a[i].begin(); index != a[i].end(); ++index) {
                                                               ^
0_0_5953820_3425\Main.java:89: class, interface, or enum expected
            for (vector<CNode>::iterator index = a[i].begin(); index != a[i].end(); ++index) {
                                                                                    ^
0_0_5953820_3425\Main.java:92: class, interface, or enum expected
                if (pre[index->v] == -1 || len[index->v] > index->l) {
                ^
0_0_5953820_3425\Main.java:94: class, interface, or enum expected
                    len[index->v] = index->l;
                    ^
0_0_5953820_3425\Main.java:95: class, interface, or enum expected
                    uu[index->v] = index->org_u;
                    ^
0_0_5953820_3425\Main.java:96: class, interface, or enum expected
                    vv[index->v] = index->org_v;
                    ^
0_0_5953820_3425\Main.java:97: class, interface, or enum expected
                }
                ^
0_0_5953820_3425\Main.java:102: class, interface, or enum expected
        for (int i = 0; i < nn; ++i) {
        ^
0_0_5953820_3425\Main.java:102: class, interface, or enum expected
        for (int i = 0; i < nn; ++i) {
                        ^
0_0_5953820_3425\Main.java:102: class, interface, or enum expected
        for (int i = 0; i < nn; ++i) {
                                ^
0_0_5953820_3425\Main.java:104: class, interface, or enum expected
        }
        ^
0_0_5953820_3425\Main.java:106: class, interface, or enum expected
        for (int u = 0; u < nn; ++u) {
        ^
0_0_5953820_3425\Main.java:106: class, interface, or enum expected
        for (int u = 0; u < nn; ++u) {
                        ^
0_0_5953820_3425\Main.java:106: class, interface, or enum expected
        for (int u = 0; u < nn; ++u) {
                                ^
0_0_5953820_3425\Main.java:108: class, interface, or enum expected
            if (t < 0)
            ^
0_0_5953820_3425\Main.java:110: class, interface, or enum expected
            noLoop = false;
            ^
0_0_5953820_3425\Main.java:112: class, interface, or enum expected
            int now = t;
            ^
0_0_5953820_3425\Main.java:113: class, interface, or enum expected
            do {
            ^
0_0_5953820_3425\Main.java:115: class, interface, or enum expected
                now = pre[now];
                ^
0_0_5953820_3425\Main.java:116: class, interface, or enum expected
                ans += len[now];
                ^
0_0_5953820_3425\Main.java:117: class, interface, or enum expected
            } while (now != t);
            ^
0_0_5953820_3425\Main.java:119: class, interface, or enum expected
            a[nn].clear();
            ^
0_0_5953820_3425\Main.java:120: class, interface, or enum expected
            for (int i = 0; i < nn; ++i) {
            ^
0_0_5953820_3425\Main.java:120: class, interface, or enum expected
            for (int i = 0; i < nn; ++i) {
                            ^
0_0_5953820_3425\Main.java:120: class, interface, or enum expected
            for (int i = 0; i < nn; ++i) {
                                    ^
0_0_5953820_3425\Main.java:122: class, interface, or enum expected
                    for (vector<CNode>::iterator index = a[i].begin(); index != a[i].end(); ++index) {
                                                                       ^
0_0_5953820_3425\Main.java:122: class, interface, or enum expected
                    for (vector<CNode>::iterator index = a[i].begin(); index != a[i].end(); ++index) {
                                                                                            ^
0_0_5953820_3425\Main.java:125: class, interface, or enum expected
                    }
                    ^
0_0_5953820_3425\Main.java:128: class, interface, or enum expected
                    for (int j = 0; j<k; ++j) {
                    ^
0_0_5953820_3425\Ma


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-03 02:36:04, Gzip enabled