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_21690608_9081\Main.java:7: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_21690608_9081\Main.java:7: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_21690608_9081\Main.java:9: 错误: 非法字符: '#'
#define C1(x) cout<<(x)<<endl
^
0_0_21690608_9081\Main.java:9: 错误: 需要class, interface或enum
#define C1(x) cout<<(x)<<endl
        ^
0_0_21690608_9081\Main.java:10: 错误: 非法字符: '#'
#define C2(x,y) cout<<(x)<<" "<<(y)<<endl
^
0_0_21690608_9081\Main.java:11: 错误: 非法字符: '#'
#define C3(x,y,z) cout<<(x)<<" "<<(y)<<" "<<(z)<<endl
^
0_0_21690608_9081\Main.java:13: 错误: 需要class, interface或enum
const double EPS=1e-6;
^
0_0_21690608_9081\Main.java:14: 错误: 需要class, interface或enum
const double INF=40007;
^
0_0_21690608_9081\Main.java:15: 错误: 需要class, interface或enum
const double PI=acos(-1.0);
^
0_0_21690608_9081\Main.java:17: 错误: 需要class, interface或enum
bool zero(double x) { 
^
0_0_21690608_9081\Main.java:19: 错误: 需要class, interface或enum
}
^
0_0_21690608_9081\Main.java:23: 错误: 需要class, interface或enum
}
^
0_0_21690608_9081\Main.java:28: 错误: 需要class, interface或enum
}
^
0_0_21690608_9081\Main.java:33: 错误: 需要class, interface或enum
	Point(){}
	^
0_0_21690608_9081\Main.java:38: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:41: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:44: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:47: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:50: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:53: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:56: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:59: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:62: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:65: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:68: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:71: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:74: 错误: 需要class, interface或enum
struct Segment // 线段/直线类, 如果有方向的话从s到t
^
0_0_21690608_9081\Main.java:77: 错误: 需要class, interface或enum
	Segment(){}
	^
0_0_21690608_9081\Main.java:84: 错误: 需要class, interface或enum
struct Circle // 圆类
^
0_0_21690608_9081\Main.java:87: 错误: 需要class, interface或enum
	double r; // 半径
	^
0_0_21690608_9081\Main.java:88: 错误: 需要class, interface或enum
	Circle(){}
	^
0_0_21690608_9081\Main.java:94: 错误: 需要class, interface或enum
		res.clear();
		^
0_0_21690608_9081\Main.java:95: 错误: 需要class, interface或enum
		double xa=p.x, ya=p.y;
		^
0_0_21690608_9081\Main.java:96: 错误: 需要class, interface或enum
		double xb=l.s.x, yb=l.s.y;
		^
0_0_21690608_9081\Main.java:97: 错误: 需要class, interface或enum
		double xc=l.t.x, yc=l.t.y;
		^
0_0_21690608_9081\Main.java:98: 错误: 需要class, interface或enum
		double dx=xc-xb, dy=yc-yb;
		^
0_0_21690608_9081\Main.java:99: 错误: 需要class, interface或enum
		double A=dx*dx+dy*dy;
		^
0_0_21690608_9081\Main.java:100: 错误: 需要class, interface或enum
		double B=2*dx*(xb-xa)+2*dy*(yb-ya);
		^
0_0_21690608_9081\Main.java:101: 错误: 需要class, interface或enum
		double C=(xb-xa)*(xb-xa)+(yb-ya)*(yb-ya)-r*r;
		^
0_0_21690608_9081\Main.java:102: 错误: 需要class, interface或enum
		double delta=B*B-A*C*4;
		^
0_0_21690608_9081\Main.java:103: 错误: 需要class, interface或enum
		if (cmp(delta,0)>=0) {
		^
0_0_21690608_9081\Main.java:105: 错误: 需要class, interface或enum
			double tb=(-B+sqrt(delta))/(A*2);
			^
0_0_21690608_9081\Main.java:106: 错误: 需要class, interface或enum
			if (cmp(ta,1.0)<=0 && cmp(ta,0.0)>=0)
			^
0_0_21690608_9081\Main.java:108: 错误: 需要class, interface或enum
			if (cmp(tb,1.0)<=0 && cmp(tb,0.0)>=0)
			^
0_0_21690608_9081\Main.java:110: 错误: 需要class, interface或enum
		}
		^
0_0_21690608_9081\Main.java:112: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:115: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:118: 错误: 需要class, interface或enum
		double cosT = (r*r+d*d-c.r*c.r)/(d*r*2);
		^
0_0_21690608_9081\Main.java:119: 错误: 需要class, interface或enum
		double sinT = sqrt(1.0 - cosT*cosT);
		^
0_0_21690608_9081\Main.java:120: 错误: 需要class, interface或enum
		Point v = (c.p-p)/(c.p-p).length()*r;
		^
0_0_21690608_9081\Main.java:121: 错误: 需要class, interface或enum
		return make_pair(p+v.rotate(cosT,-sinT),p+v.rotate(cosT,sinT));
		^
