foo.c: In function 'findmaxs':
foo.c:19:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=0;i<n;i++)
^~~
foo.c:22:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
return a[max];
^~~~~~
foo.c: In function 'main':
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n1,&n2);
^~~~~~~~~~~~~~~~~~~~~
foo.c:8:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
^~~~~~~~~~~~~~~~~
foo.c:10:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&b[i]);
^~~~~~~~~~~~~~~~~