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_6686941_17864\Main.java:1: illegal character: \35
#include <iostream>
^
0_0_6686941_17864\Main.java:2: illegal character: \35
#include <cstdio>
^
0_0_6686941_17864\Main.java:3: illegal character: \35
#include <algorithm>
^
0_0_6686941_17864\Main.java:4: illegal character: \35
#include <cstring>
^
0_0_6686941_17864\Main.java:6: illegal character: \35
#define MAXN 10100
^
0_0_6686941_17864\Main.java:10: class, interface, or enum expected
    int next;
    ^
0_0_6686941_17864\Main.java:11: class, interface, or enum expected
    int to;
    ^
0_0_6686941_17864\Main.java:12: class, interface, or enum expected
}edge[MAXN];
^
0_0_6686941_17864\Main.java:13: class, interface, or enum expected
int head[MAXN];
^
0_0_6686941_17864\Main.java:14: class, interface, or enum expected
int fmax[MAXN];//×î´ó¾àÀë
^
0_0_6686941_17864\Main.java:15: class, interface, or enum expected
int smax[MAXN];//´Î´ó¾àÀë
^
0_0_6686941_17864\Main.java:16: class, interface, or enum expected
int ans[MAXN];
^
0_0_6686941_17864\Main.java:17: class, interface, or enum expected
int fmaxid[MAXN];
^
0_0_6686941_17864\Main.java:18: class, interface, or enum expected
int smaxid[MAXN];
^
0_0_6686941_17864\Main.java:19: class, interface, or enum expected
int tot = 0;
^
0_0_6686941_17864\Main.java:20: class, interface, or enum expected
void addedge(int a,int b,int dis)
^
0_0_6686941_17864\Main.java:23: class, interface, or enum expected
    edge[tot].len = dis;
    ^
0_0_6686941_17864\Main.java:24: class, interface, or enum expected
    edge[tot].next = head[a];
    ^
0_0_6686941_17864\Main.java:25: class, interface, or enum expected
    head[a] = tot++;
    ^
0_0_6686941_17864\Main.java:26: class, interface, or enum expected
    edge[tot].to = a;
    ^
0_0_6686941_17864\Main.java:27: class, interface, or enum expected
    edge[tot].len = dis;
    ^
0_0_6686941_17864\Main.java:28: class, interface, or enum expected
    edge[tot].next = head[b];
    ^
0_0_6686941_17864\Main.java:29: class, interface, or enum expected
    head[b] = tot++;
    ^
0_0_6686941_17864\Main.java:31: class, interface, or enum expected
}
^
0_0_6686941_17864\Main.java:35: class, interface, or enum expected
    for(int i=head[v];i!=-1;i=edge[i].next)
                      ^
0_0_6686941_17864\Main.java:35: class, interface, or enum expected
    for(int i=head[v];i!=-1;i=edge[i].next)
                            ^
0_0_6686941_17864\Main.java:38: class, interface, or enum expected
        if(u == p)continue;
        ^
0_0_6686941_17864\Main.java:39: class, interface, or enum expected
        dfs1(u,v);
        ^
0_0_6686941_17864\Main.java:40: class, interface, or enum expected
        if(smax[v]<fmax[u]+edge[i].len)
        ^
0_0_6686941_17864\Main.java:43: class, interface, or enum expected
            smaxid[v] = u;
            ^
0_0_6686941_17864\Main.java:44: class, interface, or enum expected
            if(smax[v]>fmax[v])
            ^
0_0_6686941_17864\Main.java:47: class, interface, or enum expected
                swap(smaxid[v],fmaxid[v]);
                ^
0_0_6686941_17864\Main.java:48: class, interface, or enum expected
            }
            ^
0_0_6686941_17864\Main.java:57: class, interface, or enum expected
    for(int i=head[v];i!=-1;i=edge[i].next)
                      ^
0_0_6686941_17864\Main.java:57: class, interface, or enum expected
    for(int i=head[v];i!=-1;i=edge[i].next)
                            ^
0_0_6686941_17864\Main.java:60: class, interface, or enum expected
        if(u == p)continue;
        ^
0_0_6686941_17864\Main.java:61: class, interface, or enum expected
        if(fmaxid[v] == u)
        ^
0_0_6686941_17864\Main.java:66: class, interface, or enum expected
                smaxid[u] = v;
                ^
0_0_6686941_17864\Main.java:67: class, interface, or enum expected
                if(smax[u]>fmax[u])
                ^
0_0_6686941_17864\Main.java:70: class, interface, or enum expected
                    swap(smaxid[u],fmaxid[u]);
                    ^
0_0_6686941_17864\Main.java:71: class, interface, or enum expected
                }
                ^
0_0_6686941_17864\Main.java:79: class, interface, or enum expected
                fmaxid[u] = v;
                ^
0_0_6686941_17864\Main.java:80: class, interface, or enum expected
                if(smax[u]>fmax[u])
                ^
0_0_6686941_17864\Main.java:83: class, interface, or enum expected
                    swap(smaxid[u],fmaxid[u]);
                    ^
0_0_6686941_17864\Main.java:84: class, interface, or enum expected
                }
                ^
0_0_6686941_17864\Main.java:88: class, interface, or enum expected
    }
    ^
0_0_6686941_17864\Main.java:94: class, interface, or enum expected
    while(scanf("%d",&n)!=EOF)
    ^
0_0_6686941_17864\Main.java:97: class, interface, or enum expected
        memset(smax,0,sizeof(smax));
        ^
0_0_6686941_17864\Main.java:98: class, interface, or enum expected
        memset(head,-1,sizeof(head));
        ^
0_0_6686941_17864\Main.java:99: class, interface, or enum expected
        tot = 0;
        ^
0_0_6686941_17864\Main.java:100: class, interface, or enum expected
        for(int i=2;i<=n;i++)
        ^
0_0_6686941_17864\Main.java:100: class, interface, or enum expected
        for(int i=2;i<=n;i++)
                    ^
0_0_6686941_17864\Main.java:100: class, interface, or enum expected
        for(int i=2;i<=n;i++)
                         ^
0_0_6686941_17864\Main.java:103: class, interface, or enum expected
            scanf("%d%d",&e,&len);
            ^
0_0_6686941_17864\Main.java:104: class, interface, or enum expected
            addedge(i,e,len);
            ^
0_0_6686941_17864\Main.java:105: class, interface, or enum expected
        }
        ^
0_0_6686941_17864\Main.java:107: class, interface, or enum expected
        dfs2(1,-1);
        ^
0_0_6686941_17864\Main.java:110: class, interface, or enum expected
    }
    ^
0_0_6686941_17864\Main.java:112: class, interface, or enum expected
}


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-04 19:56:09, Gzip enabled