C++要使用hash_map的时候,除了引入头文件:

#incluse<hash_set>/<hash_map>

还需要使用__gnu_cxx命名空间,否则报错。即:

using namespace __gnu_cxx;
 

相关文章: