Problem joke
User Soysauce
Submission Time 2024-03-22 17:27:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

joke.cpp: In function ‘int main()’:
joke.cpp:60:29: error: ‘B’ was not declared in this scope
60 | q.push({B, i + 1});
| ^
joke.cpp:60:38: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)’
60 | q.push({B, i + 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 joke.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<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]’
259 | push(const value_type