foo.c: In function 'FindMaxNeg':
foo.c:6:15: warning: statement with no effect [-Wunused-value]
6 | for(i=1;i++;i<n)
| ~^~
foo.c:5:19: warning: unused variable 'j' [-Wunused-variable]
5 | int max=a[0],i,k,j;
| ^
foo.c:5:17: warning: unused variable 'k' [-Wunused-variable]
5 | int max=a[0],i,k,j;
| ^
foo.c: At top level:
foo.c:14:6: warning: return type of 'main' is not 'int' [-Wmain]
14 | void main()
| ^~~~
foo.c: In function 'main':
foo.c:18:15: warning: statement with no effect [-Wunused-value]
18 | for(i=0;i++;i<n1)
| ~^~~
foo.c:22:16: warning: statement with no effect [-Wunused-value]
22 | for(i=0;i++;i<n2)
| ~^~~
foo.c:17:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
17 | scanf("%d %d",&n1,&n2);
| ^~~~~~~~~~~~~~~~~~~~~~
foo.c:20:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
20 | 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]);
| ^~~~~~~~~~~~~~~~~
foo.c: In function 'FindMaxNeg':
foo.c:6:11: warning: iteration 2147483646 invokes undefined behavior [-Waggressive-loop-optimizations]
6 | for(i=1;i++;i<n)
| ~^~
foo.c:6:2: note: within this loop
6 | for(i=1;i++;i<n)
| ^~~
[Hydro](https://hydro.ac)提供评测服务