fork(1) download
  1. #include <iostream>
  2. #include <string>
  3. #include <functional>
  4.  
  5. int main()
  6. {
  7. std::string s1 = "Hello";
  8. std::string s2 = "hello";
  9. std::hash<std::string> hash_fn;
  10.  
  11. size_t hash1 = hash_fn(s1);
  12. size_t hash2 = hash_fn(s2);
  13.  
  14. std::cout << hash1 << '\n';
  15. std::cout << hash2 << '\n';
  16. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
101669370
3305111549