记录详情

Compile Error

foo.c:8:12: error: unknown type name 'item'
    8 | int maxone(item serial[],int n);
      |            ^~~~
foo.c:9:14: error: unknown type name 'item'
    9 | void counter(item serial[],int n);
      |              ^~~~
foo.c:10:12: error: unknown type name 'item'
   10 | void input(item serial[],int n);
      |            ^~~~
foo.c: In function 'main':
foo.c:14:2: error: unknown type name 'item'; use 'struct' keyword to refer to the type
   14 |  item serial[20000];
      |  ^~~~
      |  struct 
foo.c:16:2: warning: implicit declaration of function 'input' [-Wimplicit-function-declaration]
   16 |  input(serial,n);
      |  ^~~~~
foo.c:17:2: warning: implicit declaration of function 'counter' [-Wimplicit-function-declaration]
   17 |  counter(serial,n);
      |  ^~~~~~~
foo.c:18:6: warning: implicit declaration of function 'maxone' [-Wimplicit-function-declaration]
   18 |  max=maxone(serial,n);
      |      ^~~~~~
foo.c: At top level:
foo.c:22:12: error: unknown type name 'item'
   22 | int maxone(item serial[],int n)
      |            ^~~~
foo.c:33:14: error: unknown type name 'item'
   33 | void counter(item serial[],int n)
      |              ^~~~
foo.c:47:12: error: unknown type name 'item'
   47 | void input(item serial[],int n)
      |            ^~~~
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-2 最长递增子序列
比赛
2021(四) 作业第四场:加速赛
语言
C
递交时间
2021-12-08 20:30:08
评测时间
2021-12-08 20:30:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes