记录详情

Accepted

/in/foo.c: In function 'FindSecondMax':
/in/foo.c:18:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  {if(a[i]>j)
   ^~
/in/foo.c:20:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   if(a[i]>=j)
   ^~
/in/foo.c:32:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 }else{for(i=0;i<n;i++)
       ^~~
/in/foo.c:36:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  x=0;
  ^
/in/foo.c:39:5: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[i]>m&&a[i]<j)
     ^
# 状态 耗时 内存占用
#1 Accepted 1ms 228.0 KiB
#2 Accepted 0ms 216.0 KiB
#3 Accepted 0ms 228.0 KiB
#4 Accepted 0ms 216.0 KiB
#5 Accepted 0ms 220.0 KiB

信息

递交者
类型
递交
题目
A9-4 数组中第二大的数
比赛
南师大2020(1,4)程序设计基础课程作业(2020-12-15)
语言
C
递交时间
2020-12-15 14:23:00
评测时间
2020-12-15 14:23:01
评测机
分数
100
总耗时
4ms
峰值内存
228.0 KiB