标签: c++ c++14
sort(vp.begin() + k, vp.end(), [&] (const pair<char, int> &a, const pair<char, int> &b) { return a.second < b.second; }); // vp is a vector, vector <pair<char, int>> vp;