/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'void build(int, int, int)':
/in/foo.cc:17:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     } int mid = l + r >> 1;
                 ~~^~~
/in/foo.cc: In function 'void modify(int, int, int, int, int)':
/in/foo.cc:25:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     } int mid = l + r >> 1;
                 ~~^~~
/in/foo.cc: In function 'node ask(int, int, int, int, int)':
/in/foo.cc:31:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = l + r >> 1;
               ~~^~~
/in/foo.cc:35:31: warning: 't2.node::l' may be used uninitialized in this function [-Wmaybe-uninitialized]
         t3.l = max(t1.l, t1.s + t2.l); t3.ans = max(t3.ans, t1.ans);
                          ~~~~~^~~~~~
/in/foo.cc:35:31: warning: 't2.node::l' may be used uninitialized in this function [-Wmaybe-uninitialized]
         t3.l = max(t1.l, t1.s + t2.l); t3.ans = max(t3.ans, t1.ans);
                          ~~~~~^~~~~~
/in/foo.cc:40:14: warning: 't3.node::r' may be used uninitialized in this function [-Wmaybe-uninitialized]
     } return t3;
              ^~
/in/foo.cc:39:47: warning: 't3.node::l' may be used uninitialized in this function [-Wmaybe-uninitialized]
         if(x <= mid)t3.ans = max(t3.ans, t1.r + t2.l);
                                          ~~~~~^~~~~~
/in/foo.cc:40:14: warning: 't3.node::l' may be used uninitialized in this function [-Wmaybe-uninitialized]
     } return t3;
              ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:35:31: warning: 't2.node::l' may be used uninitialized in this function [-Wmaybe-uninitialized]
         t3.l = max(t1.l, t1.s + t2.l); t3.ans = max(t3.ans, t1.ans);
                          ~~~~~^~~~~~
/in/foo.cc:32:14: note: 't2.node::l' was declared here
     node t1, t2, t3; t3.s = 0; t3.ans = -0x3f3f3f3f;
              ^~
/in/foo.cc:39:47: warning: 't3.node::l' may be used uninitialized in this function [-Wmaybe-uninitialized]
         if(x <= mid)t3.ans = max(t3.ans, t1.r + t2.l);
                                          ~~~~~^~~~~~
/in/foo.cc:32:18: note: 't3.node::l' was declared here
     node t1, t2, t3; t3.s = 0; t3.ans = -0x3f3f3f3f;
                  ^~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 2.254 MiB
#2 Wrong Answer 8ms 2.312 MiB
#3 Wrong Answer 21ms 2.336 MiB
#4 Wrong Answer 15ms 4.48 MiB
#5 Wrong Answer 82ms 4.488 MiB
#6 Wrong Answer 132ms 19.09 MiB
#7 Wrong Answer 151ms 19.414 MiB
#8 Wrong Answer 147ms 18.738 MiB
#9 Wrong Answer 150ms 18.645 MiB
#10 Wrong Answer 156ms 19.047 MiB

信息

递交者
类型
递交
题目
P1083 小白逛公园
语言
C++
递交时间
2019-11-15 16:56:04
评测时间
2019-11-15 16:56:04
评测机
分数
0
总耗时
869ms
峰值内存
19.414 MiB