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_37442377_28976\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_37442377_28976\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_37442377_28976\Main.java:2: 错误: 非法字符: '#'
#include <cmath>
^
0_0_37442377_28976\Main.java:3: 错误: 非法字符: '#'
#include <iomanip>
^
0_0_37442377_28976\Main.java:6: 错误: 需要class, interface或enum
const double eps = 1e-8;
^
0_0_37442377_28976\Main.java:7: 错误: 需要class, interface或enum
const double pi = 3.1415926536;
^
0_0_37442377_28976\Main.java:9: 错误: 需要class, interface或enum
struct rectangle //长方形区域两对角坐标
^
0_0_37442377_28976\Main.java:12: 错误: 需要class, interface或enum
} b, g[800]; //b为球场,g为得分区域(每个区域向上下左右各映射1次,共5个)
^
0_0_37442377_28976\Main.java:14: 错误: 需要class, interface或enum
double x, y; //球的坐标
^
0_0_37442377_28976\Main.java:15: 错误: 需要class, interface或enum
double l[1005], r[1005];
^
0_0_37442377_28976\Main.java:17: 错误: 需要class, interface或enum
void adjust(rectangle& r) 
^
0_0_37442377_28976\Main.java:20: 错误: 需要class, interface或enum
	if (r.x1 - r.x2 > eps) 
	^
0_0_37442377_28976\Main.java:23: 错误: 需要class, interface或enum
		r.x1 = r.x2;
		^
0_0_37442377_28976\Main.java:24: 错误: 需要class, interface或enum
		r.x2 = t;
		^
0_0_37442377_28976\Main.java:25: 错误: 需要class, interface或enum
	}
	^
0_0_37442377_28976\Main.java:29: 错误: 需要class, interface或enum
		r.y1 = r.y2;
		^
0_0_37442377_28976\Main.java:30: 错误: 需要class, interface或enum
		r.y2 = t;
		^
0_0_37442377_28976\Main.java:31: 错误: 需要class, interface或enum
	}
	^
0_0_37442377_28976\Main.java:40: 错误: 需要class, interface或enum
	}
	^
0_0_37442377_28976\Main.java:46: 错误: 需要class, interface或enum
		}
		^
0_0_37442377_28976\Main.java:50: 错误: 需要class, interface或enum
		}
		^
0_0_37442377_28976\Main.java:54: 错误: 需要class, interface或enum
		}
		^
0_0_37442377_28976\Main.java:61: 错误: 需要class, interface或enum
		}
		^
0_0_37442377_28976\Main.java:65: 错误: 需要class, interface或enum
		}
		^
0_0_37442377_28976\Main.java:69: 错误: 需要class, interface或enum
		}
		^
0_0_37442377_28976\Main.java:76: 错误: 需要class, interface或enum
		}
		^
0_0_37442377_28976\Main.java:80: 错误: 需要class, interface或enum
		}
		^
0_0_37442377_28976\Main.java:87: 错误: 需要class, interface或enum
	cin >> T;
	^
0_0_37442377_28976\Main.java:88: 错误: 需要class, interface或enum
	while (T--) 
	^
0_0_37442377_28976\Main.java:91: 错误: 需要class, interface或enum
		adjust(b);
		^
0_0_37442377_28976\Main.java:92: 错误: 需要class, interface或enum
		cin >> x >> y >> n; //球的坐标和得分区域数量
		^
0_0_37442377_28976\Main.java:93: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; i++) 
		^
0_0_37442377_28976\Main.java:93: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; i++) 
		                ^
0_0_37442377_28976\Main.java:93: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; i++) 
		                        ^
0_0_37442377_28976\Main.java:97: 错误: 需要class, interface或enum
			adjust(g[i]);
			^
0_0_37442377_28976\Main.java:98: 错误: 需要class, interface或enum
			g[i + n].x1 = g[i].x1;
			^
0_0_37442377_28976\Main.java:99: 错误: 需要class, interface或enum
			g[i + n].y1 = 2 * b.y1 - g[i].y1;
			^
