/ ep /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:10: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
    j=1<<d-1;
         ~^~
/in/foo.cc:22:29: warning: right operand of comma operator has no effect [-Wunused-value]
   d=(int)log2(r[i]-l[i]+1),j<<d;
                            ~^~~
/in/foo.cc:23:46: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
   cout<<"\n"<<max(premax[l[i]][d],premax[r[i]-j+1][d]); 
                                          ~~~~^~
# 状态 耗时 内存占用
#1 Wrong Answer 6ms 6.477 MiB
#2 Wrong Answer 7ms 6.473 MiB
#3 Wrong Answer 7ms 6.332 MiB
#4 Wrong Answer 91ms 6.324 MiB
#5 Wrong Answer 91ms 6.32 MiB
#6 Wrong Answer 93ms 6.574 MiB
#7 Runtime Error 353ms 22.07 MiB
#8 Runtime Error 346ms 22.074 MiB
#9 Runtime Error 347ms 23.039 MiB
#10 Runtime Error 348ms 21.949 MiB

信息

递交者
类型
递交
题目
P1001 序列区间最大值
语言
C++
递交时间
2019-08-24 14:11:54
评测时间
2019-08-24 14:11:54
评测机
分数
0
总耗时
1693ms
峰值内存
23.039 MiB