foo.c:8:15: error: unknown type name 'point'; did you mean 'int'?
8 | int minlength(point spot[],int n);
| ^~~~~
| int
foo.c:9:13: error: unknown type name 'point'; did you mean 'int'?
9 | void length(point spot[],int n);
| ^~~~~
| int
foo.c:10:12: error: unknown type name 'point'; did you mean 'int'?
10 | void input(point spot[],int n);
| ^~~~~
| int
foo.c: In function 'main':
foo.c:14:2: error: unknown type name 'point'; use 'struct' keyword to refer to the type
14 | point spot[100000];
| ^~~~~
| struct
foo.c:16:2: warning: implicit declaration of function 'input' [-Wimplicit-function-declaration]
16 | input(spot,n);
| ^~~~~
foo.c:17:2: warning: implicit declaration of function 'length' [-Wimplicit-function-declaration]
17 | length(spot,n);
| ^~~~~~
foo.c:18:6: warning: implicit declaration of function 'minlength' [-Wimplicit-function-declaration]
18 | min=minlength(spot,n);
| ^~~~~~~~~
foo.c: At top level:
foo.c:22:15: error: unknown type name 'point'; did you mean 'int'?
22 | int minlength(point spot[],int n)
| ^~~~~
| int
foo.c:33:13: error: unknown type name 'point'; did you mean 'int'?
33 | void length(point spot[],int n)
| ^~~~~
| int
foo.c:45:12: error: unknown type name 'point'; did you mean 'int'?
45 | void input(point spot[],int n)
| ^~~~~
| int
foo.c: In function 'main':
foo.c:15:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务