Problem hashcollision
User Soysauce
Submission Time 2024-03-04 20:59:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hashcollision.cpp: In function ‘void end2020(int, int)’:
hashcollision.cpp:19:26: error: ‘cout’ is not a member of ‘std’
19 | std::cout << hash_map[hash] << " " << str << std::endl;
| ^~~~
hashcollision.cpp:3:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
2 | #include <unordered_map>
+++ |+#include <iostream>
3 | #include <string>
hashcollision.cpp:19:71: error: ‘endl’ is not a member of ‘std’
19 | std::cout << hash_map[hash] << " " << str << std::endl;
| ^~~~
hashcollision.cpp:3:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
2 | #include <unordered_map>
+++ |+#include <ostream>