| Problem | segmenttree |
|---|---|
| User | weccs |
| Submission Time | 2026-09-01 16:06:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
segmenttree.cpp:6:13: error: expected unqualified-id before ‘)’ token
6 | struct node() {
| ^
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:41:29: error: invalid use of incomplete type ‘struct node’
41 | node *root = new node(0,n-1);
| ^
segmenttree.cpp:6:8: note: forward declaration of ‘struct node’
6 | struct node() {
| ^~~~
segmenttree.cpp:45:20: error: invalid use of incomplete type ‘struct node’
45 | if (a == 1) root -> upd(b,c);
| ^~
segmenttree.cpp:6:8: note: forward declaration of ‘struct node’
6 | struct node() {
| ^~~~
segmenttree.cpp:46:21: error: invalid use of incomplete type ‘struct node’
46 | else cout << root -> val(b,c) << endl;
| ^~
segmenttree.cpp:6:8: note: forward declaration of ‘struct node’
6 | struct node() {