Hola, a ver si me echais una mano, obtengo un error si declaro una cola de lo más sencilla:
#include <iostream>
#include <queue>
using namespace std;
int main() {
priority_queue <int,queue<int>,less<int> > Q;
}
C:\Dev-Cpp\include\c++\3.4.2\bits\stl_queue.h In constructor
`std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const
_Compare&, const _Sequence&) [with _Tp = int, _Sequence = std::queue<int,
std::deque<int, std::allocator<int> > >, _Compare = std::less<int>]':
369 C:\Dev-Cpp\include\c++\3.4.2\bits\stl_queue.h 'class std::queue<int,
std::deque<int, std::allocator<int> > >' has no member named 'begin'
369 C:\Dev-Cpp\include\c++\3.4.2\bits\stl_queue.h 'class std::queue<int,
std::deque<int, std::allocator<int> > >' has no member named 'end'
Gracias.