I'm trying to solve a question on hacker rank named (Attribute Parser) : QUESTION
So I came up with a solution that I could use map but in order to solve it I need to insert two keys 1 would be pair and other would be a string map<pair<string,string>,string>DATA;
I tried DATA.emplace({Type, Tag},Data);
But gave an error : no matching member function for call to 'emplace'
Now how to insert elements as well as access them?
PS:
Thanks for reading.
Sorry for bad English.
Aucun commentaire:
Enregistrer un commentaire