Problem | segmenttree2 |
---|---|
User | user123 |
Submission Time | 2023-08-12 20:24:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree2.cpp:7:1: error: ‘unordered_map’ does not name a type
7 | unordered_map<int, ll> fwtree1, fwtree2;
| ^~~~~~~~~~~~~
segmenttree2.cpp: In function ‘ll query(int)’:
segmenttree2.cpp:33:22: error: ‘fwtree1’ was not declared in this scope; did you mean ‘free’?
33 | return (x+1)*sum(fwtree1, x)-sum(fwtree2, x);
| ^~~~~~~
| free
segmenttree2.cpp:33:38: error: ‘fwtree2’ was not declared in this scope; did you mean ‘free’?
33 | return (x+1)*sum(fwtree1, x)-sum(fwtree2, x);
| ^~~~~~~
| free
segmenttree2.cpp: In function ‘void modify(int, int, ll)’:
segmenttree2.cpp:37:12: error: ‘fwtree1’ was not declared in this scope; did you mean ‘free’?
37 | update(fwtree1, l, x);
| ^~~~~~~
| free
segmenttree2.cpp:39:12: error: ‘fwtree2’ w