Problem hashcollision
User Soysauce
Submission Time 2024-03-04 21:08:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hashcollision.cpp: In function ‘void end2020(int, int)’:
hashcollision.cpp:20:21: error: ‘answer’ was not declared in this scope
20 | answer(score); // Output the score
| ^~~~~~
hashcollision.cpp:33:5: error: ‘answer’ was not declared in this scope
33 | answer(100);
| ^~~~~~
hashcollision.cpp:36:10: error: ‘vector’ is not a member of ‘std’
36 | std::vector<int> schools(M);
| ^~~~~~
hashcollision.cpp:6:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
5 | #include <iostream> // Include iostream for input/output
+++ |+#include <vector>
6 |
hashcollision.cpp:36:17: error: expected primary-expression before ‘int’
36 | std::vector<int> schools(M);
| ^~~
hashcollision.cpp:38:21: error: ‘schools’ was not declared in this scope
38 |