foo.c: In function 'main':
foo.c:18:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n1,&n2);
^~~~~~~~~~~~~~~~~~~~~
foo.c:21:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
^~~~~~~~~~~~~~~~~
foo.c:25:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&b[i]);
^~~~~~~~~~~~~~~~~
foo.c: In function 'FindiMinPos':
foo.c:10:6: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[i]<x)
^
foo.c:12:9: warning: 'imin' may be used uninitialized in this function [-Wmaybe-uninitialized]
return imin;
^~~~
foo.c: In function 'main':
foo.c:10:6: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[i]<x)
^
foo.c:4:6: note: 'x' was declared here
int x,imin,i;
^
foo.c:10:6: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[i]<x)
^
foo.c:4:6: note: 'x' was declared here
int x,imin,i;
^
[Hydro](https://hydro.ac)提供评测服务