记录详情

Compile Error

foo.c: In function 'FindMaxs':
foo.c:4:25: warning: unused variable 'k' [-Wunused-variable]
    4 |  int i,m=0,x[10000]={0},k;
      |                         ^
foo.c:4:12: warning: unused variable 'x' [-Wunused-variable]
    4 |  int i,m=0,x[10000]={0},k;
      |            ^
foo.c: In function 'main':
foo.c:20:2: warning: implicit declaration of function 'FindMinCount' [-Wimplicit-function-declaration]
   20 |  FindMinCount(a,n1);
      |  ^~~~~~~~~~~~
foo.c: In function 'FindMaxs':
foo.c:11:1: warning: control reaches end of non-void function [-Wreturn-type]
   11 | }
      | ^
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%d",&n1,&n2);
      |  ^~~~~~~~~~~~~~~~~~~~~
foo.c:17:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   17 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
foo.c:19:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   19 |   scanf("%d",&b[i]);
      |   ^~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccH5eHyL.o: in function `main':
foo.c:(.text.startup+0xf4): undefined reference to `FindMinCount'
/usr/bin/ld: foo.c:(.text.startup+0x102): undefined reference to `FindMinCount'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
A9-7 数组中所有极大值
语言
C
递交时间
2021-12-23 23:01:14
评测时间
2021-12-23 23:01:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes