记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
4-1 旅游住处
比赛
2021(四) 作业第四场:加速赛
语言
C
递交时间
2021-12-08 20:06:48
评测时间
2021-12-08 20:06:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes