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_33085892_12523\Main.java:1: 错误: 非法字符: '#'
#include<iostream>
^
0_0_33085892_12523\Main.java:1: 错误: 需要class, interface或enum
#include<iostream>
        ^
0_0_33085892_12523\Main.java:2: 错误: 非法字符: '#'
#include<cstring>
^
0_0_33085892_12523\Main.java:4: 错误: 需要class, interface或enum
using namespace std;
^
0_0_33085892_12523\Main.java:5: 错误: 需要class, interface或enum
struct Edge{
^
0_0_33085892_12523\Main.java:7: 错误: 需要class, interface或enum
}edge[N*10];
^
0_0_33085892_12523\Main.java:8: 错误: 需要class, interface或enum
int parent[N];
^
0_0_33085892_12523\Main.java:9: 错误: 需要class, interface或enum
int weight[N];
^
0_0_33085892_12523\Main.java:10: 错误: 需要class, interface或enum
int n,m;
^
0_0_33085892_12523\Main.java:13: 错误: 需要class, interface或enum
void UFset(){
^
0_0_33085892_12523\Main.java:15: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++){
    ^
0_0_33085892_12523\Main.java:15: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++){
                ^
0_0_33085892_12523\Main.java:15: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++){
                     ^
0_0_33085892_12523\Main.java:17: 错误: 需要class, interface或enum
    }
    ^
0_0_33085892_12523\Main.java:23: 错误: 需要class, interface或enum
    for(s=x;parent[s]>=0;s=parent[s])
    ^
0_0_33085892_12523\Main.java:23: 错误: 需要class, interface或enum
    for(s=x;parent[s]>=0;s=parent[s])
            ^
0_0_33085892_12523\Main.java:23: 错误: 需要class, interface或enum
    for(s=x;parent[s]>=0;s=parent[s])
                         ^
0_0_33085892_12523\Main.java:26: 错误: 需要class, interface或enum
    while(s!=x){
    ^
0_0_33085892_12523\Main.java:28: 错误: 需要class, interface或enum
        parent[x]=s;
        ^
0_0_33085892_12523\Main.java:29: 错误: 需要class, interface或enum
        x=tmp;
        ^
0_0_33085892_12523\Main.java:30: 错误: 需要class, interface或enum
    }
    ^
0_0_33085892_12523\Main.java:32: 错误: 需要class, interface或enum
}
^
0_0_33085892_12523\Main.java:36: 错误: 需要class, interface或enum
    int tmp=parent[r1]+parent[r2];//两个集合节点的个数之和(负数)
    ^
0_0_33085892_12523\Main.java:38: 错误: 需要class, interface或enum
    if(parent[r1]>parent[r2]){ //优化方案,加权法则
    ^
0_0_33085892_12523\Main.java:40: 错误: 需要class, interface或enum
        parent[r2]=tmp;
        ^
0_0_33085892_12523\Main.java:41: 错误: 需要class, interface或enum
        weight[r2]+=w;//根结点权值
        ^
0_0_33085892_12523\Main.java:42: 错误: 需要class, interface或enum
    }else {
    ^
0_0_33085892_12523\Main.java:44: 错误: 需要class, interface或enum
        parent[r1]=tmp;
        ^
0_0_33085892_12523\Main.java:45: 错误: 需要class, interface或enum
        weight[r1]+=w;
        ^
0_0_33085892_12523\Main.java:46: 错误: 需要class, interface或enum
    }
    ^
0_0_33085892_12523\Main.java:52: 错误: 需要class, interface或enum
        bool tag=false;
        ^
0_0_33085892_12523\Main.java:53: 错误: 需要class, interface或enum
        for(int i=0;i<m;i++){
        ^
0_0_33085892_12523\Main.java:53: 错误: 需要class, interface或enum
        for(int i=0;i<m;i++){
                    ^
0_0_33085892_12523\Main.java:53: 错误: 需要class, interface或enum
        for(int i=0;i<m;i++){
                        ^
0_0_33085892_12523\Main.java:55: 错误: 需要class, interface或enum
            if(Find(edge[i].u)!=Find(edge[i].v)){
            ^
0_0_33085892_12523\Main.java:57: 错误: 需要class, interface或enum
            }else {
            ^
0_0_33085892_12523\Main.java:59: 错误: 需要class, interface或enum
            }
            ^
0_0_33085892_12523\Main.java:63: 错误: 需要class, interface或enum
        }else {
        ^
0_0_33085892_12523\Main.java:65: 错误: 需要class, interface或enum
            for(int i=1;i<=n;i++){
            ^
0_0_33085892_12523\Main.java:65: 错误: 需要class, interface或enum
            for(int i=1;i<=n;i++){
                        ^
0_0_33085892_12523\Main.java:65: 错误: 需要class, interface或enum
            for(int i=1;i<=n;i++){
                             ^
0_0_33085892_12523\Main.java:67: 错误: 需要class, interface或enum
            }
            ^
0_0_33085892_12523\Main.java:69: 错误: 需要class, interface或enum
        }
        ^
0_0_33085892_12523\Main.java:72: 错误: 需要class, interface或enum
}
^
44 个错误


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-26 23:34:53, Gzip enabled