/ 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.25 MiB
#2 Accepted 282ms 107.461 MiB
#3 Accepted 296ms 105.953 MiB
#4 Accepted 30ms 4.375 MiB
#5 Accepted 25ms 24.039 MiB
#6 Accepted 8ms 6.5 MiB
#7 Accepted 222ms 107.387 MiB
#8 Accepted 37ms 21.113 MiB
#9 Accepted 68ms 25.238 MiB
#10 Accepted 162ms 28.602 MiB

信息

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