/ new_bzoj /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:77:10: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized]
   q.push(State(i,l,r,pos,val-sum[i-1]));//val-sum[i-1] 以i为左端点,右端点在l,r中的最大区间和
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:29:93: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
  State(int _from,int _l,int _r,int _pos,int _val):from(_from),l(_l),r(_r),pos(_pos),val(_val) {};
                                                                                             ^
/in/foo.cc:74:18: note: 'pos' was declared here
  for(int i=1,l,r,pos,val;i<=n-L+1;i++){
                  ^~~
# 状态 耗时 内存占用
#1 Accepted 3ms 4.375 MiB
#2 Accepted 262ms 107.484 MiB
#3 Accepted 306ms 106.781 MiB
#4 Accepted 27ms 4.445 MiB
#5 Accepted 27ms 23.992 MiB
#6 Accepted 8ms 6.594 MiB
#7 Accepted 220ms 105.965 MiB
#8 Accepted 36ms 23.164 MiB
#9 Accepted 61ms 25.238 MiB
#10 Accepted 160ms 29.109 MiB

信息

递交者
类型
递交
题目
超级钢琴
语言
C++
递交时间
2017-09-01 22:47:04
评测时间
2017-09-01 22:47:04
评测机
分数
100
总耗时
1116ms
峰值内存
107.484 MiB