Problem milkweed
User nivay210
Submission Time 2023-11-16 11:51:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

milkweed.cpp: In function ‘void bfs(int, int)’:
milkweed.cpp:26:38: error: no matching function for call to ‘std::queue<std::pair<std::pair<int, int>, int> >::push(std::pair<int, int>, int)’
26 | q.push(make_pair(nx, ny), weeks+1);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from milkweed.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: ‘void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<std::pair<int, int>, int>; _Sequence = std::deque<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<std::pair<int, int>, int>]’
259 | push(const value_type& __x)
| ^~~~