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_25907646_23131\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_25907646_23131\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_25907646_23131\Main.java:3: 错误: 非法字符: '#'
#define MP make_pair
^
0_0_25907646_23131\Main.java:3: 错误: 需要class, interface或enum
#define MP make_pair
        ^
0_0_25907646_23131\Main.java:4: 错误: 非法字符: '#'
#define x first
^
0_0_25907646_23131\Main.java:5: 错误: 非法字符: '#'
#define y second
^
0_0_25907646_23131\Main.java:6: 错误: 非法字符: '#'
#define PB push_back
^
0_0_25907646_23131\Main.java:7: 错误: 非法字符: '#'
#define ALL(path) path.begin(), path.end()
^
0_0_25907646_23131\Main.java:8: 错误: 非法字符: '#'
#define lowbit(k) (k & -k)
^
0_0_25907646_23131\Main.java:9: 错误: 非法字符: '#'
#define bcnt(x) __builtin_popcount(x)
^
0_0_25907646_23131\Main.java:10: 错误: 非法字符: '#'
#define CLR(path, x) memset(path, x, sizeof(path))
^
0_0_25907646_23131\Main.java:12: 错误: 非法字符: '#'
#define lson  L, M, o<<1
^
0_0_25907646_23131\Main.java:13: 错误: 非法字符: '#'
#define rson  M + 1, R, o<<1|1
^
0_0_25907646_23131\Main.java:17: 错误: 需要class, interface或enum
typedef long double LB;
^
0_0_25907646_23131\Main.java:19: 错误: 需要class, interface或enum
const int N = 2e2 + 10;
^
0_0_25907646_23131\Main.java:20: 错误: 需要class, interface或enum
const int INF = 0x3f3f3f3f;
^
0_0_25907646_23131\Main.java:23: 错误: 需要class, interface或enum
const int maxn = 1e6 + 10;
^
0_0_25907646_23131\Main.java:25: 错误: 需要class, interface或enum
typedef pair<int, int> PII;
^
0_0_25907646_23131\Main.java:26: 错误: 需要class, interface或enum
typedef pair<LL, LL> PLL;
^
0_0_25907646_23131\Main.java:28: 错误: 需要class, interface或enum
const double eps = 1e-10;
^
0_0_25907646_23131\Main.java:29: 错误: 需要class, interface或enum
const double PI = acos(-1.0);
^
0_0_25907646_23131\Main.java:31: 错误: 需要class, interface或enum
int dcmp(double x)
^
0_0_25907646_23131\Main.java:34: 错误: 需要class, interface或enum
    return x > 0 ? 1 : -1;
    ^
0_0_25907646_23131\Main.java:35: 错误: 需要class, interface或enum
}
^
0_0_25907646_23131\Main.java:39: 错误: 需要class, interface或enum
    Point(double x = 0, double y = 0): x(x), y(y) { }
    ^
0_0_25907646_23131\Main.java:41: 错误: 需要class, interface或enum
    void read() { scanf("%lf %lf", &x, &y); }
                                            ^
0_0_25907646_23131\Main.java:44: 错误: 需要class, interface或enum
typedef Point Vector;
^
0_0_25907646_23131\Main.java:46: 错误: 需要class, interface或enum
Vector operator + (Vector A, Vector B) { return Vector(A.x + B.x, A.y + B.y); }
^
0_0_25907646_23131\Main.java:46: 错误: 需要class, interface或enum
Vector operator + (Vector A, Vector B) { return Vector(A.x + B.x, A.y + B.y); }
                                                                              ^
0_0_25907646_23131\Main.java:47: 错误: 需要class, interface或enum
Vector operator - (Vector A, Vector B) { return Vector(A.x - B.x, A.y - B.y); }
                                                                              ^
0_0_25907646_23131\Main.java:48: 错误: 需要class, interface或enum
Vector operator * (Vector A, double p) { return Vector(A.x * p, A.y * p); }
                                                                          ^
0_0_25907646_23131\Main.java:49: 错误: 需要class, interface或enum
Vector operator / (Vector A, double p) { return Vector(A.x / p, A.y / p); }
                                                                          ^
0_0_25907646_23131\Main.java:50: 错误: 需要class, interface或enum
bool operator == (const Point &a, const Point &b) { return !dcmp(a.x - b.x) && !dcmp(a.y - b.y); }
                                                                                                 ^
0_0_25907646_23131\Main.java:52: 错误: 需要class, interface或enum
double Dot (Vector A, Vector B) { return A.x * B.x + A.y * B.y; }
                                                                ^
0_0_25907646_23131\Main.java:53: 错误: 需要class, interface或enum
double Length(Vector A) { return sqrt(Dot(A, A)); }
                                                  ^
0_0_25907646_23131\Main.java:54: 错误: 需要class, interface或enum
double Angle(Vector A, Vector B) { return acos(Dot(A, B) / Length(A) / Length(B)); }
                                                                                   ^
0_0_25907646_23131\Main.java:55: 错误: 需要class, interface或enum
double Cross(Vector A, Vector B) { return A.x * B.y - A.y * B.x; }
                                                                 ^
0_0_25907646_23131\Main.java:56: 错误: 需要class, interface或enum
double Area2(Point A, Point B, Point C)  { return Cross(B - A, C - A); }
                                                                       ^
0_0_25907646_23131\Main.java:57: 错误: 需要class, interface或enum
double angle(Vector A) { return atan2(A.y, A.x); }
                                                 ^
0_0_25907646_23131\Main.java:60: 错误: 需要class, interface或enum
double len[10], ang[10];
^
0_0_25907646_23131\Main.java:61: 错误: 需要class, interface或enum
double w, S;
^
0_0_25907646_23131\Main.java:63: 错误: 需要class, interface或enum
double solve(double a, double b, double c, double fb, double fc)
^
0_0_25907646_23131\Main.java:68: 错误: 需要class, interface或enum
	double ans = 1e12;
	^
0_0_25907646_23131\Main.java:69: 错误: 需要class, interface或enum
    if(dcmp(a - w) <= 0) {
    ^
0_0_25907646_23131\Main.java:72: 错误: 需要class, interface或enum
	}else {
	^
0_0_25907646_23131\Main.java:74: 错误: 需要class, interface或enum
    	double a1 = sqrt(b * b - d * d);
    	^
0_0_25907646_23131\Main.java:76: 错误: 需要class, interface或enum
    	double sn = (h/a) * (a1/b) * fb + (w/a) * (d/b);
    	^
0_0_25907646_23131\Main.java:77: 错误: 需要class, interface或enum
    	double cs = (w/a) * (a1/b) * fb - (h/a) * (d/b);
    	^
0_0_25907646_23131\Main.java:81: 错误: 需要class, interface或enum
    	double a2 = sqrt(c * c - d * d);
    	^
0_0_25907646_23131\Main.java:82: 错误: 需要class, interface或enum
    	double dsn = (w/a) * (a2/c) * fc + (h/a) * (d/c);
    	^
0_0_25907646_23131\Main.java:83: 错误: 需要class, interface或enum
    	if(dcmp(sn) >= 0 && dcmp(cs) >= 0 && dcmp(dsn) >= 0) {
    	^
0_0_25907646_23131\Main.java:85: 错误: 需要class, interface或enum
		}
		^
0_0_25907646_23131\Main.java:91: 错误: 需要class, interface或enum
}
^
0_0_25907646_23131\Main.java:97: 错误: 需要class, interface或enum
    scanf("%d", &T);
    ^
0_0_25907646_23131\Main.java:98: 错误: 需要class, interface或enum
    while(T--) {
    ^
0_0_25907646_23131\Main.java:99: 错误: 需要class, interface或enum
        for(int i = 0; i < 3; i++) a[i].read();
                       ^
0_0_25907646_23131\Main.java:99: 错误: 需要class, interface或enum
        for(int i = 0; i < 3; i++) a[i].read();
                              ^
0_0_25907646_23131\Main.java:100: 错误: 需要class, interface或enum
        scanf("%lf", &w);
        ^
0_0_25907646_23131\Main.java:101: 错误: 需要class, interface或enum
        for(int i = 0; i < 3; i++) {
        ^
0_0_25907646_23131\Main.java:101: 错误: 需要class, interface或enum
        for(int i = 0; i < 3; i++) {
                       ^
0_0_25907646_23131\Main.java:101: 错误: 需要class, interface或enum
        for(int i = 0; i < 3; i++) {
                              ^
0_0_25907646_23131\Main.java:103: 错误: 需要class, interface或enum
        	ang[i] = Dot(a[(i+2)%3] - a[i], a[(i+1)%3] - a[i]);
        	^
0_0_25907646_23131\Main.java:104: 错误: 需要class, interface或enum
        	ang[i] = dcmp(ang[i]) > 0 ? 1 : -1;
        	^
0_0_25907646_23131\Main.java:105: 错误: 需要class, interface或enum
		}
		^
0_0_25907646_23131\Main.java:112: 错误: 需要class, interface或enum
        double ans = 1e12;
        ^
0_0_25907646_23131\Main.java:113: 错误: 需要class, interface或enum
        for(int i = 0; i < 3; i++) {
        ^
0_0_25907646_23131\Main.java:113: 错误: 需要class, interface或enum
        for(int i = 0; i < 3; i++) {
                       ^
0_0_25907646_23131\Main.java:113: 错误: 需要class, interface或enum
        for(int i = 0; i < 3; i++) {
                              ^
0_0_25907646_23131\Main.java:115: 错误: 需要class, interface或enum
            ans = min(ans, solve(len[i], len[(i+1)%3], len[(i+2)%3], ang[(i+2)%3], ang[(i+1)%3]));
            ^
0_0_25907646_23131\Main.java:116: 错误: 需要class, interface或enum
        }
        ^
0_0_25907646_23131\Main.java:119: 错误: 需要class, interface或enum
        else printf("%.10lf\n", ans);
        ^
0_0_25907646_23131\Main.java:120: 错误: 需要class, interface或enum
    }
    ^
0_0_25907646_23131\Main.java:123: 错误: 需要class, interface或enum
}
^
73 个错误


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 07:19:04, Gzip enabled