program to add elements in map c++ code example Example: add items to map in c++ mp.insert({ 2, 30 });