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_39824181_11874\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_39824181_11874\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>
        ^
0_0_39824181_11874\Main.java:2: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_39824181_11874\Main.java:3: 错误: 非法字符: '#'
#include<iostream>
^
0_0_39824181_11874\Main.java:4: 错误: 非法字符: '#'
#include<cmath>
^
0_0_39824181_11874\Main.java:5: 错误: 非法字符: '#'
#include<cstring>
^
0_0_39824181_11874\Main.java:6: 错误: 非法字符: '#'
#include<cstdlib>
^
0_0_39824181_11874\Main.java:7: 错误: 非法字符: '#'
#define N 100007
^
0_0_39824181_11874\Main.java:8: 错误: 非法字符: '#'
#define M 1000007
^
0_0_39824181_11874\Main.java:11: 错误: 需要class, interface或enum
int n,m,ans;
^
0_0_39824181_11874\Main.java:12: 错误: 需要class, interface或enum
int cnt,head[N],Next[M*2],rea[M*2],val[M*2];
^
0_0_39824181_11874\Main.java:13: 错误: 需要class, interface或enum
int f[N][3],fa[N];
^
0_0_39824181_11874\Main.java:14: 错误: 需要class, interface或enum
bool vis[N];
^
0_0_39824181_11874\Main.java:16: 错误: 需要class, interface或enum
void Add(int u,int v,int fee){Next[++cnt]=head[u],head[u]=cnt,rea[cnt]=v,val[cnt]=fee;}
^
0_0_39824181_11874\Main.java:16: 错误: 需要class, interface或enum
void Add(int u,int v,int fee){Next[++cnt]=head[u],head[u]=cnt,rea[cnt]=v,val[cnt]=fee;}
                                                                                      ^
0_0_39824181_11874\Main.java:20: 错误: 需要class, interface或enum
    return fa[num];
    ^
0_0_39824181_11874\Main.java:21: 错误: 需要class, interface或enum
}
^
0_0_39824181_11874\Main.java:24: 错误: 需要class, interface或enum
    for (int i=head[u];i!=-1;i=Next[i])
                       ^
0_0_39824181_11874\Main.java:24: 错误: 需要class, interface或enum
    for (int i=head[u];i!=-1;i=Next[i])
                             ^
0_0_39824181_11874\Main.java:27: 错误: 需要class, interface或enum
        if (v==fa||vis[v]) continue;
        ^
0_0_39824181_11874\Main.java:28: 错误: 需要class, interface或enum
        vis[v]=1;dfs_solve(v,u);
        ^
0_0_39824181_11874\Main.java:28: 错误: 需要class, interface或enum
        vis[v]=1;dfs_solve(v,u);
                 ^
0_0_39824181_11874\Main.java:29: 错误: 需要class, interface或enum
        if (f[v][1]+fee>f[u][1])
        ^
0_0_39824181_11874\Main.java:32: 错误: 需要class, interface或enum
            f[u][1]=f[v][1]+fee;
            ^
0_0_39824181_11874\Main.java:33: 错误: 需要class, interface或enum
        }
        ^
0_0_39824181_11874\Main.java:35: 错误: 需要class, interface或enum
    }
    ^
0_0_39824181_11874\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_39824181_11874\Main.java:43: 错误: 需要class, interface或enum
        bool flag=0;
        ^
0_0_39824181_11874\Main.java:44: 错误: 需要class, interface或enum
        memset(vis,0,sizeof(vis));
        ^
0_0_39824181_11874\Main.java:45: 错误: 需要class, interface或enum
        memset(head,-1,sizeof(head));
        ^
0_0_39824181_11874\Main.java:46: 错误: 需要class, interface或enum
        memset(f,0,sizeof(f));
        ^
0_0_39824181_11874\Main.java:47: 错误: 需要class, interface或enum
        for (int i=1;i<=n;i++) fa[i]=i;
        ^
0_0_39824181_11874\Main.java:47: 错误: 需要class, interface或enum
        for (int i=1;i<=n;i++) fa[i]=i;
                     ^
0_0_39824181_11874\Main.java:47: 错误: 需要class, interface或enum
        for (int i=1;i<=n;i++) fa[i]=i;
                          ^
0_0_39824181_11874\Main.java:48: 错误: 需要class, interface或enum
        for (int i=1,x,y,z;i<=m;i++)
        ^
0_0_39824181_11874\Main.java:48: 错误: 需要class, interface或enum
        for (int i=1,x,y,z;i<=m;i++)
                           ^
0_0_39824181_11874\Main.java:48: 错误: 需要class, interface或enum
        for (int i=1,x,y,z;i<=m;i++)
                                ^
0_0_39824181_11874\Main.java:51: 错误: 需要class, interface或enum
            if (flag) continue;
            ^
0_0_39824181_11874\Main.java:52: 错误: 需要class, interface或enum
            int u=find(x),v=find(y);
            ^
0_0_39824181_11874\Main.java:53: 错误: 需要class, interface或enum
            if (u==v)
            ^
0_0_39824181_11874\Main.java:56: 错误: 需要class, interface或enum
                printf("YES\n");
                ^
0_0_39824181_11874\Main.java:57: 错误: 需要class, interface或enum
            }
            ^
0_0_39824181_11874\Main.java:59: 错误: 需要class, interface或enum
            Add(x,y,z),Add(y,x,z);
            ^
0_0_39824181_11874\Main.java:60: 错误: 需要class, interface或enum
        }
        ^
0_0_39824181_11874\Main.java:62: 错误: 需要class, interface或enum
        ans=-1;
        ^
0_0_39824181_11874\Main.java:63: 错误: 需要class, interface或enum
        for (int i=1;i<=n;i++)
        ^
0_0_39824181_11874\Main.java:63: 错误: 需要class, interface或enum
        for (int i=1;i<=n;i++)
                     ^
0_0_39824181_11874\Main.java:63: 错误: 需要class, interface或enum
        for (int i=1;i<=n;i++)
                          ^
0_0_39824181_11874\Main.java:68: 错误: 需要class, interface或enum
                dfs_solve(i,-1);
                ^
0_0_39824181_11874\Main.java:69: 错误: 需要class, interface或enum
            }
            ^
0_0_39824181_11874\Main.java:72: 错误: 需要class, interface或enum
    }
    ^
51 个错误


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-25 16:35:36, Gzip enabled