Problem segmenttree2
User justin271828
Submission Time 2024-12-10 21:39:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp:34:37: error: ISO C++ forbids declaration of ‘root’ with no type [-fpermissive]
34 | return l->q(x, y) + r->q(x, y);}}*root;
| ^~~~
segmenttree2.cpp:49:11: error: expected ‘}’ at end of input
49 | return 0;}
| ^
segmenttree2.cpp:4:13: note: to match this ‘{’
4 | struct node {
| ^
segmenttree2.cpp: In constructor ‘node::node(int, int)’:
segmenttree2.cpp:11:14: error: a function-definition is not allowed here before ‘{’ token
11 | void prop() {
| ^
segmenttree2.cpp:20:31: error: a function-definition is not allowed here before ‘{’ token
20 | void up(int x, int y, int k) {
| ^
segmenttree2.cpp:30:22: error: a function-definition is not allowed here before ‘{’ token
30 | int q(int x, int y) {
| ^
segmenttree2.cpp: In member functio