Problem gerrymandering
User justin271828
Submission Time 2024-12-12 19:47:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gerrymandering.cpp:23:45: error: expected ‘;’ after struct definition
23 | else return max(l->q(x, y), r->q(x, y));}}
| ^
| ;
gerrymandering.cpp: In function ‘int main()’:
gerrymandering.cpp:42:2: error: ‘root’ was not declared in this scope
42 | root = new node(0, N+5);
| ^~~~
gerrymandering.cpp:43:2: error: ‘root2’ was not declared in this scope
43 | root2 = new node(0, N+5);
| ^~~~~