struct hashfunc//构造哈希表 { template<typename T, typename U> size_t operator() (const pair<T, U> &i) const { return hash<T>()(i.first) ^ hash<U>()(i.second); } }; unordered_map< PII, int , hashfunc > st;//引用