F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38892798_1914.cpp: In instantiation of 'void OY::Seg::Tree<Node, MAX_NODE>::_pushdown(OY::Seg::size_type, OY::Seg::size_type) const [with Node = Node<unsigned int, unsigned int, long long unsigned int>; unsigned int MAX_NODE = 4000000; OY::Seg::size_type = unsigned int]':
0_0_38892798_1914.cpp:276:68:   required from 'void OY::Seg::Tree<Node, MAX_NODE>::add(OY::Seg::size_type, OY::Seg::size_type, Modify&&) [with Modify = Node<unsigned int, unsigned int, long long unsigned int>::Chmin; Node = Node<unsigned int, unsigned int, long long unsigned int>; unsigned int MAX_NODE = 4000000; OY::Seg::size_type = unsigned int]'
0_0_38892798_1914.cpp:441:22:   required from here
0_0_38892798_1914.cpp:234:38: error: no matching function for call to 'Node<unsigned int, unsigned int, long long unsigned int>::pushdown(OY::Seg::Tree<Node<unsigned int, unsigned int, long long unsigned int>, 4000000>::node*, OY::Seg::Tree<Node<unsigned int, unsigned int, long long unsigned int>, 4000000>::node*)'
  234 |                     m_sub[i].pushdown(m_sub + (i << 1), m_sub + (i << 1 | 1));
      |                     ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0_0_38892798_1914.cpp:409:10: note: candidate: 'void Node<ValueType, CountType, SumType>::pushdown(node_type*, node_type*, uint32_t) [with ValueType = unsigned int; CountType = unsigned int; SumType = long long unsigned int; node_type = Node<unsigned int, unsigned int, unsigned int>; uint32_t = unsigned int]'
  409 |     void pushdown(node_type *lchild, node_type *rchild, uint32_t len) {
      |          ^~~~~~~~
0_0_38892798_1914.cpp:409:10: note:   candidate expects 3 arguments, 2 provided
0_0_38892798_1914.cpp: In instantiation of 'void OY::Seg::Tree<Node, MAX_NODE>::_apply(OY::Seg::size_type, Modify&&, OY::Seg::size_type) [with Modify = Node<unsigned int, unsigned int, long long unsigned int>::Chmin&; Node = Node<unsigned int, unsigned int, long long unsigned int>; unsigned int MAX_NODE = 4000000; OY::Seg::size_type = unsigned int]':
0_0_38892798_1914.cpp:278:23:   required from 'void OY::Seg::Tree<Node, MAX_NODE>::add(OY::Seg::size_type, OY::Seg::size_type, Modify&&) [with Modify = Node<unsigned int, unsigned int, long long unsigned int>::Chmin; Node = Node<unsigned int, unsigned int, long long unsigned int>; unsigned int MAX_NODE = 4000000; OY::Seg::size_type = unsigned int]'
0_0_38892798_1914.cpp:441:22:   required from here
0_0_38892798_1914.cpp:224:31: error: no matching function for call to 'Node<unsigned int, unsigned int, long long unsigned int>::map(Node<unsigned int, unsigned int, long long unsigned int>::Chmin&, OY::Seg::Tree<Node<unsigned int, unsigned int, long long unsigned int>, 4000000>::node*, OY::Seg::size_type&)'
  224 |                 if (!node::map(modify, m_sub + i, len)) {
      |                      ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
0_0_38892798_1914.cpp:342:17: note: candidate: 'static bool Node<ValueType, CountType, SumType>::map(const Chmin&, node_type*, uint32_t) [with ValueType = unsigned int; CountType = unsigned int; SumType = long long unsigned int; node_type = Node<unsigned int, unsigned int, unsigned int>; uint32_t = unsigned int]'
  342 |     static bool map(const Chmin &chmin, node_type *x, uint32_t len) {
      |                 ^~~
0_0_38892798_1914.cpp:342:52: note:   no known conversion for argument 2 from 'OY::Seg::Tree<Node<unsigned int, unsigned int, long long unsigned int>, 4000000>::node*' {aka 'Node<unsigned int, unsigned int, long long unsigned int>*'} to 'Node<unsigned int, unsigned int, long long unsigned int>::node_type*' {aka 'Node<unsigned int, unsigned int, unsigned int>*'}
  342 |     static bool map(const Chmin &chmin, node_type *x, uint32_t len) {
      |                                         ~~~~~~~~~~~^
0_0_38892798_1914.cpp:347:17: note: candidate: 'static bool Node<ValueType, CountType, SumType>::map(const Chmax&, node_type*, uint32_t) [with ValueType = unsigned int; CountType = unsigned int; SumType = long long unsigned int; node_type = Node<unsigned int, unsigned int, unsigned int>; uint32_t = unsigned int]'
  347 |     static bool map(const Chmax &chmax, node_type *x, uint32_t len) {
      |                 ^~~
0_0_38892798_1914.cpp:347:34: note:   no known conversion for argument 1 from 'Node<unsigned int, unsigned int, long long unsigned int>::Chmin' to 'const Node<unsigned int, unsigned int, long long unsigned int>::Chmax&'
  347 |     static bool map(const Chmax &chmax, node_type *x, uint32_t len) {
      |                     ~~~~~~~~~~~~~^~~~~
0_0_38892798_1914.cpp:352:17: note: candidate: 'static bool Node<ValueType, CountType, SumType>::map(const Add&, node_type*, uint32_t) [with ValueType = unsigned int; CountType = unsigned int; SumType = long long unsigned int; node_type = Node<unsigned int, unsigned int, unsigned int>; uint32_t = unsigned int]'
  352 |     static bool map(const Add &add, node_type *x, uint32_t len) {
      |                 ^~~
0_0_38892798_1914.cpp:352:32: note:   no known conversion for argument 1 from 'Node<unsigned int, unsigned int, long long unsigned int>::Chmin' to 'const Node<unsigned int, unsigned int, long long unsigned int>::Add&'
  352 |     static bool map(const Add &add, node_type *x, uint32_t len) {
      |                     ~~~~~~~~~~~^~~
0_0_38892798_1914.cpp: In instantiation of 'void OY::Seg::Tree<Node, MAX_NODE>::_pushup(OY::Seg::size_type) const [with Node = Node<unsigned int, unsigned int, long long unsigned int>; unsigned int MAX_NODE = 4000000; OY::Seg::size_type = unsigned int]':
0_0_38892798_1914.cpp:281:21:   required from 'void OY::Seg::Tree<Node, MAX_NODE>::add(OY::Seg::size_type, OY::Seg::size_type, Modify&&) [with Modify = Node<unsigned int, unsigned int, long long unsigned int>::Chmin; Node = Node<unsigned int, unsigned int, long long unsigned int>; unsigned int MAX_NODE = 4000000; OY::Seg::size_type = unsigned int]'
0_0_38892798_1914.cpp:441:22:   required from here
0_0_38892798_1914.cpp:240:42: error: 'op' is not a member of 'OY::Seg::Tree<Node<unsigned int, unsigned int, long long unsigned int>, 4000000>::node' {aka 'Node<unsigned int, unsigned int, long long unsigned int>'}
  240 |                     m_sub[i].set(node::op(m_sub[i * 2].get(), m_sub[i * 2 + 1].get()));
      |                                  ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0_0_38892798_1914.cpp:240:56: error: 'using OY::Seg::Tree<Node<unsigned int, unsigned int, long long unsigned int>, 4000000>::node = struct Node<unsigned int, unsigned int, long long unsigned int>' {aka 'struct Node<unsigned int, unsigned int, long long unsigned int>'} has no member named 'get'; did you mean 'set'?
  240 |                     m_sub[i].set(node::op(m_sub[i * 2].get(), m_sub[i * 2 + 1].get()));
      |                                           ~~~~~~~~~~~~~^~~
      |                                           set
0_0_38892798_1914.cpp:240:80: error: 'using OY::Seg::Tree<Node<unsigned int, unsigned int, long long unsigned int>, 4000000>::node = struct Node<unsigned int, unsigned int, long long unsigned int>' {aka 'struct Node<unsigned int, unsigned int, long long unsigned int>'} has no member named 'get'; did you mean 'set'?
  240 |                     m_sub[i].set(node::op(m_sub[i * 2].get(), m_sub[i * 2 + 1].get()));
      |                                                               ~~~~~~~~~~~~~~~~~^~~
      |                                                               set


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-04 14:34:24, Gzip enabled