记录详情

Compile Error

foo.c: In function 'main':
foo.c:28:17: warning: implicit declaration of function 'FindiMaxNeg'; did you mean 'FindMaxNeg'? [-Wimplicit-function-declaration]
   28 |  printf("%d %d",FindiMaxNeg(a,n1),FindiMaxNeg(b,n2));
      |                 ^~~~~~~~~~~
      |                 FindMaxNeg
foo.c:23:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   23 |  scanf("%d%d",&n1,&n2);
      |  ^~~~~~~~~~~~~~~~~~~~~
foo.c:25:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   25 |   scanf("%d",&a[j]);
      |   ^~~~~~~~~~~~~~~~~
foo.c:27:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   27 |   scanf("%d",&b[j]);
      |   ^~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccJBuqkm.o: in function `main':
foo.c:(.text.startup+0xd2): undefined reference to `FindiMaxNeg'
/usr/bin/ld: foo.c:(.text.startup+0xe3): undefined reference to `FindiMaxNeg'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A9-3 数组中最大的负数
比赛
2022春 C语言课程设计 作业2
语言
C
递交时间
2022-03-23 23:09:20
评测时间
2022-03-23 23:09:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes