Problem | segmenttree2 |
---|---|
User | Josh28acc2 |
Submission Time | 2023-12-16 11:30:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree2.cpp:123:3: error: ISO C++ forbids declaration of ‘root’ with no type [-fpermissive]
123 | }*root;
| ^~~~
segmenttree2.cpp:150:1: error: expected ‘}’ at end of input
150 | }
| ^
segmenttree2.cpp:63:13: note: to match this ‘{’
63 | struct node {
| ^
segmenttree2.cpp: In constructor ‘node::node(ll, ll)’:
segmenttree2.cpp:76:19: error: a function-definition is not allowed here before ‘{’ token
76 | ll lazyProp() { // does the part where if u have to propogate
| ^
segmenttree2.cpp:90:49: error: a function-definition is not allowed here before ‘{’ token
90 | void rangeUpdate(ll left, ll right, ll val) {
| ^
segmenttree2.cpp:107:42: error: a function-definition is not allowed here before ‘{’ token
107 | ll rangeQuery(ll left, ll right) {
| ^<