foo.c: In function 'FindMaxs':
foo.c:26:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[i]>a[i-1]&&a[i]>a[i+1])
^~
foo.c:28:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
printf("%d ",a[i]);
^~~~~~
foo.c: In function 'main':
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&m,&n);
^~~~~~~~~~~~~~~~~~~
foo.c:10:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
^~~~~~~~~~~~~~~~~
foo.c:12:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&b[i]);
^~~~~~~~~~~~~~~~~