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:34:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^~~~~~~~~~~~~~~~~~
foo.c:37: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:14:16: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (a[i] > 0 && a[i] <= min) {
~~~~~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务