0_0_37442377_28976\Main.java:100: 错误: 需要class, interface或enum
			g[i + n].x2 = g[i].x2;
			^
0_0_37442377_28976\Main.java:101: 错误: 需要class, interface或enum
			g[i + n].y2 = 2 * b.y1 - g[i].y2;
			^
0_0_37442377_28976\Main.java:102: 错误: 需要class, interface或enum
			adjust(g[i + n]);
			^
0_0_37442377_28976\Main.java:103: 错误: 需要class, interface或enum
			g[i + 2 * n].x1 = g[i].x1;
			^
0_0_37442377_28976\Main.java:104: 错误: 需要class, interface或enum
			g[i + 2 * n].y1 = 2 * b.y2 - g[i].y1;
			^
0_0_37442377_28976\Main.java:105: 错误: 需要class, interface或enum
			g[i + 2 * n].x2 = g[i].x2;
			^
0_0_37442377_28976\Main.java:106: 错误: 需要class, interface或enum
			g[i + 2 * n].y2 = 2 * b.y2 - g[i].y2;
			^
0_0_37442377_28976\Main.java:107: 错误: 需要class, interface或enum
			adjust(g[i + 2 * n]);
			^
0_0_37442377_28976\Main.java:108: 错误: 需要class, interface或enum
			g[i + 3 * n].x1 = 2 * b.x1 - g[i].x1;
			^
0_0_37442377_28976\Main.java:109: 错误: 需要class, interface或enum
			g[i + 3 * n].y1 = g[i].y1;
			^
0_0_37442377_28976\Main.java:110: 错误: 需要class, interface或enum
			g[i + 3 * n].x2 = 2 * b.x1 - g[i].x2;
			^
0_0_37442377_28976\Main.java:111: 错误: 需要class, interface或enum
			g[i + 3 * n].y2 = g[i].y2;
			^
0_0_37442377_28976\Main.java:112: 错误: 需要class, interface或enum
			adjust(g[i + 3 * n]);
			^
0_0_37442377_28976\Main.java:113: 错误: 需要class, interface或enum
			g[i + 4 * n].x1 = 2 * b.x2 - g[i].x1;
			^
0_0_37442377_28976\Main.java:114: 错误: 需要class, interface或enum
			g[i + 4 * n].y1 = g[i].y1;
			^
0_0_37442377_28976\Main.java:115: 错误: 需要class, interface或enum
			g[i + 4 * n].x2 = 2 * b.x2 - g[i].x2;
			^
0_0_37442377_28976\Main.java:116: 错误: 需要class, interface或enum
			g[i + 4 * n].y2 = g[i].y2;
			^
0_0_37442377_28976\Main.java:117: 错误: 需要class, interface或enum
			adjust(g[i + 4 * n]);
			^
0_0_37442377_28976\Main.java:118: 错误: 需要class, interface或enum
		}
		^
0_0_37442377_28976\Main.java:121: 错误: 需要class, interface或enum
		int m = 0;
		^
0_0_37442377_28976\Main.java:122: 错误: 需要class, interface或enum
		bool flag = false;
		^
0_0_37442377_28976\Main.java:123: 错误: 需要class, interface或enum
		double a1, a2;
		^
0_0_37442377_28976\Main.java:124: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; i++) 
		^
0_0_37442377_28976\Main.java:124: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; i++) 
		                ^
0_0_37442377_28976\Main.java:124: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; i++) 
		                        ^
0_0_37442377_28976\Main.java:127: 错误: 需要class, interface或enum
			if (tmp == 0) 
			^
0_0_37442377_28976\Main.java:130: 错误: 需要class, interface或enum
				break;
				^
0_0_37442377_28976\Main.java:131: 错误: 需要class, interface或enum
			}
			^
0_0_37442377_28976\Main.java:135: 错误: 需要class, interface或enum
				a1 = atan2(y - g[i].y2, x - g[i].x1);
				^
0_0_37442377_28976\Main.java:136: 错误: 需要class, interface或enum
				a2 = atan2(y - g[i].y2, g[i].x2 - x);
				^
