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_22272766_21255.cpp:6:20: error: 'MAXN' was not declared in this scope
 struct Point point[MAXN],*px[MAXN],*py[MAXN];  
                    ^
0_0_22272766_21255.cpp:6:30: error: 'MAXN' was not declared in this scope
 struct Point point[MAXN],*px[MAXN],*py[MAXN];  
                              ^
0_0_22272766_21255.cpp:6:40: error: 'MAXN' was not declared in this scope
 struct Point point[MAXN],*px[MAXN],*py[MAXN];  
                                        ^
0_0_22272766_21255.cpp: In function 'double get_dis(Point*, Point*)':
0_0_22272766_21255.cpp:9:72: error: 'sqrt' was not declared in this scope
     return sqrt((p1->x-p2->x)*(p1->x-p2->x)+(p1->y-p2->y)*(p1->y-p2->y));  
                                                                        ^
0_0_22272766_21255.cpp: In function 'double closest(int, int)':
0_0_22272766_21255.cpp:18:24: error: 'px' was not declared in this scope
         return get_dis(px[s],px[e]);  
                        ^
0_0_22272766_21255.cpp:20: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_22272766_21255.cpp:26: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_22272766_21255.cpp:27:13: error: 'py' was not declared in this scope
             py[cnt++]=px[i];  
             ^
0_0_22272766_21255.cpp:29:10: error: 'py' was not declared in this scope
     sort(py,py+cnt,cmpy);//°´y×ø±êÅÅÐò  
          ^
0_0_22272766_21255.cpp:29:24: error: 'sort' was not declared in this scope
     sort(py,py+cnt,cmpy);//°´y×ø±êÅÅÐò  
                        ^
0_0_22272766_21255.cpp: In function 'int main()':
0_0_22272766_21255.cpp:44:24: error: 'scanf' was not declared in this scope
     while(scanf("%d",&n)!=EOF)  
                        ^
0_0_22272766_21255.cpp:44:27: error: 'EOF' was not declared in this scope
     while(scanf("%d",&n)!=EOF)  
                           ^
0_0_22272766_21255.cpp:50:29: error: 'point' was not declared in this scope
             scanf("%lf%lf",&point[i].x,&point[i].y);  
                             ^
0_0_22272766_21255.cpp:51:13: error: 'px' was not declared in this scope
             px[i]=&point[i];  
             ^
0_0_22272766_21255.cpp:53:14: error: 'px' was not declared in this scope
         sort(px,px+n,cmpx);  
              ^
0_0_22272766_21255.cpp:53:26: error: 'sort' was not declared in this scope
         sort(px,px+n,cmpx);  
                          ^
0_0_22272766_21255.cpp:57:36: error: 'printf' was not declared in this scope
         printf("%.2lf\n",distance/2);  
                                    ^


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-17 22:46:35, Gzip enabled