/ Vijos /

记录详情

Accepted

/in/foo.cc: In constructor 'Tree::Node::Node(int, int, Tree::Node*, Tree::Node*)':
/in/foo.cc:14:15: warning: 'Tree::Node::r' will be initialized after [-Wreorder]
         int l,r;
               ^
/in/foo.cc:13:15: warning:   'Tree::Node* Tree::Node::lson' [-Wreorder]
         Node *lson,*rson;
               ^~~~
/in/foo.cc:17:9: warning:   when initialized here [-Wreorder]
         Node(int l,int r,Node *lson,Node *rson):l(l),r(r),lson(lson),rson(rson){}
         ^~~~
/in/foo.cc: In member function 'void Tree::Node::query(int, int, int&, int&, int&, int&)':
/in/foo.cc:51:32: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
                 int mid=this->l+this->r>>1;
                         ~~~~~~~^~~~~~~~
/in/foo.cc: In member function 'Tree::Node* Tree::build(int, int)':
/in/foo.cc:89:43: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
         else return new Node(l,r,build(l,l+r>>1),build((l+r>>1)+1,r));
                                          ~^~
/in/foo.cc:89:58: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
         else return new Node(l,r,build(l,l+r>>1),build((l+r>>1)+1,r));
                                                         ~^~
# 状态 耗时 内存占用
#1 Accepted 1ms 408.0 KiB
#2 Accepted 9ms 1.012 MiB
#3 Accepted 28ms 2.848 MiB
#4 Accepted 34ms 6.52 MiB
#5 Accepted 117ms 6.52 MiB
#6 Accepted 284ms 37.102 MiB
#7 Accepted 383ms 61.562 MiB
#8 Accepted 378ms 61.562 MiB
#9 Accepted 387ms 61.562 MiB
#10 Accepted 379ms 61.555 MiB

信息

递交者
类型
递交
题目
P1083 小白逛公园
语言
C++
递交时间
2024-08-21 10:22:40
评测时间
2024-08-21 10:22:40
评测机
分数
100
总耗时
2003ms
峰值内存
61.562 MiB