0_0_38893084_12865.cpp:482:20: error: expected ';' at end of member declaration
482 | int64_t m_sum, int64_t m_max1, m_max2;
| ^~~~~~~
| ;
0_0_38893084_12865.cpp:482:28: error: 'm_max1' does not name a type
482 | int64_t m_sum, int64_t m_max1, m_max2;
| ^~~~~~
0_0_38893084_12865.cpp:484:47: error: 'int64_t' is not a type
484 | static bool map(uint32_t z, node_type *x, int64_t len) {
| ^~~~~~~
0_0_38893084_12865.cpp:489:29: error: 'int64_t' is not a type
489 | void add_by(uint32_t z, int64_t len) {
| ^~~~~~~
0_0_38893084_12865.cpp:501:14: error: 'int64_t' is not a type
501 | void set(int64_t val) { m_sum = m_max1 = val, m_max2 = 0, m_max_cnt = 1; }
| ^~~~~~~
0_0_38893084_12865.cpp:518:57: error: 'int64_t' is not a type
518 | void pushdown(node_type *lchild, node_type *rchild, int64_t len) {
| ^~~~~~~
0_0_38893084_12865.cpp: In static member function 'static bool Node::map(uint32_t, node_type*, int)':
0_0_38893084_12865.cpp:485:16: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max1'
485 | if (x->m_max1 <= 1) return true;
| ^~~~~~
0_0_38893084_12865.cpp:486:16: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max2'
486 | if (x->m_max2 > 1) return false;
| ^~~~~~
0_0_38893084_12865.cpp: In member function 'void Node::add_by(uint32_t, int)':
0_0_38893084_12865.cpp:490:13: error: 'm_max1' was not declared in this scope
490 | if (m_max1 > 1) {
| ^~~~~~
0_0_38893084_12865.cpp:493:42: error: expression cannot be used as a function
493 | m_sum -= int64_t(m_max1 - val) * m_max_cnt;
| ^
0_0_38893084_12865.cpp:497:29: error: 'm_max2' was not declared in this scope
497 | m_max1 = 1, m_max2 = 0, m_max_cnt = m_sum;
| ^~~~~~
0_0_38893084_12865.cpp: In member function 'void Node::set(int)':
0_0_38893084_12865.cpp:501:37: error: 'm_max1' was not declared in this scope
501 | void set(int64_t val) { m_sum = m_max1 = val, m_max2 = 0, m_max_cnt = 1; }
| ^~~~~~
0_0_38893084_12865.cpp:501:51: error: 'm_max2' was not declared in this scope
501 | void set(int64_t val) { m_sum = m_max1 = val, m_max2 = 0, m_max_cnt = 1; }
| ^~~~~~
0_0_38893084_12865.cpp: In member function 'void Node::pushup(node_type*, node_type*)':
0_0_38893084_12865.cpp:504:21: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max1'
504 | if (lchild->m_max1 == rchild->m_max1) {
| ^~~~~~
0_0_38893084_12865.cpp:504:39: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max1'
504 | if (lchild->m_max1 == rchild->m_max1) {
| ^~~~~~
0_0_38893084_12865.cpp:505:19: error: 'struct Node' has no member named 'm_max1'
505 | this->m_max1 = lchild->m_max1;
| ^~~~~~
0_0_38893084_12865.cpp:505:36: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max1'
505 | this->m_max1 = lchild->m_max1;
| ^~~~~~
0_0_38893084_12865.cpp:506:19: error: 'struct Node' has no member named 'm_max2'
506 | this->m_max2 = std::max(lchild->m_max2, rchild->m_max2);
| ^~~~~~
0_0_38893084_12865.cpp:506:45: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max2'
506 | this->m_max2 = std::max(lchild->m_max2, rchild->m_max2);
| ^~~~~~
0_0_38893084_12865.cpp:506:61: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max2'
506 | this->m_max2 = std::max(lchild->m_max2, rchild->m_max2);
| ^~~~~~
0_0_38893084_12865.cpp:508:28: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max1'
508 | } else if (lchild->m_max1 > rchild->m_max1) {
| ^~~~~~
0_0_38893084_12865.cpp:508:45: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max1'
508 | } else if (lchild->m_max1 > rchild->m_max1) {
| ^~~~~~
0_0_38893084_12865.cpp:509:19: error: 'struct Node' has no member named 'm_max1'
509 | this->m_max1 = lchild->m_max1;
| ^~~~~~
0_0_38893084_12865.cpp:509:36: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max1'
509 | this->m_max1 = lchild->m_max1;
| ^~~~~~
0_0_38893084_12865.cpp:511:19: error: 'struct Node' has no member named 'm_max2'
511 | this->m_max2 = std::max(lchild->m_max2, rchild->m_max1);
| ^~~~~~
0_0_38893084_12865.cpp:511:45: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max2'
511 | this->m_max2 = std::max(lchild->m_max2, rchild->m_max1);
| ^~~~~~
0_0_38893084_12865.cpp:511:61: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max1'
511 | this->m_max2 = std::max(lchild->m_max2, rchild->m_max1);
| ^~~~~~
0_0_38893084_12865.cpp:513:19: error: 'struct Node' has no member named 'm_max1'
513 | this->m_max1 = rchild->m_max1;
| ^~~~~~
0_0_38893084_12865.cpp:513:36: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max1'
513 | this->m_max1 = rchild->m_max1;
| ^~~~~~
0_0_38893084_12865.cpp:515:19: error: 'struct Node' has no member named 'm_max2'
515 | this->m_max2 = std::max(lchild->m_max1, rchild->m_max2);
| ^~~~~~
0_0_38893084_12865.cpp:515:45: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max1'
515 | this->m_max2 = std::max(lchild->m_max1, rchild->m_max2);
| ^~~~~~
0_0_38893084_12865.cpp:515:61: error: 'using Node::node_type = struct Node' {aka 'struct Node'} has no member named 'm_max2'
515 | this->m_max2 = std::max(lchild->m_max1, rchild->m_max2);
| ^~~~~~
|