#include <map>
#include <iostream>
void testFunc()
{
std::cout<<"It works!\n";
}
int main()
{
std::map<int, void (*)()> mymap;
mymap[1]=testFunc ;
void (*final)() = mymap[1];
final();
}
I2luY2x1ZGUgPG1hcD4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKdm9pZCB0ZXN0RnVuYygpCnsKCXN0ZDo6Y291dDw8Ikl0IHdvcmtzIVxuIjsKfQoKaW50IG1haW4oKQp7CglzdGQ6Om1hcDxpbnQsIHZvaWQgKCopKCk+IG15bWFwOwoJbXltYXBbMV09dGVzdEZ1bmMgOwoKCXZvaWQgKCpmaW5hbCkoKSA9IG15bWFwWzFdOwogICAJZmluYWwoKTsKfQ==