foo.c: In function 'main':
foo.c:21:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
21 | scanf("%d%d", &n1, &n2);
| ^~~~~~~~~~~~~~~~~~~~~~~
foo.c:23:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%d",&s1[i]);
| ^~~~~~~~~~~~~~~~~~
foo.c:26:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf("%d",&s2[i]);
| ^~~~~~~~~~~~~~~~~~
foo.c: In function 'FindMinPos':
foo.c:17:12: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
17 | return res;
| ^~~
foo.c:12:11: warning: 'num' may be used uninitialized in this function [-Wmaybe-uninitialized]
12 | if(s[i]<=num&&s[i]>0){
| ^
[Hydro](https://hydro.ac)提供评测服务