Problem fibo
User ndgsghdj
Submission Time 2025-04-17 17:06:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘int main()’:
fibo.cpp:25:19: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<long long int>’
25 | cout << fibo(i, memo) << endl;
| ^~~~
fibo.cpp:6:36: note: in passing argument 2 of ‘int fibo(long long int, std::vector<int>&)’
6 | int fibo(long long n, vector<int>& memo) {
| ~~~~~~~~~~~~~^~~~