Problem fenwicktree
User 6root2i
Submission Time 2026-02-27 15:26:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp:4:16: error: ‘ll’ was not declared in this scope
4 | typedef vector<ll> vi;
| ^~
fenwicktree.cpp:4:18: error: template argument 1 is invalid
4 | typedef vector<ll> vi;
| ^
fenwicktree.cpp:4:18: error: template argument 2 is invalid
fenwicktree.cpp: In member function ‘void SegmentTree::build(ll, ll, ll)’:
fenwicktree.cpp:24:11: error: invalid types ‘vi {aka int}[ll {aka long long int}]’ for array subscript
24 | st[p] = A[L]; // base case
| ^
fenwicktree.cpp:24:18: error: invalid types ‘vi {aka int}[ll {aka long long int}]’ for array subscript
24 | st[p] = A[L]; // base case
| ^
fenwicktree.cpp:29:11: error: invalid types ‘vi {aka int}[ll {aka long long int}]’ for array subscript
29 | st[p] = conquer(st[l(p)], st[r(p)]);
|