fix fatal errors
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user