| Problem | segmenttree2 |
|---|---|
| User | ensonchew |
| Submission Time | 2025-12-08 14:38:49 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
segmenttree2.cpp:4:13: error: expected unqualified-id before ‘)’ token
4 | struct node(){
| ^
segmenttree2.cpp: In function ‘int main()’:
segmenttree2.cpp:56:28: error: invalid use of incomplete type ‘struct node’
56 | node* root = new node(1, N);
| ^
segmenttree2.cpp:4:8: note: forward declaration of ‘struct node’
4 | struct node(){
| ^~~~
segmenttree2.cpp:62:8: error: invalid use of incomplete type ‘struct node’
62 | root->upd(l, r, b);
| ^~
segmenttree2.cpp:4:8: note: forward declaration of ‘struct node’
4 | struct node(){
| ^~~~
segmenttree2.cpp:64:16: error: invalid use of incomplete type ‘struct node’
64 | cout << root->query(l, r);
| ^~
segmenttree2.cpp:4:8: note: forward declaration of ‘struct node’
4 | struct node(){
| ^~~~