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_35201701_13520.c:9:1: error: unknown type name 'Point'
 Point p[100005];
 ^
0_0_35201701_13520.c: In function 'cmp':
0_0_35201701_13520.c:12:7: error: 'Point' undeclared (first use in this function)
 if((*(Point *)a).y==(*(Point *)b).y)
       ^
0_0_35201701_13520.c:12:7: note: each undeclared identifier is reported only once for each function it appears in
0_0_35201701_13520.c:12:14: error: expected expression before ')' token
 if((*(Point *)a).y==(*(Point *)b).y)
              ^
0_0_35201701_13520.c:12:31: error: expected expression before ')' token
 if((*(Point *)a).y==(*(Point *)b).y)
                               ^
0_0_35201701_13520.c:13:21: error: expected expression before ')' token
    return (*(Point *)b).x>(*(Point *)a).x?-1:1;
                     ^
0_0_35201701_13520.c:13:37: error: expected expression before ')' token
    return (*(Point *)b).x>(*(Point *)a).x?-1:1;
                                     ^
0_0_35201701_13520.c:14:22: error: expected expression before ')' token
     return (*(Point *)b).y>(*(Point *)a).y?-1:1;
                      ^
0_0_35201701_13520.c:14:38: error: expected expression before ')' token
     return (*(Point *)b).y>(*(Point *)a).y?-1:1;
                                      ^
0_0_35201701_13520.c: In function 'cmp1':
0_0_35201701_13520.c:18:7: error: 'Point' undeclared (first use in this function)
 if((*(Point *)a).x==(*(Point *)b).x)
       ^
0_0_35201701_13520.c:18:14: error: expected expression before ')' token
 if((*(Point *)a).x==(*(Point *)b).x)
              ^
0_0_35201701_13520.c:18:31: error: expected expression before ')' token
 if((*(Point *)a).x==(*(Point *)b).x)
                               ^
0_0_35201701_13520.c:19:22: error: expected expression before ')' token
     return (*(Point *)b).y>(*(Point *)a).y?-1:1;
                      ^
0_0_35201701_13520.c:19:38: error: expected expression before ')' token
     return (*(Point *)b).y>(*(Point *)a).y?-1:1;
                                      ^
0_0_35201701_13520.c:20:22: error: expected expression before ')' token
     return (*(Point *)b).x>(*(Point *)a).x?-1:1;
                      ^
0_0_35201701_13520.c:20:38: error: expected expression before ')' token
     return (*(Point *)b).x>(*(Point *)a).x?-1:1;
                                      ^
0_0_35201701_13520.c: In function 'main':
0_0_35201701_13520.c:30:33: error: request for member 'x' in something not a structure or union
             scanf("%lf%lf",&p[i].x,&p[i].y);
                                 ^
0_0_35201701_13520.c:30:41: error: request for member 'y' in something not a structure or union
             scanf("%lf%lf",&p[i].x,&p[i].y);
                                         ^
0_0_35201701_13520.c:32:26: error: 'Point' undeclared (first use in this function)
         qsort(p,n,sizeof(Point),cmp);
                          ^
0_0_35201701_13520.c:35:10: error: request for member 'y' in something not a structure or union
 if(p[i-1].y+s>p[i].y&&p[i-1].x+s>p[i].x){
          ^
0_0_35201701_13520.c:35:19: error: request for member 'y' in something not a structure or union
 if(p[i-1].y+s>p[i].y&&p[i-1].x+s>p[i].x){
                   ^
0_0_35201701_13520.c:35:29: error: request for member 'x' in something not a structure or union
 if(p[i-1].y+s>p[i].y&&p[i-1].x+s>p[i].x){
                             ^
0_0_35201701_13520.c:35:38: error: request for member 'x' in something not a structure or union
 if(p[i-1].y+s>p[i].y&&p[i-1].x+s>p[i].x){
                                      ^
0_0_35201701_13520.c:36:18: error: request for member 'x' in something not a structure or union
 tmp=sqrt(pow(p[i].x-p[i-1].x,2)+pow(p[i].y-p[i-1].y,2))/2;
                  ^
0_0_35201701_13520.c:36:27: error: request for member 'x' in something not a structure or union
 tmp=sqrt(pow(p[i].x-p[i-1].x,2)+pow(p[i].y-p[i-1].y,2))/2;
                           ^
0_0_35201701_13520.c:36:41: error: request for member 'y' in something not a structure or union
 tmp=sqrt(pow(p[i].x-p[i-1].x,2)+pow(p[i].y-p[i-1].y,2))/2;
                                         ^
0_0_35201701_13520.c:36:50: error: request for member 'y' in something not a structure or union
 tmp=sqrt(pow(p[i].x-p[i-1].x,2)+pow(p[i].y-p[i-1].y,2))/2;
                                                  ^
0_0_35201701_13520.c:46:10: error: request for member 'x' in something not a structure or union
 if(p[i-1].x>p[i].x-s&&p[i-1].y+s>p[i].y){
          ^
0_0_35201701_13520.c:46:17: error: request for member 'x' in something not a structure or union
 if(p[i-1].x>p[i].x-s&&p[i-1].y+s>p[i].y){
                 ^
0_0_35201701_13520.c:46:29: error: request for member 'y' in something not a structure or union
 if(p[i-1].x>p[i].x-s&&p[i-1].y+s>p[i].y){
                             ^
0_0_35201701_13520.c:46:38: error: request for member 'y' in something not a structure or union
 if(p[i-1].x>p[i].x-s&&p[i-1].y+s>p[i].y){
                                      ^
0_0_35201701_13520.c:47:18: error: request for member 'x' in something not a structure or union
 tmp=sqrt(pow(p[i].x-p[i-1].x,2)+pow(p[i].y-p[i-1].y,2))/2;
                  ^
0_0_35201701_13520.c:47:27: error: request for member 'x' in something not a structure or union
 tmp=sqrt(pow(p[i].x-p[i-1].x,2)+pow(p[i].y-p[i-1].y,2))/2;
                           ^
0_0_35201701_13520.c:47:41: error: request for member 'y' in something not a structure or union
 tmp=sqrt(pow(p[i].x-p[i-1].x,2)+pow(p[i].y-p[i-1].y,2))/2;
                                         ^
0_0_35201701_13520.c:47:50: error: request for member 'y' in something not a structure or union
 tmp=sqrt(pow(p[i].x-p[i-1].x,2)+pow(p[i].y-p[i-1].y,2))/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-19 13:18:35, Gzip enabled