foo.c: In function 'maxs':
foo.c:8:4: error: 'min' undeclared (first use in this function)
8 | min=a[i],k++;
| ^~~
foo.c:8:4: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:12: warning: left-hand operand of comma expression has no effect [-Wunused-value]
8 | min=a[i],k++;
| ^
foo.c:11:12: warning: left-hand operand of comma expression has no effect [-Wunused-value]
11 | min=a[i],j=i;
| ^
foo.c: In function 'main':
foo.c:19:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
19 | scanf("%d",&n1);
| ^~~~~~~~~~~~~~~
foo.c:20:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
20 | scanf("%d",&n2);
| ^~~~~~~~~~~~~~~
foo.c:22:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
22 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:24:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
24 | scanf("%d",&b[i]);
| ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务