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_37956801_13870\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_37956801_13870\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_37956801_13870\Main.java:2: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_37956801_13870\Main.java:4: 错误: 需要class, interface或enum
int father[222];  //记录每个元素的指向
^
0_0_37956801_13870\Main.java:5: 错误: 需要class, interface或enum
struct ssss
^
0_0_37956801_13870\Main.java:8: 错误: 需要class, interface或enum
}ss[1111];
^
0_0_37956801_13870\Main.java:9: 错误: 需要class, interface或enum
int Find(int x)
^
0_0_37956801_13870\Main.java:12: 错误: 需要class, interface或enum
}
^
0_0_37956801_13870\Main.java:16: 错误: 需要class, interface或enum
}
^
0_0_37956801_13870\Main.java:20: 错误: 需要class, interface或enum
}
^
0_0_37956801_13870\Main.java:24: 错误: 需要class, interface或enum
    while(cin>>n>>m)
    ^
0_0_37956801_13870\Main.java:26: 错误: 需要class, interface或enum
        for(i=0;i<m;i++)
                ^
0_0_37956801_13870\Main.java:26: 错误: 需要class, interface或enum
        for(i=0;i<m;i++)
                    ^
0_0_37956801_13870\Main.java:28: 错误: 需要class, interface或enum
        sort(ss,ss+m,cmp);  //在外面就排序做好准备
        ^
0_0_37956801_13870\Main.java:29: 错误: 需要class, interface或enum
        cin>>l;
        ^
0_0_37956801_13870\Main.java:30: 错误: 需要class, interface或enum
        while(l--&&cin>>x>>y)
        ^
0_0_37956801_13870\Main.java:32: 错误: 需要class, interface或enum
            for(i=0,sum=1000001;i<m;i++)  //选择起点
                                ^
0_0_37956801_13870\Main.java:32: 错误: 需要class, interface或enum
            for(i=0,sum=1000001;i<m;i++)  //选择起点
                                    ^
0_0_37956801_13870\Main.java:34: 错误: 需要class, interface或enum
                for(j=0;j<222;j++)father[j]=j;  //每次都要初始化father数组
                        ^
0_0_37956801_13870\Main.java:34: 错误: 需要class, interface或enum
                for(j=0;j<222;j++)father[j]=j;  //每次都要初始化father数组
                              ^
0_0_37956801_13870\Main.java:35: 错误: 需要class, interface或enum
                for(j=i;j<m;j++)  //从起点开始修路
                ^
0_0_37956801_13870\Main.java:35: 错误: 需要class, interface或enum
                for(j=i;j<m;j++)  //从起点开始修路
                        ^
0_0_37956801_13870\Main.java:35: 错误: 需要class, interface或enum
                for(j=i;j<m;j++)  //从起点开始修路
                            ^
0_0_37956801_13870\Main.java:38: 错误: 需要class, interface或enum
                    if(Find(x)==Find(y))break;  
                    ^
0_0_37956801_13870\Main.java:39: 错误: 需要class, interface或enum
                }
                ^
0_0_37956801_13870\Main.java:41: 错误: 需要class, interface或enum
                if(sum>ss[j].s-ss[i].s)sum=ss[j].s-ss[i].s;  
                ^
0_0_37956801_13870\Main.java:42: 错误: 需要class, interface或enum
            }
            ^
0_0_37956801_13870\Main.java:44: 错误: 需要class, interface或enum
            else cout<<"-1"<<endl;
            ^
0_0_37956801_13870\Main.java:45: 错误: 需要class, interface或enum
        }
        ^
0_0_37956801_13870\Main.java:48: 错误: 需要class, interface或enum
}
^
30 个错误


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-23 04:36:08, Gzip enabled