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_37225742_21364\Main.java:2: 错误: 需要class, interface或enum
0#include <iostream>
^
0_0_37225742_21364\Main.java:2: 错误: 非法字符: '#'
0#include <iostream>
 ^
0_0_37225742_21364\Main.java:3: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_37225742_21364\Main.java:4: 错误: 非法字符: '#'
#include <cmath>
^
0_0_37225742_21364\Main.java:6: 错误: 需要class, interface或enum
const int SIZE = 100005;
^
0_0_37225742_21364\Main.java:8: 错误: 需要class, interface或enum
typedef struct {
^
0_0_37225742_21364\Main.java:10: 错误: 需要class, interface或enum
	double y;  
	^
0_0_37225742_21364\Main.java:11: 错误: 需要class, interface或enum
}point;
^
0_0_37225742_21364\Main.java:12: 错误: 需要class, interface或enum
point p[SIZE], c[SIZE]/*用作辅助数组*/;
^
0_0_37225742_21364\Main.java:14: 错误: 需要class, interface或enum
double getDistance(point &a, point &b){  /*求得两点之间的距离*/
^
0_0_37225742_21364\Main.java:16: 错误: 需要class, interface或enum
}
^
0_0_37225742_21364\Main.java:21: 错误: 需要class, interface或enum
	return a.x < b.x;
	^
0_0_37225742_21364\Main.java:22: 错误: 需要class, interface或enum
}
^
0_0_37225742_21364\Main.java:26: 错误: 需要class, interface或enum
	return a.y < b.y;
	^
0_0_37225742_21364\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_37225742_21364\Main.java:31: 错误: 需要class, interface或enum
	a = a< c ? a : c;
	^
0_0_37225742_21364\Main.java:32: 错误: 需要class, interface或enum
	return a;
	^
0_0_37225742_21364\Main.java:33: 错误: 需要class, interface或enum
}
^
0_0_37225742_21364\Main.java:37: 错误: 需要class, interface或enum
	return a;
	^
0_0_37225742_21364\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_37225742_21364\Main.java:42: 错误: 需要class, interface或enum
	if (low==high)
	^
0_0_37225742_21364\Main.java:44: 错误: 需要class, interface或enum
	else if (low+1 == high)  /*两个数*/
	^
0_0_37225742_21364\Main.java:46: 错误: 需要class, interface或enum
	else if (low+2 == high){/*三个数*/
	^
0_0_37225742_21364\Main.java:48: 错误: 需要class, interface或enum
		temp1 = getDistance(p[low], p[low + 1]);
		^
0_0_37225742_21364\Main.java:49: 错误: 需要class, interface或enum
		temp2 = getDistance(p[low + 1], p[high]);
		^
0_0_37225742_21364\Main.java:50: 错误: 需要class, interface或enum
		temp3 = getDistance(p[low], p[high]);
		^
0_0_37225742_21364\Main.java:51: 错误: 需要class, interface或enum
		dis = min(temp1, temp2, temp3);
		^
0_0_37225742_21364\Main.java:52: 错误: 需要class, interface或enum
	}
	^
0_0_37225742_21364\Main.java:55: 错误: 需要class, interface或enum
		int mid = (low + high) / 2;
		^
0_0_37225742_21364\Main.java:56: 错误: 需要class, interface或enum
		int k= 0,i, j;
		^
0_0_37225742_21364\Main.java:58: 错误: 需要class, interface或enum
		leftmin = divide_conquer(low, mid);  /*求得左边部分的最小值*/
		^
0_0_37225742_21364\Main.java:59: 错误: 需要class, interface或enum
		rightmin = divide_conquer(mid + 1, high);  /*求得右边部分的最小值*/
		^
0_0_37225742_21364\Main.java:60: 错误: 需要class, interface或enum
		dis = minDist(leftmin, rightmin);
		^
0_0_37225742_21364\Main.java:63: 错误: 需要class, interface或enum
		for (i = low; i <=high; i++){
		^
0_0_37225742_21364\Main.java:63: 错误: 需要class, interface或enum
		for (i = low; i <=high; i++){
		              ^
0_0_37225742_21364\Main.java:63: 错误: 需要class, interface或enum
		for (i = low; i <=high; i++){
		                        ^
0_0_37225742_21364\Main.java:66: 错误: 需要class, interface或enum
		}
		^
0_0_37225742_21364\Main.java:68: 错误: 需要class, interface或enum
		for (i = 0; i < k; i++){
		^
0_0_37225742_21364\Main.java:68: 错误: 需要class, interface或enum
		for (i = 0; i < k; i++){
		            ^
0_0_37225742_21364\Main.java:68: 错误: 需要class, interface或enum
		for (i = 0; i < k; i++){
		                   ^
0_0_37225742_21364\Main.java:69: 错误: 需要class, interface或enum
			for (j = i+1;j<k&&p[j].y-p[i].y<dis ; j++){	
			             ^
0_0_37225742_21364\Main.java:69: 错误: 需要class, interface或enum
			for (j = i+1;j<k&&p[j].y-p[i].y<dis ; j++){	
			                                      ^
0_0_37225742_21364\Main.java:71: 错误: 需要class, interface或enum
			}
			^
0_0_37225742_21364\Main.java:75: 错误: 需要class, interface或enum
}
^
0_0_37225742_21364\Main.java:79: 错误: 需要class, interface或enum
	while (cin >> n && n != 0){
	^
0_0_37225742_21364\Main.java:82: 错误: 需要class, interface或enum
		for (int i = 0; i < n; i++){
		^
0_0_37225742_21364\Main.java:82: 错误: 需要class, interface或enum
		for (int i = 0; i < n; i++){
		                ^
0_0_37225742_21364\Main.java:82: 错误: 需要class, interface或enum
		for (int i = 0; i < n; i++){
		                       ^
0_0_37225742_21364\Main.java:84: 错误: 需要class, interface或enum
		}
		^
0_0_37225742_21364\Main.java:86: 错误: 需要class, interface或enum
		result = divide_conquer(0, n - 1);
		^
0_0_37225742_21364\Main.java:87: 错误: 需要class, interface或enum
		printf("%.2lf\n", result / 2);
		^
0_0_37225742_21364\Main.java:88: 错误: 需要class, interface或enum
	}
	^
0_0_37225742_21364\Main.java:90: 错误: 需要class, interface或enum
}
^
53 个错误


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-29 23:38:58, Gzip enabled