Problem rmaxq
User Pyrros
Submission Time 2023-02-22 17:00:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rmaxq.cpp: In function ‘int main()’:
rmaxq.cpp:58:34: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<long long int>’
58 | cout<<update(0, n-1, 0, a, b, arr)<<'\n';
| ^~~
rmaxq.cpp:21:70: note: in passing argument 6 of ‘long long int update(int, int, int, int, int, std::vector<int>&)’
21 | long long update(int s, int e, int ind, int qs, int qe, vector<int> &v)
| ~~~~~~~~~~~~~^