c não -ordered_map Verifique se a chave existe
bool checkKey (int key, const std::unordered_map<int, int> &m) {
if (m.find(key) == m.end()) {
return false; //Key is not in the map
}
return true; //Key is in the map
}
DarkBird