64,642
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <queue>
using namespace std;
int main()
{
priority_queue<int, vector<int>, greater<int> >q1;
q1.push(5);
q1.push(3);
q1.push(1);
while (!q1.empty()) {
cout<<q1.top();
q1.pop();
}
return 0;
}
greater报错