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_20934996_13962.cpp:4:5: error: 'N' was not declared in this scope
 } a[N],p[N];
     ^
0_0_20934996_13962.cpp:4:10: error: 'N' was not declared in this scope
 } a[N],p[N];
          ^
0_0_20934996_13962.cpp: In function 'double dis(node, node)':
0_0_20934996_13962.cpp:8:33: error: 'hypot' was not declared in this scope
     return hypot(a.x-b.x,a.y-b.y);
                                 ^
0_0_20934996_13962.cpp: In function 'int cmp(node, node)':
0_0_20934996_13962.cpp:16:23: error: 'a' was not declared in this scope
     int x=multi(p1,p2,a[0]);
                       ^
0_0_20934996_13962.cpp: In function 'void Graham()':
0_0_20934996_13962.cpp:22:10: error: 'a' was not declared in this scope
     sort(a+1,a+n,cmp);//a[0]是上一轮最后一个点即本轮的出发点,以其作为参考来极角排序
          ^
0_0_20934996_13962.cpp:22:21: error: 'sort' was not declared in this scope
     sort(a+1,a+n,cmp);//a[0]是上一轮最后一个点即本轮的出发点,以其作为参考来极角排序
                     ^
0_0_20934996_13962.cpp:23:11: error: 'p' was not declared in this scope
     tot=2,p[0]=a[0],p[1]=a[1];
           ^
0_0_20934996_13962.cpp: In function 'int main()':
0_0_20934996_13962.cpp:33:18: error: 'scanf' was not declared in this scope
     scanf("%d",&t);
                  ^
0_0_20934996_13962.cpp:36:29: error: 'memset' was not declared in this scope
         memset(v,0,sizeof(v));
                             ^
0_0_20934996_13962.cpp:38:48: error: 'a' was not declared in this scope
         for(int i=0; i<n; i++) scanf("%d%d%d",&a[i].i,&a[i].x,&a[i].y);
                                                ^
0_0_20934996_13962.cpp:42:17: error: 'a' was not declared in this scope
             if((a[i].y<a[k].y||(a[i].y==a[k].y&&a[i].x<a[k].x))) k=i;//找到最左下角的;
                 ^
0_0_20934996_13962.cpp:43:14: error: 'a' was not declared in this scope
         swap(a[0],a[k]);
              ^
0_0_20934996_13962.cpp:43:23: error: 'swap' was not declared in this scope
         swap(a[0],a[k]);
                       ^
0_0_20934996_13962.cpp:51:28: error: 'p' was not declared in this scope
                 ans[len++]=p[i].i;
                            ^
0_0_20934996_13962.cpp:54:18: error: 'p' was not declared in this scope
             a[0]=p[tot-1];
                  ^
0_0_20934996_13962.cpp:60:24: error: 'printf' was not declared in this scope
         printf("%d",len);
                        ^


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-23 02:38:48, Gzip enabled