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_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);
                          ^


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-09-29 05:38:33, Gzip enabled