foo.c: In function 'FindMax':
foo.c:4:13: warning: unused variable 't' [-Wunused-variable]
4 | int i,j,k,t,q;
| ^
foo.c: In function 'main':
foo.c:21:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
21 | for(i=0;i<n2;i++)
| ^~~
foo.c:24:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
24 | for(i=0;i<n1;i++)
| ^~~
foo.c:18:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
18 | 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:22:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
22 | scanf("%d",&b[i]);
| ^~~~~~~~~~~~~~~~~
foo.c: In function 'FindMax':
foo.c:13:10: warning: 'q' may be used uninitialized in this function [-Wmaybe-uninitialized]
13 | }return q;
| ^
foo.c: In function 'main':
foo.c:29:7: warning: 'q' may be used uninitialized in this function [-Wmaybe-uninitialized]
29 | { if(i==FindMax(a,n2)) break;
| ^
foo.c:25:7: warning: 'q' may be used uninitialized in this function [-Wmaybe-uninitialized]
25 | { if(i==FindMax(a,n1)) break;
| ^
[Hydro](https://hydro.ac)提供评测服务