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