2011-11-13 82 views

回答

2

第二個模板std::priority_queue的參數是適應的容器,而不是比較函子。您應該使用此代替:

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

另外,停止使用using namespace std;

相關問題