how to push in a map in cpp code example
Example 1: add items to map in c++
mp.insert({ 2, 30 });
Example 2: cpp map insert
std::map<TypeA, TypeB> my_map; // TypeA key; TypeB value
my_map.insert({ key, value }); // insert elements in random order