Problem fenwicktree
User bribritt
Submission Time 2023-02-14 18:38:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp: In function ‘ll RQ(ll, ll)’:
fenwicktree.cpp:40:19: error: cannot convert ‘std::vector<long long int>’ to ‘ll’ {aka ‘long long int’}
40 | return RQ(prefix_sum, 0, b) - RQ(prefix_sum, 0, a - 1);
| ^~~~~~~~~~
| |
| std::vector<long long int>
fenwicktree.cpp:36:10: note: initializing argument 1 of ‘ll RQ(ll, ll)’
36 | ll RQ(ll a, ll b) {
| ~~~^
fenwicktree.cpp:40:42: error: cannot convert ‘std::vector<long long int>’ to ‘ll’ {aka ‘long long int’}
40 | return RQ(prefix_sum, 0, b) - RQ(prefix_sum, 0, a - 1);
| ^~~~~~~~~~
| |
| std::vector<long long int>
fenwicktree.cpp:36:10: note: initializing argument 1 of ‘ll RQ(ll, ll)’
36 | ll RQ(ll a, ll b) {