Problem | numericalstrings |
---|---|
User | Henries |
Submission Time | 2024-10-19 23:50:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
numericalstrings.cpp: In function ‘void solve(std::vector<std::__cxx11::basic_string<char> >, long long int)’:
numericalstrings.cpp:11:19: error: no matching function for call to ‘std::priority_queue<int>::push(__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type&)’
11 | pq.push(v[index]);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from numericalstrings.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = int; _Sequence = std::vector<int>; _Compare = std::less<int>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = int]’
627 | push(const value_type& __x)
| ^~~~