foo.c: In function 'FindMin':
foo.c:4:8: warning: unused variable 'j' [-Wunused-variable]
4 | int i,j,min=0;
| ^
foo.c: In function 'FindMinCount':
foo.c:15:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
15 | if(a[FindMin(a,n)]==a[j]);
| ^~
foo.c:16:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
16 | count++;
| ^~~~~
foo.c: In function 'main':
foo.c:24:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
24 | scanf("%d%d",&n1,&n2);
| ^~~~~~~~~~~~~~~~~~~~~
foo.c:26:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:28:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf("%d",&b[j]);
| ^~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务