struct Keyword { std::string keyword; int numUses; }; bool sortingVector(const Keyword& key1, const Keyword& key2) { return key1.numUses < key2
Put std:: in front of your sort call. And #include at the top of the source file.
std::
sort
#include