/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:25:11: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
           if(a[j].num<a[j+1].num)
           ^~
/in/foo.cc:26:30: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
               t.num=a[j].num;a[j].num=a[j+1].num;a[j+1].num=t.num;t.sum=a[j].sum;a[j].sum=a[j+1].sum;a[j+1].sum=t.sum;
                              ^
/in/foo.cc:26:60: warning: 't.main()::y::num' may be used uninitialized in this function [-Wmaybe-uninitialized]
               t.num=a[j].num;a[j].num=a[j+1].num;a[j+1].num=t.num;t.sum=a[j].sum;a[j].sum=a[j+1].sum;a[j+1].sum=t.sum;
                                                  ~~~~~~~~~~^~~~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 256.0 KiB
#2 Runtime Error 4ms 256.0 KiB
#3 Runtime Error 3ms 256.0 KiB
#4 Runtime Error 4ms 368.0 KiB
#5 Runtime Error 4ms 256.0 KiB
#6 Runtime Error 3ms 208.0 KiB
#7 Runtime Error 4ms 256.0 KiB
#8 Runtime Error 4ms 256.0 KiB
#9 Runtime Error 4ms 220.0 KiB
#10 Accepted 2ms 348.0 KiB

信息

递交者
类型
递交
题目
P1398 奖学金
语言
C++
递交时间
2018-01-31 11:43:34
评测时间
2018-01-31 11:43:34
评测机
分数
20
总耗时
39ms
峰值内存
368.0 KiB