✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Що буде виведено в результаті виконання коду?
Введіть відповідь точно так, як її виведе програма, без додаткових пробілів.
#include <iostream>
#include <stack>
#include <queue>
#include <vector>
#include <functional>
#include <string>
using namespace std;
int main(){
priority_queue<int> pq; for(int x:{4,2,7}) pq.push(x); while(!pq.empty()){cout<<pq.top(); pq.pop();}
return 0;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!