记录详情

Wrong Answer

foo.c: In function 'FindiSecondMax':
foo.c:30:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   30 |     for(k=jmax1+1;k<n;k++)
      |     ^~~
foo.c:33:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   33 |         return jmax2;
      |         ^~~~~~
foo.c:5:20: warning: variable 'max2' set but not used [-Wunused-but-set-variable]
    5 |     int i,j,k,max1,max2,jmax1,jmax2;
      |                    ^~~~
foo.c:5:9: warning: unused variable 'i' [-Wunused-variable]
    5 |     int i,j,k,max1,max2,jmax1,jmax2;
      |         ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 284.0 KiB
#2 Wrong Answer Read 8, expect 4. 2ms 284.0 KiB
#3 Wrong Answer Read 8, expect 3. 2ms 284.0 KiB
#4 Wrong Answer Read 1, expect 2. 2ms 284.0 KiB
#5 Wrong Answer Read 1, expect 2. 2ms 284.0 KiB

信息

递交者
类型
递交
比赛
2023 程序设计与竞赛(作业5:从数组看集体)
语言
C
递交时间
2023-10-21 18:20:41
评测时间
2023-10-21 18:20:41
评测机
分数
20
总耗时
10ms
峰值内存
284.0 KiB