Problem bananafarm
User Reverberate
Submission Time 2023-06-07 00:48:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bananafarm.cpp: In member function ‘std::vector<long long int> node::q(long long int, long long int)’:
bananafarm.cpp:52:45: error: no matching function for call to ‘merge(std::vector<long long int>, std::vector<long long int>)’
52 | return merge(ln->q(a,m),rn->q(m+1,b));
| ^
bananafarm.cpp:5:13: note: candidate: ‘std::vector<long long int> merge(std::vector<long long int>&, std::vector<long long int>&)’ <near match>
5 | vector<int> merge(vector<int>& a,vector<int>& b){
| ^~~~~
bananafarm.cpp:5:13: note: conversion of argument 2 would be ill-formed:
bananafarm.cpp:52:38: error: cannot bind non-const lvalue reference of type ‘std::vector<long long int>&’ to an rvalue of type ‘std::vector<long long int>’
52 | return merge(ln->q(a,m),rn->q(m+1,b));
|