0_0_29454049_12530\Main.java:1: 错误: 非法字符: '#'
#include<iostream>
^
0_0_29454049_12530\Main.java:1: 错误: 需要class, interface或enum
#include<iostream>
^
0_0_29454049_12530\Main.java:2: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_29454049_12530\Main.java:3: 错误: 非法字符: '#'
#include<cmath>
^
0_0_29454049_12530\Main.java:4: 错误: 非法字符: '#'
#define eps 1e-9
^
0_0_29454049_12530\Main.java:6: 错误: 需要class, interface或enum
double f_abs(double x){
^
0_0_29454049_12530\Main.java:8: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:11: 错误: 需要class, interface或enum
bool up,dn;
^
0_0_29454049_12530\Main.java:12: 错误: 需要class, interface或enum
void disp(){
^
0_0_29454049_12530\Main.java:14: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:17: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:20: 错误: 需要class, interface或enum
return a.x<b.x;
^
0_0_29454049_12530\Main.java:21: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:24: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:29: 错误: 需要class, interface或enum
struct Line{
^
0_0_29454049_12530\Main.java:31: 错误: 需要class, interface或enum
bool friend operator<(Line a,Line b){
^
0_0_29454049_12530\Main.java:33: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:36: 错误: 需要class, interface或enum
if(s>e){
^
0_0_29454049_12530\Main.java:37: 错误: 需要class, interface或enum
t=s;s=e;e=t;
^
0_0_29454049_12530\Main.java:37: 错误: 需要class, interface或enum
t=s;s=e;e=t;
^
0_0_29454049_12530\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:41: 错误: 需要class, interface或enum
s.get();e.get();
^
0_0_29454049_12530\Main.java:42: 错误: 需要class, interface或enum
st();
^
0_0_29454049_12530\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:45: 错误: 需要class, interface或enum
Line line[200000],myl[2];
^
0_0_29454049_12530\Main.java:46: 错误: 需要class, interface或enum
Point ep[200000];
^
0_0_29454049_12530\Main.java:47: 错误: 需要class, interface或enum
int en;
^
0_0_29454049_12530\Main.java:48: 错误: 需要class, interface或enum
double get_cross(Point a,Line b){
^
0_0_29454049_12530\Main.java:50: 错误: 需要class, interface或enum
ax=b.s.x-a.x;
^
0_0_29454049_12530\Main.java:51: 错误: 需要class, interface或enum
ay=b.s.y-a.y;
^
0_0_29454049_12530\Main.java:52: 错误: 需要class, interface或enum
bx=b.e.x-a.x;
^
0_0_29454049_12530\Main.java:53: 错误: 需要class, interface或enum
by=b.e.y-a.y;
^
0_0_29454049_12530\Main.java:54: 错误: 需要class, interface或enum
return ax*by-ay*bx;
^
0_0_29454049_12530\Main.java:55: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:58: 错误: 需要class, interface或enum
cj[0]=get_cross(b.s,a);cj[1]=get_cross(b.e,a);
^
0_0_29454049_12530\Main.java:58: 错误: 需要class, interface或enum
cj[0]=get_cross(b.s,a);cj[1]=get_cross(b.e,a);
^
0_0_29454049_12530\Main.java:59: 错误: 需要class, interface或enum
if(cj[0]*cj[1]>eps)return 0;
^
0_0_29454049_12530\Main.java:60: 错误: 需要class, interface或enum
cj[0]=get_cross(a.s,b);cj[1]=get_cross(a.e,b);
^
0_0_29454049_12530\Main.java:60: 错误: 需要class, interface或enum
cj[0]=get_cross(a.s,b);cj[1]=get_cross(a.e,b);
^
0_0_29454049_12530\Main.java:61: 错误: 需要class, interface或enum
if(cj[0]*cj[1]>eps)return 0;
^
0_0_29454049_12530\Main.java:62: 错误: 需要class, interface或enum
if(f_abs(cj[0])<eps&&f_abs(cj[1])<eps){
^
0_0_29454049_12530\Main.java:64: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:67: 错误: 需要class, interface或enum
if(cj[1]>eps)return 2;
^
0_0_29454049_12530\Main.java:68: 错误: 需要class, interface或enum
else return 3;
^
0_0_29454049_12530\Main.java:69: 错误: 需要class, interface或enum
}else if(f_abs(cj[1])<eps){
^
0_0_29454049_12530\Main.java:71: 错误: 需要class, interface或enum
if(cj[0]>eps)return 2;
^
0_0_29454049_12530\Main.java:72: 错误: 需要class, interface或enum
else return 3;
^
0_0_29454049_12530\Main.java:73: 错误: 需要class, interface或enum
}else{
^
0_0_29454049_12530\Main.java:75: 错误: 需要class, interface或enum
double key2=(b.e.x-b.s.x)*(a.e.y-a.s.y);
^
0_0_29454049_12530\Main.java:76: 错误: 需要class, interface或enum
double key=key1-key2;
^
0_0_29454049_12530\Main.java:77: 错误: 需要class, interface或enum
rp.x=(a.s.y-b.s.y)*(a.e.x-a.s.x)*(b.e.x-b.s.x);
^
0_0_29454049_12530\Main.java:78: 错误: 需要class, interface或enum
rp.x-=key2*a.s.x-key1*b.s.x;
^
0_0_29454049_12530\Main.java:79: 错误: 需要class, interface或enum
rp.x/=key;
^
0_0_29454049_12530\Main.java:80: 错误: 需要class, interface或enum
if(f_abs(b.e.x-b.s.x)<eps)rp.y=(a.e.y-a.s.y)/(a.e.x-a.s.x)*(rp.x-a.s.x)+a.s.y;
^
0_0_29454049_12530\Main.java:81: 错误: 需要class, interface或enum
else rp.y=(b.e.y-b.s.y)/(b.e.x-b.s.x)*(rp.x-b.s.x)+b.s.y;
^
0_0_29454049_12530\Main.java:82: 错误: 需要class, interface或enum
return 1;
^
0_0_29454049_12530\Main.java:83: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:86: 错误: 需要class, interface或enum
void get_myl2(){
^
0_0_29454049_12530\Main.java:88: 错误: 需要class, interface或enum
double t=sqrt(dy*dy+dx*dx);
^
0_0_29454049_12530\Main.java:89: 错误: 需要class, interface或enum
dy/=t;dx/=t;
^
0_0_29454049_12530\Main.java:89: 错误: 需要class, interface或enum
dy/=t;dx/=t;
^
0_0_29454049_12530\Main.java:90: 错误: 需要class, interface或enum
myl[1].e=myl[0].s;
^
0_0_29454049_12530\Main.java:91: 错误: 需要class, interface或enum
myl[1].s.x=myl[1].e.x-300000*dx;
^
0_0_29454049_12530\Main.java:92: 错误: 需要class, interface或enum
myl[1].s.y=myl[1].e.y-300000*dy;
^
0_0_29454049_12530\Main.java:93: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:96: 错误: 需要class, interface或enum
int t,n,i;
^
0_0_29454049_12530\Main.java:97: 错误: 需要class, interface或enum
int pcnt=0;
^
0_0_29454049_12530\Main.java:98: 错误: 需要class, interface或enum
Point p[2],ini;
^
0_0_29454049_12530\Main.java:99: 错误: 需要class, interface或enum
ln=0;
^
0_0_29454049_12530\Main.java:100: 错误: 需要class, interface或enum
scanf("%d",&t);
^
0_0_29454049_12530\Main.java:101: 错误: 需要class, interface或enum
while(t--){
^
0_0_29454049_12530\Main.java:103: 错误: 需要class, interface或enum
ini.get();
^
0_0_29454049_12530\Main.java:104: 错误: 需要class, interface或enum
if(n==1)continue;
^
0_0_29454049_12530\Main.java:105: 错误: 需要class, interface或enum
p[0]=ini;
^
0_0_29454049_12530\Main.java:106: 错误: 需要class, interface或enum
bool f=0;
^
0_0_29454049_12530\Main.java:107: 错误: 需要class, interface或enum
for(i=1;i<n;i++){
^
0_0_29454049_12530\Main.java:107: 错误: 需要class, interface或enum
for(i=1;i<n;i++){
^
0_0_29454049_12530\Main.java:107: 错误: 需要class, interface或enum
for(i=1;i<n;i++){
^
0_0_29454049_12530\Main.java:109: 错误: 需要class, interface或enum
p[f].get();
^
0_0_29454049_12530\Main.java:110: 错误: 需要class, interface或enum
line[ln].s=p[f^1];
^
0_0_29454049_12530\Main.java:111: 错误: 需要class, interface或enum
line[ln].e=p[f];
^
0_0_29454049_12530\Main.java:112: 错误: 需要class, interface或enum
line[ln++].st();
^
0_0_29454049_12530\Main.java:113: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:115: 错误: 需要class, interface或enum
line[ln].e=ini;
^
0_0_29454049_12530\Main.java:116: 错误: 需要class, interface或enum
line[ln++].st();
^
0_0_29454049_12530\Main.java:117: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:119: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:122: 错误: 需要class, interface或enum
}
^
0_0_29454049_12530\Main.java:125: 错误: 需要class, interface或enum
int t,i;
^
0_0_29454049_12530\Main.java:126: 错误: 需要class, interface或enum
for(i=0;i<ln;i++){
^
0_0_29454049_12530\Main.java:126: 错误: 需要class, interface或enum
for(i=0;i<ln;i++){
^
0_0_29454049_12530\Main.java:126: 错误: 需要class, interface或enum
for(i=0;i<ln;i++){
^
0_0_29454049_12530\Main.java:128: 错误: 需要class, interface或enum
if(!t||t==4)continue;
^
0_0_29454049_12530\Main.java:129: 错误: 需要class, interface或enum
if(t==1){
^
|