记录详情

Compile Error

foo.c:3:1: error: unknown type name 'bool'
    3 | bool f(int n,int a[],int ii,int m)
      | ^~~~
foo.c: In function 'f':
foo.c:9:15: error: 'false' undeclared (first use in this function); did you mean 'fclose'?
    9 |   else return false;
      |               ^~~~~
      |               fclose
foo.c:9:15: note: each undeclared identifier is reported only once for each function it appears in
foo.c:12:9: error: 'true' undeclared (first use in this function)
   12 |  return true;
      |         ^~~~
foo.c: In function 'main':
foo.c:28:23: error: 'true' undeclared (first use in this function)
   28 |    if(f(n,a,ii,a[j])==true)b[j]++;
      |                       ^~~~
foo.c: In function 'f':
foo.c:16:1: warning: control reaches end of non-void function [-Wreturn-type]
   16 | }
      | ^
foo.c: In function 'main':
foo.c:20:8: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   20 |  int n;scanf("%d",&n);
      |        ^~~~~~~~~~~~~~
foo.c:22:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   22 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
4-2 最长递增子序列
比赛
2021(四) 作业第四场:加速赛
语言
C
递交时间
2021-12-08 22:16:36
评测时间
2021-12-08 22:16:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes