#include using __gnu_cxx::hash_map; namespace __gnu_cxx { template<> struct hash { size_t operator()(const std::string& s) const { return hash()(s.c_str()); } }; }