0_0_37442377_28976\Main.java:137: 错误: 需要class, interface或enum
				l[m] = pi + a1;
				^
0_0_37442377_28976\Main.java:138: 错误: 需要class, interface或enum
				r[m] = 2 * pi - a2;
				^
0_0_37442377_28976\Main.java:139: 错误: 需要class, interface或enum
			}
			^
0_0_37442377_28976\Main.java:143: 错误: 需要class, interface或enum
				a1 = atan2(y - g[i].y2, x - g[i].x1);
				^
0_0_37442377_28976\Main.java:144: 错误: 需要class, interface或enum
				a2 = atan2(x - g[i].x2, y - g[i].y1);
				^
0_0_37442377_28976\Main.java:145: 错误: 需要class, interface或enum
				l[m] = pi + a1;
				^
0_0_37442377_28976\Main.java:146: 错误: 需要class, interface或enum
				r[m] = 1.5 * pi - a2;
				^
0_0_37442377_28976\Main.java:147: 错误: 需要class, interface或enum
			}
			^
0_0_37442377_28976\Main.java:151: 错误: 需要class, interface或enum
				a1 = atan2(x - g[i].x2, g[i].y2 - y);
				^
0_0_37442377_28976\Main.java:152: 错误: 需要class, interface或enum
				a2 = atan2(x - g[i].x2, y - g[i].y1);
				^
0_0_37442377_28976\Main.java:153: 错误: 需要class, interface或enum
				l[m] = 0.5 * pi + a1;
				^
0_0_37442377_28976\Main.java:154: 错误: 需要class, interface或enum
				r[m] = 1.5 * pi - a2;
				^
0_0_37442377_28976\Main.java:155: 错误: 需要class, interface或enum
			}
			^
0_0_37442377_28976\Main.java:159: 错误: 需要class, interface或enum
				a1 = atan2(x - g[i].x2, g[i].y2 - y);
				^
0_0_37442377_28976\Main.java:160: 错误: 需要class, interface或enum
				a2 = atan2(g[i].y1 - y, x - g[i].x1);
				^
0_0_37442377_28976\Main.java:161: 错误: 需要class, interface或enum
				l[m] = 0.5 * pi + a1;
				^
0_0_37442377_28976\Main.java:162: 错误: 需要class, interface或enum
				r[m] = pi - a2;
				^
0_0_37442377_28976\Main.java:163: 错误: 需要class, interface或enum
			}
			^
0_0_37442377_28976\Main.java:167: 错误: 需要class, interface或enum
				a1 = atan2(g[i].y1 - y, g[i].x2 - x);
				^
0_0_37442377_28976\Main.java:168: 错误: 需要class, interface或enum
				a2 = atan2(g[i].y1 - y, x - g[i].x1);
				^
0_0_37442377_28976\Main.java:169: 错误: 需要class, interface或enum
				l[m] = a1;
				^
0_0_37442377_28976\Main.java:170: 错误: 需要class, interface或enum
				r[m] = pi - a2;
				^
0_0_37442377_28976\Main.java:171: 错误: 需要class, interface或enum
			}
			^
0_0_37442377_28976\Main.java:175: 错误: 需要class, interface或enum
				a1 = atan2(g[i].y1 - y, g[i].x2 - x);
				^
0_0_37442377_28976\Main.java:176: 错误: 需要class, interface或enum
				a2 = atan2(g[i].x1 - x, g[i].y2 - y);
				^
0_0_37442377_28976\Main.java:177: 错误: 需要class, interface或enum
				l[m] = a1;
				^
0_0_37442377_28976\Main.java:178: 错误: 需要class, interface或enum
				r[m] = 0.5 * pi - a2;
				^
0_0_37442377_28976\Main.java:179: 错误: 需要class, interface或enum
			}
			^
0_0_37442377_28976\Main.java:183: 错误: 需要class, interface或enum
				a1 = atan2(g[i].y2 - y, g[i].x1 - x);
		


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-22 18:37:38, Gzip enabled