Problem | segmenttree |
---|---|
User | Blender |
Submission Time | 2024-04-10 15:27:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree.cpp:92:6: error: no matching function for call to ‘Node::Node()’
92 | Node root;
| ^~~~
segmenttree.cpp:24:5: note: candidate: ‘Node::Node(long long unsigned int, long long unsigned int)’
24 | Node( ull rangeStart, ull rangeEnd ) :
| ^~~~
segmenttree.cpp:24:5: note: candidate expects 2 arguments, 0 provided
segmenttree.cpp:13:8: note: candidate: ‘constexpr Node::Node(const Node&)’
13 | struct Node
| ^~~~
segmenttree.cpp:13:8: note: candidate expects 1 argument, 0 provided
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:97:24: error: use of deleted function ‘Node& Node::operator=(const Node&)’
97 | root = Node( 0, N - 1 );
| ^
segmenttree.cpp:13:8: note: ‘Node& Node::operator=(const Node&)’ is implicitly deleted because the default definition would be ill-formed:
13 | struct Node
| ^~~~
segmenttree.cpp:13:8: erro