Problem duckhunt8
User havinaaaaash
Submission Time 2024-12-30 16:26:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt8.cpp: In function ‘int main()’:
duckhunt8.cpp:26:36: error: invalid initialization of reference of type ‘std::vector<long long int>&’ from expression of type ‘std::vector<std::vector<long long int> >’
26 | cout << duckhunt(0, qu.size(), 1, dp);
| ^~
duckhunt8.cpp:6:51: note: in passing argument 4 of ‘long long int duckhunt(long long int, long long int, long long int, std::vector<long long int>&)’
6 | int duckhunt(int j, int n, int mult, vector<int> &dp){
| ~~~~~~~~~~~~~^~