fork(3) download
  1. #include <iostream>
  2. #include <functional>
  3. #include <string>
  4.  
  5. size_t hash(const std::string& key)
  6. {
  7. std::hash<std::string> hasher;
  8. return hasher(key);
  9. }
  10.  
  11. int main() {
  12. std::cout << hash("abc") << std::endl;
  13. return 0;
  14. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
3350977461