0_0_27555281_20742.cpp: In function 'int main()':
0_0_27555281_20742.cpp:6:25: error: 'scanf' was not declared in this scope
while(~scanf("%d",&n)&&n)
^
0_0_27555281_20742.cpp:9:19: error: 'inf' was not declared in this scope
int maxn=-inf,minn=inf;//找到所有矩形所在的最大区间
^
0_0_27555281_20742.cpp:13:13: error: 'p' was not declared in this scope
p[i]=node(x1,x2,y1,1);
^
0_0_27555281_20742.cpp:13:33: error: 'node' was not declared in this scope
p[i]=node(x1,x2,y1,1);
^
0_0_27555281_20742.cpp:15:29: error: 'max' was not declared in this scope
maxn=max(maxn,x2);
^
0_0_27555281_20742.cpp:16:13: error: 'minn' was not declared in this scope
minn=min(minn,x1);
^
0_0_27555281_20742.cpp:16:29: error: 'min' was not declared in this scope
minn=min(minn,x1);
^
0_0_27555281_20742.cpp:19:14: error: 'p' was not declared in this scope
sort(p+1,p+1+n);//对水平的线按照y升序排
^
0_0_27555281_20742.cpp:19:23: error: 'sort' was not declared in this scope
sort(p+1,p+1+n);//对水平的线按照y升序排
^
0_0_27555281_20742.cpp:23:27: error: 'minn' was not declared in this scope
int l=p[i].x1-minn+1;//把所有矩形所在的最大区间更改为从1开始的区间
^
0_0_27555281_20742.cpp:25:48: error: 'updata' was not declared in this scope
updata(1,1,maxn-minn,l,r-1,p[i].sta);
^
0_0_27555281_20742.cpp:26:25: error: 'times' was not declared in this scope
if(i<n)ans+=times[1]*(p[i+1].h-p[i].h);//最后那根线不需要这步
^
0_0_27555281_20742.cpp:27:22: error: 'tree' was not declared in this scope
ans+=abs(tree[1]-tmp);
^
0_0_27555281_20742.cpp:27:33: error: 'abs' was not declared in this scope
ans+=abs(tree[1]-tmp);
^
0_0_27555281_20742.cpp:30:26: error: 'printf' was not declared in this scope
printf("%d\n",ans);
^
|