fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <unordered_map>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. hash<string> hasher;
  9. cout << hasher("This is a test") << endl;
  10. cout << hasher("This is a tes") << endl;
  11. cout << hasher("This is a te") << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5432KB
stdin
Standard input is empty
stdout
5122661464562453635
11038639512142059260
12173672891037275231