Problem milkweed
User Elwinthenerd
Submission Time 2024-12-21 13:57:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

milkweed.cpp: In function ‘int main()’:
milkweed.cpp:13:22: error: redeclaration of ‘int sx’
13 | int sx = mx - 1, sx = y - my;
| ^~
milkweed.cpp:13:9: note: ‘int sx’ previously declared here
13 | int sx = mx - 1, sx = y - my;
| ^~
milkweed.cpp:15:13: error: ‘sy’ was not declared in this scope; did you mean ‘sx’?
15 | q.push({sy, sx});
| ^~
| sx
milkweed.cpp:15:20: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)’
15 | q.push({sy, sx});
| ^
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&) [