#include <map>
#include <iostream>
static std::map<int, const char*> staticMap;
const char* a = staticMap[0] = "a";
const char* b = staticMap[1] = "b";
const char* c = staticMap[2] = "c";
const char* d = staticMap[3] = "d";
const char* e = staticMap[4] = "e";
int main() {
std::cout << "# Items: " << staticMap.size() << '\n' << std::endl;
std::cout << "Values:\n";
std::cout << "\"a\" = " << a << '\n';
std::cout << "\"b\" = " << b << '\n';
std::cout << "\"c\" = " << c << '\n';
std::cout << "\"d\" = " << d << '\n';
std::cout << "\"e\" = " << e << '\n';
std::cout << std::endl;
std::cout << "Map Contents:" << std::endl;;
for (unsigned i = 0; i < 5; ++i) {
std::cout << "\t" << staticMap[i] << std::endl;
}
return 0;
}
I2luY2x1ZGUgPG1hcD4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RhdGljIHN0ZDo6bWFwPGludCwgY29uc3QgY2hhcio+IHN0YXRpY01hcDsKCmNvbnN0IGNoYXIqIGEgPSBzdGF0aWNNYXBbMF0gPSAiYSI7CmNvbnN0IGNoYXIqIGIgPSBzdGF0aWNNYXBbMV0gPSAiYiI7CmNvbnN0IGNoYXIqIGMgPSBzdGF0aWNNYXBbMl0gPSAiYyI7CmNvbnN0IGNoYXIqIGQgPSBzdGF0aWNNYXBbM10gPSAiZCI7CmNvbnN0IGNoYXIqIGUgPSBzdGF0aWNNYXBbNF0gPSAiZSI7CgppbnQgbWFpbigpIHsKICAgIHN0ZDo6Y291dCA8PCAiIyBJdGVtczogIiA8PCBzdGF0aWNNYXAuc2l6ZSgpIDw8ICdcbicgPDwgc3RkOjplbmRsOwoKICAgIHN0ZDo6Y291dCA8PCAiVmFsdWVzOlxuIjsKICAgIHN0ZDo6Y291dCA8PCAiXCJhXCIgPSAiIDw8IGEgPDwgJ1xuJzsKICAgIHN0ZDo6Y291dCA8PCAiXCJiXCIgPSAiIDw8IGIgPDwgJ1xuJzsKICAgIHN0ZDo6Y291dCA8PCAiXCJjXCIgPSAiIDw8IGMgPDwgJ1xuJzsKICAgIHN0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