std::multimap<int,pair > topNodes; //Error cause > > not compiling
Why do you think it should? What's pair
at this point?
Remember std::pair<>
needs to have correct template parameters to instatiate it.
Or is there any better ways to do this?
You probably meant something like this:
typedef std::pair<std::string,std::string> myPair;
std::multimap<int,myPair> topNodes;
// ...