If you insert a key that already exists in a unordered_map, what happens?
The program crashes.
Nothing happens; the insertion is ignored.
The old value is replaced with the new value.
The existing key-value pair is updated with the new value.
This question is part of this quiz :
C++ Unordered Map