c Unporned_map Sprawdź, czy istnieje klucz

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