Problem | packingducks |
---|---|
User | chiefoggy |
Submission Time | 2024-06-18 11:20:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
packingducks.cpp: In function ‘int main()’:
packingducks.cpp:38:60: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘int [2005]’
38 | cout << count_permutations_with_sum_not_greater_than_k(a, k) << endl; // Output: 10
| ^
packingducks.cpp:7:65: note: in passing argument 1 of ‘int count_permutations_with_sum_not_greater_than_k(std::vector<int>&, int)’
7 | int count_permutations_with_sum_not_greater_than_k(vector<int>& a, int k) {
| ~~~~~~~~~~~~~^