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