0_0_16848333_28449.c:11:1: error: unknown type name 'Point'
Point p[100005];
^
0_0_16848333_28449.c: In function 'cmp':
0_0_16848333_28449.c:15:8: error: 'Point' undeclared (first use in this function)
if((*(Point *)a).y == (*(Point *)b).y)
^
0_0_16848333_28449.c:15:8: note: each undeclared identifier is reported only once for each function it appears in
0_0_16848333_28449.c:15:15: error: expected expression before ')' token
if((*(Point *)a).y == (*(Point *)b).y)
^
0_0_16848333_28449.c:15:34: error: expected expression before ')' token
if((*(Point *)a).y == (*(Point *)b).y)
^
0_0_16848333_28449.c:16:20: error: expected expression before ')' token
return (*(Point *)b).x > (*(Point *)a).x ? -1 : 1;
^
0_0_16848333_28449.c:16:38: error: expected expression before ')' token
return (*(Point *)b).x > (*(Point *)a).x ? -1 : 1;
^
0_0_16848333_28449.c:17:22: error: expected expression before ')' token
return (*(Point *)b).y > (*(Point *)a).y ? -1 : 1;
^
0_0_16848333_28449.c:17:40: error: expected expression before ')' token
return (*(Point *)b).y > (*(Point *)a).y ? -1 : 1;
^
0_0_16848333_28449.c: In function 'cmp1':
0_0_16848333_28449.c:22:8: error: 'Point' undeclared (first use in this function)
if((*(Point *)a).x == (*(Point *)b).x)
^
0_0_16848333_28449.c:22:15: error: expected expression before ')' token
if((*(Point *)a).x == (*(Point *)b).x)
^
0_0_16848333_28449.c:22:34: error: expected expression before ')' token
if((*(Point *)a).x == (*(Point *)b).x)
^
0_0_16848333_28449.c:23:23: error: expected expression before ')' token
return (*(Point *)b).y > (*(Point *)a).y ? -1 : 1;
^
0_0_16848333_28449.c:23:41: error: expected expression before ')' token
return (*(Point *)b).y > (*(Point *)a).y ? -1 : 1;
^
0_0_16848333_28449.c:24:22: error: expected expression before ')' token
return (*(Point *)b).x > (*(Point *)a).x ? -1 : 1;
^
0_0_16848333_28449.c:24:40: error: expected expression before ')' token
return (*(Point *)b).x > (*(Point *)a).x ? -1 : 1;
^
0_0_16848333_28449.c: In function 'main':
0_0_16848333_28449.c:35:34: error: request for member 'x' in something not a structure or union
scanf("%lf%lf", &p[i].x, &p[i].y);
^
0_0_16848333_28449.c:35:43: error: request for member 'y' in something not a structure or union
scanf("%lf%lf", &p[i].x, &p[i].y);
^
0_0_16848333_28449.c:37:28: error: 'Point' undeclared (first use in this function)
qsort(p, n, sizeof(Point), cmp);
^
0_0_16848333_28449.c:40:15: 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_16848333_28449.c:40:28: 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_16848333_28449.c:40:42: 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_16848333_28449.c:40:55: 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_16848333_28449.c:42:24: 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_16848333_28449.c:42:37: 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_16848333_28449.c:42:54: 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_16848333_28449.c:42:67: 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_16848333_28449.c:52:21: 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_16848333_28449.c:52:30: 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_16848333_28449.c:52:48: 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_16848333_28449.c:52:61: 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_16848333_28449.c:54:30: 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_16848333_28449.c:54:43: 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_16848333_28449.c:54:60: 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_16848333_28449.c:54:73: 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;
^
|