0_0_21690608_9081\Main.java:122: 错误: 需要class, interface或enum
	}
	^
0_0_21690608_9081\Main.java:126: 错误: 需要class, interface或enum
	    double dis = dd.length();
	    ^
0_0_21690608_9081\Main.java:127: 错误: 需要class, interface或enum
	    if(dis<=EPS+r)return true;
	    ^
0_0_21690608_9081\Main.java:128: 错误: 需要class, interface或enum
	    else return false;
	    ^
0_0_21690608_9081\Main.java:129: 错误: 需要class, interface或enum
    }
    ^
0_0_21690608_9081\Main.java:131: 错误: 需要class, interface或enum
Circle al[1005];
^
0_0_21690608_9081\Main.java:132: 错误: 需要class, interface或enum
Point yuan;
^
0_0_21690608_9081\Main.java:133: 错误: 需要class, interface或enum
vector<Point> vp;
^
0_0_21690608_9081\Main.java:134: 错误: 需要class, interface或enum
int main()
^
0_0_21690608_9081\Main.java:141: 错误: 需要class, interface或enum
        double r;
        ^
0_0_21690608_9081\Main.java:142: 错误: 需要class, interface或enum
        scanf("%lf",&r);
        ^
0_0_21690608_9081\Main.java:143: 错误: 需要class, interface或enum
        int n;
        ^
0_0_21690608_9081\Main.java:144: 错误: 需要class, interface或enum
        scanf("%d",&n);
        ^
0_0_21690608_9081\Main.java:145: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++)
        ^
0_0_21690608_9081\Main.java:145: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++)
                    ^
0_0_21690608_9081\Main.java:145: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++)
                        ^
0_0_21690608_9081\Main.java:148: 错误: 需要class, interface或enum
            al[i].r=r;
            ^
0_0_21690608_9081\Main.java:149: 错误: 需要class, interface或enum
        }
        ^
0_0_21690608_9081\Main.java:150: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++)
                    ^
0_0_21690608_9081\Main.java:150: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++)
                        ^
0_0_21690608_9081\Main.java:152: 错误: 需要class, interface或enum
            for(int j=i+1;j<n;j++)
                          ^
0_0_21690608_9081\Main.java:152: 错误: 需要class, interface或enum
            for(int j=i+1;j<n;j++)
                              ^
0_0_21690608_9081\Main.java:157: 错误: 需要class, interface或enum
                    vp.push_back(z.first);
                    ^
0_0_21690608_9081\Main.java:158: 错误: 需要class, interface或enum
                    vp.push_back(z.second);
                    ^
0_0_21690608_9081\Main.java:159: 错误: 需要class, interface或enum
                }
                ^
0_0_21690608_9081\Main.java:162: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++)
                    ^
0_0_21690608_9081\Main.java:162: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++)
                        ^
0_0_21690608_9081\Main.java:165: 错误: 需要class, interface或enum
           v.clear();
           ^
0_0_21690608_9081\Main.java:166: 错误: 需要class, interface或enum
           v=al[i].segmentCrossCircle(Segment(yuan,al[i].p));
           ^
0_0_21690608_9081\Main.java:167: 错误: 需要class, interface或enum
           for(int j=0;j<v.size();j++)
           ^
0_0_21690608_9081\Main.java:167: 错误: 需要class, interface或enum
           for(int j=0;j<v.size();j++)
                       ^
0_0_21690608_9081\Main.java:167: 错误: 需要class, interface或enum
           for(int j=0;j<v.size();j++)
                                  ^
0_0_21690608_9081\Main.java:170: 错误: 需要class, interface或enum
           }
           ^
0_0_21690608_9081\Main.java:173: 错误: 需要class, interface或enum
        Point res;
        ^
0_0_21690608_9081\Main.java:174: 错误: 需要class, interface或enum
        for(int i=0;i<vp.size();i++)
        ^
0_0_21690608_9081\Main.java:174: 错误: 需要class, interface或enum
        for(int i=0;i<vp.size();i++)
                    ^
0_0_21690608_9081\Main.java:174: 错误: 需要class, interface或enum
        for(int i=0;i<vp.size();i++)
                                ^
0_0_21690608_9081\Main.java:177: 错误: 需要class, interface或enum
            for(int j=0;j<n;j++)
            ^
0_0_21690608_9081\Main.java:177: 错误: 需要class, interface或enum
            for(int j=0;j<n;j++)
                        ^
0_0_21690608_9081\Main.java:177: 错误: 需要class, interface或enum
            for(int j=0;j<n;j++)
                            ^
0_0_21690608_9081\Main.java:182: 错误: 需要class, interface或enum
                    break;
                    ^
0_0_21690608_9081\Main.java:183: 错误: 需要class, interface或enum
                }
                ^
0_0_21690608_9081\Main.java:188: 错误: 需要class, interface或enum
                res=vp[i];


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 22:09:53, Gzip enabled