Problem | gerrymandering |
---|---|
User | justin271828 |
Submission Time | 2024-12-12 19:47:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gerrymandering.cpp:23:53: error: no matching function for call to ‘node::node()’
23 | else return max(l->q(x, y), r->q(x, y));}} *root, root2;
| ^~~~~
gerrymandering.cpp:7:2: note: candidate: ‘node::node(int, int)’
7 | node (int S, int E) :
| ^~~~
gerrymandering.cpp:7:2: note: candidate expects 2 arguments, 0 provided
gerrymandering.cpp:4:8: note: candidate: ‘constexpr node::node(const node&)’
4 | struct node {
| ^~~~
gerrymandering.cpp:4:8: note: candidate expects 1 argument, 0 provided
gerrymandering.cpp:4:8: note: candidate: ‘constexpr node::node(node&&)’
gerrymandering.cpp:4:8: note: candidate expects 1 argument, 0 provided
gerrymandering.cpp: In function ‘int main()’:
gerrymandering.cpp:43:25: error: no match for ‘operator=’ (operand types are ‘node’ and ‘node*’)
43 | root2 = new node(0, N+5);
| ^<