错误现场: vector<pair<ll, int>> v; 在“<<”中加一个空格即可: vector<pair<ll, int> > v; 转载于:https://www.cnblogs.com/cszlg/archive/2013/03/10/2952846.html