Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<queue>
- #include <vector>
- using namespace std;
- int main()
- {
- priority_queue<int> pq;
- pq.push(10);
- pq.push(20);
- pq.push(30);
- while(!pq.empty()) {
- cout << pq.top() << " ";
- pq.pop();
- }
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement