#include<queue> #include<iostream> // Print all element in the queue in order void printQueue(std::priority_queue<int>& q){ while(!q.empty()){ std::cout << q.top() << ' '; q.pop(); } std::cout << std::endl; } int main(int argc, char const *argv[]) { // Initializ...