记录详情

Accepted

/in/foo.c: In function 'FindiSecondMax':
/in/foo.c:11:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(j=0;j<n-1-i;j++)
   ^~~
/in/foo.c:18:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    for(l=0;l<n;l++)
    ^~~
/in/foo.c:25:14: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     for(i=0;i,n-1;i++)
              ^
/in/foo.c:32:4: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
    else
    ^~~~
/in/foo.c:38:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
     for(j=i+1;j<n-1;j++)
     ^~~
/in/foo.c: In function 'main':
/in/foo.c:48:16: warning: unused variable 'm' [-Wunused-variable]
  int n1,n2,i,k,m;
                ^
# 状态 耗时 内存占用
#1 Accepted 1ms 220.0 KiB
#2 Accepted 1ms 216.0 KiB
#3 Accepted 0ms 228.0 KiB
#4 Accepted 0ms 220.0 KiB
#5 Accepted 0ms 228.0 KiB

信息

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