Массивы и коллекции / Словари

#include <iostream>
#include <map>
using namespace std;

//Empty dictionary
map<intstring>  d1;

//init with some data
map<int, string>  d2 = {
    {1"one"}, {2"two"}
};

for (auto &[k, v] : d2) {
    cout << "{" << k << ", '" << v << "'}; ";
}