foo.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int]
3 | findmax(int a[],int t)
| ^~~~~~~
foo.c: In function 'findmax':
foo.c:13:1: warning: control reaches end of non-void function [-Wreturn-type]
13 | }
| ^
foo.c: In function 'main':
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:19:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
19 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:21:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
21 | scanf("%d",&b[j]);
| ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务