// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>
#include <string>
#include <map>

using namespace std;

int main()
{
    map<string, map<string,int> > m;
    m["a"]["1"] = 1;
    m["a"]["2"] = 2;
    m["b"]["1"] = 3;
    m["b"]["2"] = 4;
    cout << m["b"]["1"] << endl;
    return 0;
}
