记录详情

Wrong Answer

foo.c: In function 'FindSecondMax':
foo.c:21:37: warning: unused variable 'imax1' [-Wunused-variable]
   21 |         int i,j;int max1, max2; int imax1, imax2;
      |                                     ^~~~~
foo.c: In function 'main':
foo.c:51:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   51 |     for(int i=0;i<n2;i++)
      |     ^~~
foo.c:53:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   53 |         int amax=FindSecondMax(a,n1);
      |         ^~~
foo.c: In function 'FindSecondMax':
foo.c:21:44: warning: 'imax2' may be used uninitialized [-Wmaybe-uninitialized]
   21 |         int i,j;int max1, max2; int imax1, imax2;
      |                                            ^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 2, expect 4. 2ms 284.0 KiB

信息

递交者
类型
自测
题目
A9-2 数组中最小正数的下标
语言
C
递交时间
2023-11-21 14:46:14
评测时间
2023-11-21 14:46:14
评测机
分数
0
总耗时
2ms
峰值内存
284.0 KiB