fix fatal errors

This commit is contained in:
2024-05-25 00:32:21 +00:00
parent 667af2e8a7
commit 10ee833002
3 changed files with 11 additions and 2 deletions

View File

@ -7,6 +7,7 @@ int main() {
std::string token;
while (std::cin >> token) {
hash_t hsh = SplitMix64Hash(token);
std::cout << "hash of " << token << " is " << hsh << std::endl;
if (storage.find(hsh) == storage.end()) {
storage[hsh] = token;
} else if (storage[hsh] != token) {