记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:43:24: error: ‘min1’ undeclared (first use in this function); did you mean ‘n1’?
   43 |         printf("%d %d",min1,min2);
      |                        ^~~~
      |                        n1
foo.c:43:24: note: each undeclared identifier is reported only once for each function it appears in
foo.c:43:29: error: ‘min2’ undeclared (first use in this function); did you mean ‘n2’?
   43 |         printf("%d %d",min1,min2);
      |                             ^~~~
      |                             n2
foo.c:42:13: warning: unused variable ‘num2’ [-Wunused-variable]
   42 |         int num2=FindMaxNeg(arr2,n2);
      |             ^~~~
foo.c:41:13: warning: unused variable ‘num1’ [-Wunused-variable]
   41 |         int num1=FindMaxNeg(arr1,n1);
      |             ^~~~

信息

递交者
类型
自测
题目
A9-3 数组中最大的负数
语言
C
递交时间
2024-10-03 14:42:50
评测时间
2024-10-03 14:42:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes