foo.c: In function 'main':
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n1,&n2);
^~~~~~~~~~~~~~~~~~~~~
foo.c:12:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x1);
^~~~~~~~~~~~~~~
foo.c:17:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x2);
^~~~~~~~~~~~~~~
foo.c:44:13: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[j]>0 && a[j]<min)
~~~~~~~^~~~~~~~~~~
foo.c:28:6: note: 'min' was declared here
int min;
^~~
foo.c:44:13: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[j]>0 && a[j]<min)
~~~~~~~^~~~~~~~~~~
foo.c:28:6: note: 'min' was declared here
int min;
^~~
foo.c: In function 'FindiMinPos':
foo.c:44:13: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[j]>0 && a[j]<min)
~~~~~~~^~~~~~~~~~~
foo.c:47:9: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
return cnt;
^~~
[Hydro](https://hydro.ac)提供评测服务