2011-11-13 81 views

回答

2

第二个模板std::priority_queue的参数是适应的容器,而不是比较函子。您应该使用此代替:

std::priority_queue<Job, std::vector<Job>, std::greater<Job>> 

另外,停止使用using namespace std;

相关问题