Problem | queuecutting |
---|---|
User | JoshJuice |
Submission Time | 2024-07-03 08:24:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
queuecutting.cpp: In function ‘int main()’:
queuecutting.cpp:27:27: error: invalid initialization of reference of type ‘std::vector<long long int>&’ from expression of type ‘std::deque<long long int>’
27 | findAndInsert(queue, y, z);
| ^~~~~
queuecutting.cpp:5:38: note: in passing argument 1 of ‘void findAndInsert(std::vector<long long int>&, long long int, long long int)’
5 | void findAndInsert(std::vector<int> &arr, int findNumber, int insertNumber) {
| ~~~~~~~~~~~~~~~~~~^~~