/ 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:6:30: warning: unused variable 'MAX' [-Wunused-variable]
  register int n,m,i,d,endd,j,MAX,k;
                              ^~~
/in/foo.cc:6:34: warning: unused variable 'k' [-Wunused-variable]
  register int n,m,i,d,endd,j,MAX,k;
                                  ^
/in/foo.cc:23:44: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
   cout<<max(premax[l[i]][d],premax[min(r[i]-j+1,l[i])][d])<<"\n"; 
                                        ~~~~^~
# 状态 耗时 内存占用
#1 Accepted 2ms 724.0 KiB
#2 Wrong Answer 3ms 724.0 KiB
#3 Accepted 3ms 732.0 KiB
#4 Wrong Answer 89ms 4.609 MiB
#5 Wrong Answer 89ms 4.496 MiB
#6 Wrong Answer 92ms 4.613 MiB
#7 Runtime Error 150ms 27.73 MiB
#8 Runtime Error 150ms 27.785 MiB
#9 Runtime Error 149ms 27.766 MiB
#10 Runtime Error 144ms 27.715 MiB

信息

递交者
类型
递交
题目
P1001 序列区间最大值
语言
C++
递交时间
2019-08-24 14:48:07
评测时间
2019-08-24 14:48:07
评测机
分数
20
总耗时
875ms
峰值内存
27.785 MiB