0_0_25188683_17578\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_25188683_17578\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>
^
0_0_25188683_17578\Main.java:2: 错误: 非法字符: '#'
#include<cstring>
^
0_0_25188683_17578\Main.java:3: 错误: 非法字符: '#'
#include<cstdlib>
^
0_0_25188683_17578\Main.java:4: 错误: 非法字符: '#'
#include<cmath>
^
0_0_25188683_17578\Main.java:5: 错误: 非法字符: '#'
#include<iostream>
^
0_0_25188683_17578\Main.java:6: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_25188683_17578\Main.java:8: 错误: 需要class, interface或enum
struct node
^
0_0_25188683_17578\Main.java:11: 错误: 需要class, interface或enum
double down;//竖线的下端点
^
0_0_25188683_17578\Main.java:12: 错误: 需要class, interface或enum
int s;//标记左1右-1
^
0_0_25188683_17578\Main.java:13: 错误: 需要class, interface或enum
double pos;//竖线的x坐标
^
0_0_25188683_17578\Main.java:14: 错误: 需要class, interface或enum
}k[210];
^
0_0_25188683_17578\Main.java:15: 错误: 需要class, interface或enum
int qwe(node x,node y)
^
0_0_25188683_17578\Main.java:18: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:22: 错误: 需要class, interface或enum
int down;
^
0_0_25188683_17578\Main.java:23: 错误: 需要class, interface或enum
int s;//每一段的标记,记录是否要进行计算
^
0_0_25188683_17578\Main.java:24: 错误: 需要class, interface或enum
double sum;//每一段的总长度
^
0_0_25188683_17578\Main.java:25: 错误: 需要class, interface或enum
}tree[210];
^
0_0_25188683_17578\Main.java:26: 错误: 需要class, interface或enum
double y[210];//线段投影到y轴,以y轴建树
^
0_0_25188683_17578\Main.java:27: 错误: 需要class, interface或enum
void build_tree(int root,int down,int up)
^
0_0_25188683_17578\Main.java:30: 错误: 需要class, interface或enum
tree[root].down=down;
^
0_0_25188683_17578\Main.java:31: 错误: 需要class, interface或enum
tree[root].s=0;
^
0_0_25188683_17578\Main.java:32: 错误: 需要class, interface或enum
tree[root].sum=0;
^
0_0_25188683_17578\Main.java:33: 错误: 需要class, interface或enum
if(down==up)
^
0_0_25188683_17578\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:38: 错误: 需要class, interface或enum
build_tree(root*2,down,mid);
^
0_0_25188683_17578\Main.java:39: 错误: 需要class, interface或enum
build_tree(root*2+1,mid+1,up);
^
0_0_25188683_17578\Main.java:40: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:45: 错误: 需要class, interface或enum
tree[root*2].s+=tree[root].s;
^
0_0_25188683_17578\Main.java:46: 错误: 需要class, interface或enum
tree[root*2+1].s+=tree[root].s;
^
0_0_25188683_17578\Main.java:47: 错误: 需要class, interface或enum
push_down(root*2);
^
0_0_25188683_17578\Main.java:48: 错误: 需要class, interface或enum
push_down(root*2+1);
^
0_0_25188683_17578\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:55: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:59: 错误: 需要class, interface或enum
return ;
^
0_0_25188683_17578\Main.java:60: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:64: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:66: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:71: 错误: 需要class, interface或enum
if(f_down<=tree[root].down&&tree[root].up<=f_up)//如果操作区间在这条线的区间内
^
0_0_25188683_17578\Main.java:74: 错误: 需要class, interface或enum
push_up(root);
^
0_0_25188683_17578\Main.java:75: 错误: 需要class, interface或enum
push_down(root);
^
0_0_25188683_17578\Main.java:76: 错误: 需要class, interface或enum
return ;
^
0_0_25188683_17578\Main.java:77: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:79: 错误: 需要class, interface或enum
if(f_up<=mid)update(f_down,f_up,s,root*2);
^
0_0_25188683_17578\Main.java:80: 错误: 需要class, interface或enum
else if(f_down>mid)update(f_down,f_up,s,root*2+1);
^
0_0_25188683_17578\Main.java:81: 错误: 需要class, interface或enum
else
^
0_0_25188683_17578\Main.java:84: 错误: 需要class, interface或enum
update(mid+1,f_up,s,root*2+1);
^
0_0_25188683_17578\Main.java:85: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:87: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:90: 错误: 需要class, interface或enum
int cas=0;int n;double x1,y1,x2,y2;
^
0_0_25188683_17578\Main.java:90: 错误: 需要class, interface或enum
int cas=0;int n;double x1,y1,x2,y2;
^
0_0_25188683_17578\Main.java:91: 错误: 需要class, interface或enum
while(~scanf("%d",&n)&&n)
^
0_0_25188683_17578\Main.java:94: 错误: 需要class, interface或enum
int cntk=1;
^
0_0_25188683_17578\Main.java:95: 错误: 需要class, interface或enum
for(int i=0;i<n;i++)
^
0_0_25188683_17578\Main.java:95: 错误: 需要class, interface或enum
for(int i=0;i<n;i++)
^
0_0_25188683_17578\Main.java:95: 错误: 需要class, interface或enum
for(int i=0;i<n;i++)
^
0_0_25188683_17578\Main.java:98: 错误: 需要class, interface或enum
k[cntk].down=y1;
^
0_0_25188683_17578\Main.java:99: 错误: 需要class, interface或enum
k[cntk].up=y2;
^
0_0_25188683_17578\Main.java:100: 错误: 需要class, interface或enum
k[cntk].s=1;
^
0_0_25188683_17578\Main.java:101: 错误: 需要class, interface或enum
k[cntk++].pos=x1;
^
0_0_25188683_17578\Main.java:102: 错误: 需要class, interface或enum
y[cnty++]=y1;
^
0_0_25188683_17578\Main.java:103: 错误: 需要class, interface或enum
k[cntk].down=y1;
^
0_0_25188683_17578\Main.java:104: 错误: 需要class, interface或enum
k[cntk].up=y2;
^
0_0_25188683_17578\Main.java:105: 错误: 需要class, interface或enum
k[cntk].s=-1;
^
0_0_25188683_17578\Main.java:106: 错误: 需要class, interface或enum
k[cntk++].pos=x2;
^
0_0_25188683_17578\Main.java:107: 错误: 需要class, interface或enum
y[cnty++]=y2;
^
0_0_25188683_17578\Main.java:108: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:110: 错误: 需要class, interface或enum
sort(y+1,y+cnty);
^
0_0_25188683_17578\Main.java:111: 错误: 需要class, interface或enum
int num=2;
^
0_0_25188683_17578\Main.java:112: 错误: 需要class, interface或enum
for(int i=2;i<=cnty;i++)
^
0_0_25188683_17578\Main.java:112: 错误: 需要class, interface或enum
for(int i=2;i<=cnty;i++)
^
0_0_25188683_17578\Main.java:112: 错误: 需要class, interface或enum
for(int i=2;i<=cnty;i++)
^
0_0_25188683_17578\Main.java:117: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:120: 错误: 需要class, interface或enum
build_tree(1,1,cnty-1);
^
0_0_25188683_17578\Main.java:121: 错误: 需要class, interface或enum
double sum=0;
^
0_0_25188683_17578\Main.java:122: 错误: 需要class, interface或enum
for(int i=1;i<=cntk-2;i++)
^
0_0_25188683_17578\Main.java:122: 错误: 需要class, interface或enum
for(int i=1;i<=cntk-2;i++)
^
0_0_25188683_17578\Main.java:122: 错误: 需要class, interface或enum
for(int i=1;i<=cntk-2;i++)
^
0_0_25188683_17578\Main.java:125: 错误: 需要class, interface或enum
int f_up=lower_bound(y+1,y+cnty,k[i].up)-y-1;
^
0_0_25188683_17578\Main.java:126: 错误: 需要class, interface或enum
update(f_down,f_up,k[i].s,1);
^
0_0_25188683_17578\Main.java:127: 错误: 需要class, interface或enum
sum+=(tree[1].sum*(k[i+1].pos-k[i].pos));
^
0_0_25188683_17578\Main.java:129: 错误: 需要class, interface或enum
}
^
0_0_25188683_17578\Main.java:131: 错误: 需要class, interface或enum
}
^
83 个错误
|