Problem | guessqueue |
---|---|
User | caleb |
Submission Time | 2024-05-26 10:15:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
guessqueue.cpp: In function ‘int main()’:
guessqueue.cpp:13:49: error: no matching function for call to ‘std::queue<long long int>::push(std::__cxx11::basic_string<char>&)’
13 | if (Narr[i].first == 1) {q.push(Narr[i].second); pq.push(Narr[i].second); fmpq.insert(Narr[i].second);}
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from guessqueue.cpp:2:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: ‘void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = long long int; _Sequence = std::deque<long long int, std::allocator<long long int> >; std::queue<_Tp, _Sequence>::value_type = long long int]’
259 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:259:30: note: no known conversion for argument 1 f