0_0_27382621_5277\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_27382621_5277\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
^
0_0_27382621_5277\Main.java:3: 错误: 非法字符: '#'
#define F double
^
0_0_27382621_5277\Main.java:3: 错误: 需要class, interface或enum
#define F double
^
0_0_27382621_5277\Main.java:6: 错误: 需要class, interface或enum
const F pi=acos(-1);
^
0_0_27382621_5277\Main.java:8: 错误: 需要class, interface或enum
struct point{
^
0_0_27382621_5277\Main.java:10: 错误: 需要class, interface或enum
point(){}
^
0_0_27382621_5277\Main.java:13: 错误: 需要class, interface或enum
typedef point Vector;
^
0_0_27382621_5277\Main.java:14: 错误: 需要class, interface或enum
typedef point Point;
^
0_0_27382621_5277\Main.java:15: 错误: 需要class, interface或enum
Vector operator + (Vector a, Vector b){//向量加法
^
0_0_27382621_5277\Main.java:17: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:20: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:23: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:26: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:29: 错误: 需要class, interface或enum
else if (x > 0)return 1;
^
0_0_27382621_5277\Main.java:30: 错误: 需要class, interface或enum
return -1;
^
0_0_27382621_5277\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:34: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:40: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:46: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:52: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:55: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:58: 错误: 需要class, interface或enum
double t2 = Cross(a - c, b - c)*Cross(a - d, b - d);
^
0_0_27382621_5277\Main.java:59: 错误: 需要class, interface或enum
return dcmp(t1) < 0 && dcmp(t2) < 0;
^
0_0_27382621_5277\Main.java:60: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:69: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:72: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:76: 错误: 需要class, interface或enum
double t=((u1.x-v1.x)*(v1.y-v2.y)-(u1.y-v1.y)*(v1.x-v2.x))
^
0_0_27382621_5277\Main.java:78: 错误: 需要class, interface或enum
ret.x+=(u2.x-u1.x)*t;
^
0_0_27382621_5277\Main.java:79: 错误: 需要class, interface或enum
ret.y+=(u2.y-u1.y)*t;
^
0_0_27382621_5277\Main.java:80: 错误: 需要class, interface或enum
return ret;
^
0_0_27382621_5277\Main.java:81: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:85: 错误: 需要class, interface或enum
u=point(u.y,-u.x);
^
0_0_27382621_5277\Main.java:86: 错误: 需要class, interface或enum
point N=p1+u/Length(u)*DistanceToLine(p1,l1,l2)*2.0;
^
0_0_27382621_5277\Main.java:87: 错误: 需要class, interface或enum
if(Cross(l1-N,l2-N)*Cross(l1-p1,l2-p1)<eps)return N;
^
0_0_27382621_5277\Main.java:88: 错误: 需要class, interface或enum
return p1+u/Length(u)*DistanceToLine(p1,l1,l2)*(-2.0);
^
0_0_27382621_5277\Main.java:89: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:93: 错误: 需要class, interface或enum
int n,top;
^
0_0_27382621_5277\Main.java:94: 错误: 需要class, interface或enum
point Tmp;//选好的起点
^
0_0_27382621_5277\Main.java:95: 错误: 需要class, interface或enum
bool cmp(point a,point b){
^
0_0_27382621_5277\Main.java:97: 错误: 需要class, interface或enum
if(dcmp(ans)==0)return dcmp(Distance(a,Tmp)-Distance(b,Tmp))<0;
^
0_0_27382621_5277\Main.java:98: 错误: 需要class, interface或enum
return ans>0;//表示a到b是逆时针转
^
0_0_27382621_5277\Main.java:99: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:101: 错误: 需要class, interface或enum
for(int i=2;i<=n;i++){
^
0_0_27382621_5277\Main.java:101: 错误: 需要class, interface或enum
for(int i=2;i<=n;i++){
^
0_0_27382621_5277\Main.java:104: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:106: 错误: 需要class, interface或enum
sort(p+2,p+1+n,cmp);
^
0_0_27382621_5277\Main.java:107: 错误: 需要class, interface或enum
ans[1]=p[1],ans[2]=p[2],top=2;
^
0_0_27382621_5277\Main.java:108: 错误: 需要class, interface或enum
for(int i=3;i<=n;i++){
^
0_0_27382621_5277\Main.java:108: 错误: 需要class, interface或enum
for(int i=3;i<=n;i++){
^
0_0_27382621_5277\Main.java:108: 错误: 需要class, interface或enum
for(int i=3;i<=n;i++){
^
0_0_27382621_5277\Main.java:110: 错误: 需要class, interface或enum
ans[++top]=p[i];
^
0_0_27382621_5277\Main.java:111: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:113: 错误: 需要class, interface或enum
for(int i=n-1;;i--){
^
0_0_27382621_5277\Main.java:115: 错误: 需要class, interface或enum
ans[++top]=p[i];
^
0_0_27382621_5277\Main.java:116: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:120: 错误: 需要class, interface或enum
int t;scanf("%d",&t);
^
0_0_27382621_5277\Main.java:121: 错误: 需要class, interface或enum
while(t--){
^
0_0_27382621_5277\Main.java:122: 错误: 需要class, interface或enum
int n;scanf("%d",&n);
^
0_0_27382621_5277\Main.java:123: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)scanf("%lf%lf",&p[i].x,&p[i].y);
^
0_0_27382621_5277\Main.java:123: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)scanf("%lf%lf",&p[i].x,&p[i].y);
^
0_0_27382621_5277\Main.java:123: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)scanf("%lf%lf",&p[i].x,&p[i].y);
^
0_0_27382621_5277\Main.java:124: 错误: 需要class, interface或enum
Graham(p,n,ans,top);
^
0_0_27382621_5277\Main.java:125: 错误: 需要class, interface或enum
double Ans=0;
^
0_0_27382621_5277\Main.java:126: 错误: 需要class, interface或enum
for(int i=2;i<top;i++){
^
0_0_27382621_5277\Main.java:126: 错误: 需要class, interface或enum
for(int i=2;i<top;i++){
^
0_0_27382621_5277\Main.java:126: 错误: 需要class, interface或enum
for(int i=2;i<top;i++){
^
0_0_27382621_5277\Main.java:128: 错误: 需要class, interface或enum
}
^
0_0_27382621_5277\Main.java:130: 错误: 需要class, interface或enum
}
^
72 个错误
|