#include <strings.h>
#include <map>
#include <vector>
#include <iostream>
using namespace std;
int main() {
auto comp = [](const std::string& s1, const std::string& s2) {
return strcasecmp(s1.c_str(), s2.c_str()) < 0;
};
std::map<std::string, std::vector<std::string>, decltype(comp)> directory(comp);
directory["TeSt"] = { "VectorElement" };
if (directory.find("TEST") != end(directory))
std::cout << "Entry found." << std::endl;
else
std::cout << "Entry not found!" << std::endl;
return 0;
}
I2luY2x1ZGUgPHN0cmluZ3MuaD4KI2luY2x1ZGUgPG1hcD4KI2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBhdXRvIGNvbXAgPSBbXShjb25zdCBzdGQ6OnN0cmluZyYgczEsIGNvbnN0IHN0ZDo6c3RyaW5nJiBzMikgewogICAgICAgIHJldHVybiBzdHJjYXNlY21wKHMxLmNfc3RyKCksIHMyLmNfc3RyKCkpIDwgMDsKICAgIH07CiAgICBzdGQ6Om1hcDxzdGQ6OnN0cmluZywgc3RkOjp2ZWN0b3I8c3RkOjpzdHJpbmc+LCBkZWNsdHlwZShjb21wKT4gZGlyZWN0b3J5KGNvbXApOwoKICAgIGRpcmVjdG9yeVsiVGVTdCJdID0geyAiVmVjdG9yRWxlbWVudCIgfTsKCiAgICBpZiAoZGlyZWN0b3J5LmZpbmQoIlRFU1QiKSAhPSBlbmQoZGlyZWN0b3J5KSkKICAgICAgICBzdGQ6OmNvdXQgPDwgIkVudHJ5IGZvdW5kLiIgPDwgc3RkOjplbmRsOwogICAgZWxzZQogICAgICAgIHN0ZDo6Y291dCA8PCAiRW50cnkgbm90IGZvdW5kISIgPDwgc3RkOjplbmRsOwoKCXJldHVybiAwOwp9