Problem | segmenttree |
---|---|
User | zhehanp |
Submission Time | 2024-09-24 16:24:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree.cpp: In member function ‘int node::qry(int, int)’:
segmenttree.cpp:22:23: error: invalid use of non-static member function ‘int node::qry(int, int)’
22 | return min(l->qry,r->qry);
| ~~~^~~
segmenttree.cpp:15:9: note: declared here
15 | int qry(int S, int E){
| ^~~
segmenttree.cpp: In member function ‘void node::upd(int, int)’:
segmenttree.cpp:34:20: error: ‘struct node’ has no member named ‘v’
34 | val=min(l->v,r->v);
| ^
segmenttree.cpp:34:25: error: ‘struct node’ has no member named ‘v’
34 | val=min(l->v,r->v);
| ^