Problem | segmenttree2 |
---|---|
User | bribritt |
Submission Time | 2024-02-18 15:54:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree2.cpp:38:3: error: no matching function for call to ‘node::node()’
38 | } root;
| ^~~~
segmenttree2.cpp:8:5: note: candidate: ‘node::node(ll, ll)’
8 | node(ll _s, ll _e) {
| ^~~~
segmenttree2.cpp:8:5: note: candidate expects 2 arguments, 0 provided
segmenttree2.cpp:5:8: note: candidate: ‘constexpr node::node(const node&)’
5 | struct node{
| ^~~~
segmenttree2.cpp:5:8: note: candidate expects 1 argument, 0 provided
segmenttree2.cpp:5:8: note: candidate: ‘constexpr node::node(node&&)’
segmenttree2.cpp:5:8: note: candidate expects 1 argument, 0 provided
segmenttree2.cpp: In function ‘int main()’:
segmenttree2.cpp:41:58: error: no match for ‘operator=’ (operand types are ‘node’ and ‘node*’)
41 | ll N, Q, A, B, C; cin >> N >> Q; root = new node(1, N); root->create();
| ^
segmenttree2.cpp:5:8: not