Record Detail

Compile Error

In file included from /in/driver/main.cpp:5:0:
/in/hashtable.hpp: In instantiation of 'bool HashTable<Key, Value, Hash, KeyEqual>::contains(const Key&) [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>]':
/in/driver/main.cpp:92:38:   required from here
/in/hashtable.hpp:247:10: error: unused variable 'res' [-Werror=unused-variable]
     bool res = find(key) != end();
          ^~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 2: Hashing
Language
C++
Submit At
2024-11-10 18:54:07
Judged At
2024-11-10 18:54:07
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes