Problem | xmas |
---|---|
User | aj |
Submission Time | 2024-09-08 11:44:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
xmas.cpp: In function ‘int main()’:
xmas.cpp:41:38: error: invalid initialization of reference of type ‘const std::vector<int>&’ from expression of type ‘std::vector<long long int>’
41 | int a_location=linear_search(gift_recipient,a+1);
| ^~~~~~~~~~~~~~
xmas.cpp:13:37: note: in passing argument 1 of ‘int linear_search(const std::vector<int>&, int)’
13 | int linear_search(const vector<int>&vec,int target){
| ~~~~~~~~~~~~~~~~~~^~~