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_24477099_3123.cpp:8:20: error: 'MAXN' was not declared in this scope
 struct Point point[MAXN],*px[MAXN],*py[MAXN];  
                    ^
0_0_24477099_3123.cpp:8:30: error: 'MAXN' was not declared in this scope
 struct Point point[MAXN],*px[MAXN],*py[MAXN];  
                              ^
0_0_24477099_3123.cpp:8:40: error: 'MAXN' was not declared in this scope
 struct Point point[MAXN],*px[MAXN],*py[MAXN];  
                                        ^
0_0_24477099_3123.cpp: In function 'double closest(int, int)':
0_0_24477099_3123.cpp:19:24: error: 'px' was not declared in this scope
         return get_dis(px[s],px[e]);  
                        ^
0_0_24477099_3123.cpp:21:28: error: 'px' was not declared in this scope
         return min(get_dis(px[s],px[s+1]),min(get_dis(px[s+1],px[e]),get_dis(px[s],px[e])));  
                            ^
0_0_24477099_3123.cpp:27:12: error: 'px' was not declared in this scope
         if(px[i]->x>=px[mid]->x-ans&&px[i]->x<=px[mid]->x+ans)  
            ^
0_0_24477099_3123.cpp:28:13: error: 'py' was not declared in this scope
             py[cnt++]=px[i];  
             ^
0_0_24477099_3123.cpp:30:10: error: 'py' was not declared in this scope
     sort(py,py+cnt,cmpy);
          ^
0_0_24477099_3123.cpp: In function 'int main()':
0_0_24477099_3123.cpp:51:29: error: 'point' was not declared in this scope
             scanf("%lf%lf",&point[i].x,&point[i].y);  
                             ^
0_0_24477099_3123.cpp:52:13: error: 'px' was not declared in this scope
             px[i]=&point[i];  
             ^
0_0_24477099_3123.cpp:54:14: error: 'px' was not declared in this scope
         sort(px,px+n,cmpx);    
              ^


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-11-15 10:39:52, Gzip enabled