Problem segmenttree2
User user123
Submission Time 2023-08-10 21:55:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp:7:1: error: ‘vector’ does not name a type
7 | vector<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’ was not declared in this sc