Problem | fenwicktree |
---|---|
User | ansellee |
Submission Time | 2025-01-16 20:07:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp: In member function ‘void RUFT::makeTree(std::vector<long long int>&)’:
fenwicktree.cpp:64:24: error: cannot bind non-const lvalue reference of type ‘std::vector<long long int>&’ to an rvalue of type ‘std::vector<long long int>’
64 | ftadd.makeTree(vector<long long>(makeTreeVector.size(), 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fenwicktree.cpp:14:38: note: initializing argument 1 of ‘void ftree::makeTree(std::vector<long long int>&)’
14 | void makeTree(vector<long long>& thetree)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~