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_19989606_440\Main.java:1: 错误: 非法字符: '#'
#include<iostream>
^
0_0_19989606_440\Main.java:1: 错误: 需要class, interface或enum
#include<iostream>
        ^
0_0_19989606_440\Main.java:2: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_19989606_440\Main.java:3: 错误: 非法字符: '#'
#include<cstring>
^
0_0_19989606_440\Main.java:4: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_19989606_440\Main.java:8: 错误: 需要class, interface或enum
const int N=110;
^
0_0_19989606_440\Main.java:10: 错误: 需要class, interface或enum
struct Edge{
^
0_0_19989606_440\Main.java:12: 错误: 需要class, interface或enum
    int cap;
    ^
0_0_19989606_440\Main.java:13: 错误: 需要class, interface或enum
}edge[N*N];
^
0_0_19989606_440\Main.java:15: 错误: 需要class, interface或enum
int n,cnt,ans;
^
0_0_19989606_440\Main.java:16: 错误: 需要class, interface或enum
int father[N],rank[N];
^
0_0_19989606_440\Main.java:18: 错误: 需要class, interface或enum
void addedge(int cu,int cv,int cw){
^
0_0_19989606_440\Main.java:19: 错误: 需要class, interface或enum
    edge[cnt].u=cu;     edge[cnt].v=cv;     edge[cnt].cap=cw;
                        ^
0_0_19989606_440\Main.java:19: 错误: 需要class, interface或enum
    edge[cnt].u=cu;     edge[cnt].v=cv;     edge[cnt].cap=cw;
                                            ^
0_0_19989606_440\Main.java:20: 错误: 需要class, interface或enum
    cnt++;
    ^
0_0_19989606_440\Main.java:21: 错误: 需要class, interface或enum
}
^
0_0_19989606_440\Main.java:24: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++){
                ^
0_0_19989606_440\Main.java:24: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++){
                     ^
0_0_19989606_440\Main.java:26: 错误: 需要class, interface或enum
        rank[i]=1;
        ^
0_0_19989606_440\Main.java:27: 错误: 需要class, interface或enum
    }
    ^
0_0_19989606_440\Main.java:33: 错误: 需要class, interface或enum
    }
    ^
0_0_19989606_440\Main.java:35: 错误: 需要class, interface或enum
}
^
0_0_19989606_440\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_19989606_440\Main.java:43: 错误: 需要class, interface或enum
    for(int i=0;i<cnt;i++){
    ^
0_0_19989606_440\Main.java:43: 错误: 需要class, interface或enum
    for(int i=0;i<cnt;i++){
                ^
0_0_19989606_440\Main.java:43: 错误: 需要class, interface或enum
    for(int i=0;i<cnt;i++){
                      ^
0_0_19989606_440\Main.java:45: 错误: 需要class, interface或enum
        int fy=findSet(edge[i].v);
        ^
0_0_19989606_440\Main.java:46: 错误: 需要class, interface或enum
        if(fx==fy)
        ^
0_0_19989606_440\Main.java:48: 错误: 需要class, interface或enum
        ans+=edge[i].cap;
        ^
0_0_19989606_440\Main.java:49: 错误: 需要class, interface或enum
        if(rank[fx]>=rank[fy]){
        ^
0_0_19989606_440\Main.java:51: 错误: 需要class, interface或enum
            rank[fx]+=rank[fy];
            ^
0_0_19989606_440\Main.java:52: 错误: 需要class, interface或enum
        }else{
        ^
0_0_19989606_440\Main.java:54: 错误: 需要class, interface或enum
            rank[fy]+=rank[fx];
            ^
0_0_19989606_440\Main.java:55: 错误: 需要class, interface或enum
        }
        ^
0_0_19989606_440\Main.java:65: 错误: 需要class, interface或enum
        cnt=0;
        ^
0_0_19989606_440\Main.java:66: 错误: 需要class, interface或enum
        int w;
        ^
0_0_19989606_440\Main.java:67: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
        ^
0_0_19989606_440\Main.java:67: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                    ^
0_0_19989606_440\Main.java:67: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                         ^
0_0_19989606_440\Main.java:68: 错误: 需要class, interface或enum
            for(int j=1;j<=n;j++){
                        ^
0_0_19989606_440\Main.java:68: 错误: 需要class, interface或enum
            for(int j=1;j<=n;j++){
                             ^
0_0_19989606_440\Main.java:70: 错误: 需要class, interface或enum
                addedge(i,j,w);
                ^
0_0_19989606_440\Main.java:71: 错误: 需要class, interface或enum
            }
            ^
0_0_19989606_440\Main.java:73: 错误: 需要class, interface或enum
        scanf("%d",&q);
        ^
0_0_19989606_440\Main.java:74: 错误: 需要class, interface或enum
        while(q--){
        ^
0_0_19989606_440\Main.java:76: 错误: 需要class, interface或enum
            int fx=findSet(u);
            ^
0_0_19989606_440\Main.java:77: 错误: 需要class, interface或enum
            int fy=findSet(v);
            ^
0_0_19989606_440\Main.java:78: 错误: 需要class, interface或enum
            if(rank[fx]>=rank[fy]){
            ^
0_0_19989606_440\Main.java:80: 错误: 需要class, interface或enum
                rank[fx]+=rank[fy];
                ^
0_0_19989606_440\Main.java:81: 错误: 需要class, interface或enum
            }else{
            ^
0_0_19989606_440\Main.java:83: 错误: 需要class, interface或enum
                rank[fy]+=rank[fx];
                ^
0_0_19989606_440\Main.java:84: 错误: 需要class, interface或enum
            }
            ^
0_0_19989606_440\Main.java:87: 错误: 需要class, interface或enum
        Kruskal();
        ^
0_0_19989606_440\Main.java:88: 错误: 需要class, interface或enum
        printf("%d\n",ans);
        ^
0_0_19989606_440\Main.java:89: 错误: 需要class, interface或enum
    }
    ^
0_0_19989606_440\Main.java:91: 错误: 需要class, interface或enum
}
^
56 个错误


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-26 14:00:56, Gzip enabled