fork download
  1. #include <utility>
  2. #include <unordered_map>
  3.  
  4. struct hash_pair {
  5. template <typename T, typename U>
  6. std::size_t operator ()(std::pair<T, U> const& p) const {
  7. using std::hash;
  8. return hash<T>()(p.first) ^ hash<T>()(p.second);
  9. }
  10. };
  11.  
  12. std::unordered_map<std::pair<int, int>, int, hash_pair> predictor;
  13.  
  14. int main() {}
Success #stdin #stdout 0s 3012KB
stdin
Standard input is empty
stdout
Standard output is empty