0_0_17426864_18725.c:7:47: error: expected '{' before '/' token
typedef struct //使用了凸包模板
^
0_0_17426864_18725.c:7:47: error: stray '\312' in program
0_0_17426864_18725.c:7:47: error: stray '\271' in program
0_0_17426864_18725.c:7:47: error: stray '\323' in program
0_0_17426864_18725.c:7:47: error: stray '\303' in program
0_0_17426864_18725.c:7:47: error: stray '\301' in program
0_0_17426864_18725.c:7:47: error: stray '\313' in program
0_0_17426864_18725.c:7:47: error: stray '\315' in program
0_0_17426864_18725.c:7:47: error: stray '\271' in program
0_0_17426864_18725.c:7:47: error: stray '\260' in program
0_0_17426864_18725.c:7:47: error: stray '\374' in program
0_0_17426864_18725.c:7:47: error: stray '\304' in program
0_0_17426864_18725.c:7:47: error: stray '\243' in program
0_0_17426864_18725.c:7:47: error: stray '\260' in program
0_0_17426864_18725.c:7:47: error: stray '\345' in program
0_0_17426864_18725.c:12:1: error: unknown type name 'point'
point points[N];
^
0_0_17426864_18725.c:13:1: error: unknown type name 'point'
point chs[N];
^
0_0_17426864_18725.c:15:12: error: expected declaration specifiers or '...' before 'point'
double dis(point a, point b)
^
0_0_17426864_18725.c:15:21: error: expected declaration specifiers or '...' before 'point'
double dis(point a, point b)
^
0_0_17426864_18725.c:19:14: error: expected declaration specifiers or '...' before 'point'
double multi(point p0, point p1, point p2)
^
0_0_17426864_18725.c:19:24: error: expected declaration specifiers or '...' before 'point'
double multi(point p0, point p1, point p2)
^
0_0_17426864_18725.c:19:34: error: expected declaration specifiers or '...' before 'point'
double multi(point p0, point p1, point p2)
^
0_0_17426864_18725.c: In function 'cmp':
0_0_17426864_18725.c:26:11: error: expected ';' before 'a'
point a = *(point *)p;
^
0_0_17426864_18725.c:27:11: error: expected ';' before 'b'
point b = *(point *)q;
^
0_0_17426864_18725.c:28:33: error: 'a' undeclared (first use in this function)
double k = multi(points[0], a, b);
^
0_0_17426864_18725.c:28:33: note: each undeclared identifier is reported only once for each function it appears in
0_0_17426864_18725.c:28:36: error: 'b' undeclared (first use in this function)
double k = multi(points[0], a, b);
^
0_0_17426864_18725.c: In function 'convex_hull':
0_0_17426864_18725.c:40:28: error: request for member 'y' in something not a structure or union
double miny = points[0].y;
^
0_0_17426864_18725.c:45:21: error: request for member 'y' in something not a structure or union
if(points[i].y < miny)
^
0_0_17426864_18725.c:48:29: error: request for member 'y' in something not a structure or union
miny = points[i].y;
^
0_0_17426864_18725.c:51:26: error: request for member 'y' in something not a structure or union
else if(points[i].y == miny && points[i].x < points[index].x)
^
0_0_17426864_18725.c:51:49: error: request for member 'x' in something not a structure or union
else if(points[i].y == miny && points[i].x < points[index].x)
^
0_0_17426864_18725.c:51:67: error: request for member 'x' in something not a structure or union
else if(points[i].y == miny && points[i].x < points[index].x)
^
0_0_17426864_18725.c:57:11: error: expected ';' before 'temp'
point temp;
^
0_0_17426864_18725.c:58:5: error: 'temp' undeclared (first use in this function)
temp = points[index];
^
0_0_17426864_18725.c: In function 'main':
0_0_17426864_18725.c:88:39: error: request for member 'x' in something not a structure or union
scanf("%lf%lf", &points[i].x, &points[i].y);
^
0_0_17426864_18725.c:88:53: error: request for member 'y' in something not a structure or union
scanf("%lf%lf", &points[i].x, &points[i].y);
^
|