In file included from /in/driver/main.cpp:5:0:
/in/hashtable.hpp: In member function 'void HashTable<Key, Value, Hash, KeyEqual>::rehash(size_t)':
/in/hashtable.hpp:422:57: error: 'newBucketSize' was not declared in this scope
size_t targetBucketSize = findMinimumBucketSize(newBucketSize);
^~~~~~~~~~~~~
/in/hashtable.hpp:422:57: note: suggested alternative: 'bucketSize'
size_t targetBucketSize = findMinimumBucketSize(newBucketSize);
^~~~~~~~~~~~~
bucketSize
/in/hashtable.hpp: In instantiation of 'void HashTable<Key, Value, Hash, KeyEqual>::rehash(size_t) [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>; size_t = long unsigned int]':
/in/hashtable.hpp:309:23: required from 'bool HashTable<Key, Value, Hash, KeyEqual>::insert(const HashTable<Key, Value, Hash, KeyEqual>::Iterator&, const Key&, const Value&) [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>]'
/in/hashtable.hpp:340:22: required from 'bool HashTable<Key, Value, Hash, KeyEqual>::insert(const Key&, const Value&) [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>]'
/in/driver/main.cpp:111:43: required from here
/in/hashtable.hpp:421:24: error: unused parameter 'bucketSize' [-Werror=unused-parameter]
void rehash(size_t bucketSize) {
^~~~~~~~~~
cc1plus: all warnings being treated as errors