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:13:6: warning: return type of 'main' is not 'int' [-Wmain]
13 | void main()
| ^~~~
foo.c: In function 'main':
foo.c:17:15: warning: statement with no effect [-Wunused-value]
17 | for(i=0;i++;i<n1)
| ~^~~
foo.c:21:16: warning: statement with no effect [-Wunused-value]
21 | for(i=0;i++;i<n2)
| ~^~~
foo.c:16:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%d %d",&n1,&n2);
| ^~~~~~~~~~~~~~~~~~~~~~
foo.c:19:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
19 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:23:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
23 | 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)提供评测服务