#include <map>
#include <iostream>
int main()
{
std::map<int, int> foobar({{1,1}, {2,2}, {3,3}});
for(auto& p : foobar) {
++p.second;
std::cout << '{' << p.first << ", " << p.second << "} ";
}
std::cout << std::endl;
}
I2luY2x1ZGUgPG1hcD4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CiAgc3RkOjptYXA8aW50LCBpbnQ+IGZvb2Jhcih7ezEsMX0sIHsyLDJ9LCB7MywzfX0pOwogIGZvcihhdXRvJiBwIDogZm9vYmFyKSB7CiAgICArK3Auc2Vjb25kOwogICAgc3RkOjpjb3V0IDw8ICd7JyA8PCBwLmZpcnN0IDw8ICIsICIgPDwgcC5zZWNvbmQgPDwgIn0gIjsKICB9CiAgc3RkOjpjb3V0IDw8IHN0ZDo6ZW5kbDsKfQ==