记录详情

Compile Error

foo.c: In function 'main':
foo.c:15:2: warning: implicit declaration of function 'FindiMinPos'; did you mean 'FindMinPos'? [-Wimplicit-function-declaration]
   15 |  FindiMinPos(a,n1);FindiMinPos(b,n2);
      |  ^~~~~~~~~~~
      |  FindMinPos
foo.c: In function 'input':
foo.c:4:18: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    4 |  for(i=0;i<n;i++)scanf("%d",&a[i]);}
      |                  ^~~~~~~~~~~~~~~~~
foo.c: In function 'main':
foo.c:13:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   13 |  scanf("%d %d",&n1 ,&n2);
      |  ^~~~~~~~~~~~~~~~~~~~~~~
foo.c: In function 'FindMinPos':
foo.c:9:5: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
    9 |   if(min>a[i]&&a[i]>0){min=a[i];j=i;}
      |     ^
/usr/bin/ld: /tmp/ccBAl0C6.o: in function `main':
foo.c:(.text.startup+0xb0): undefined reference to `FindiMinPos'
/usr/bin/ld: foo.c:(.text.startup+0xbe): undefined reference to `FindiMinPos'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2022春 C语言课程设计 作业2
语言
C
递交时间
2022-03-27 19:20:59
评测时间
2022-03-27 19:20:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes