0_0_38998357_7286.c:5:5: error: 'MAXN' undeclared here (not in a function)
5 | } p[MAXN],q[MAXN];
| ^~~~
0_0_38998357_7286.c:6:1: error: unknown type name 'point'; use 'struct' keyword to refer to the type
6 | point make_point(double x,double y,int id) {//初始化
| ^~~~~
| struct
0_0_38998357_7286.c: In function 'make_point':
0_0_38998357_7286.c:7:5: error: unknown type name 'point'; use 'struct' keyword to refer to the type
7 | point tmp;
| ^~~~~
| struct
0_0_38998357_7286.c:8:8: error: request for member 'x' in something not a structure or union
8 | tmp.x=x;
| ^
0_0_38998357_7286.c:9:8: error: request for member 'y' in something not a structure or union
9 | tmp.y=y;
| ^
0_0_38998357_7286.c:10:8: error: request for member 'id' in something not a structure or union
10 | tmp.id=id;
| ^
0_0_38998357_7286.c: At top level:
0_0_38998357_7286.c:13:12: error: unknown type name 'point'; did you mean 'int'?
13 | void input(point* a) {//输入
| ^~~~~
| int
0_0_38998357_7286.c:16:15: error: unknown type name 'point'; did you mean 'int'?
16 | double getdis(point a,point b) {//两点之间距离公式
| ^~~~~
| int
0_0_38998357_7286.c:16:23: error: unknown type name 'point'; did you mean 'int'?
16 | double getdis(point a,point b) {//两点之间距离公式
| ^~~~~
| int
|