In file included from /in/driver/main.cpp:5:0:
/in/hashtable.hpp: In member function 'size_t HashTable<Key, Value, Hash, KeyEqual>::findMinimumBucketSize(size_t) const':
/in/hashtable.hpp:173:38: error: 'minBucketSize' was not declared in this scope
size_t resultSize = std::max(minBucketSize, requiredSize);
^~~~~~~~~~~~~
/in/hashtable.hpp:173:38: note: suggested alternative: 'bucketSize'
size_t resultSize = std::max(minBucketSize, requiredSize);
^~~~~~~~~~~~~
bucketSize
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:405:9: error: 'newBucketSize' was not declared in this scope
newBucketSize = findMinimumBucketSize(newBucketSize);
^~~~~~~~~~~~~
/in/hashtable.hpp:405:9: note: suggested alternative: 'bucketSize'
newBucketSize = 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:389:19: required from 'Value& HashTable<Key, Value, Hash, KeyEqual>::operator[](const Key&) [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>]'
/in/driver/main.cpp:129:94: required from here
/in/hashtable.hpp:404:24: error: unused parameter 'bucketSize' [-Werror=unused-parameter]
void rehash(size_t bucketSize) {
^~~~~~~~~~
In file included from /in/driver/main.cpp:5:0:
/in/hashtable.hpp: In instantiation of 'size_t HashTable<Key, Value, Hash, KeyEqual>::findMinimumBucketSize(size_t) const [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>; size_t = long unsigned int]':
/in/hashtable.hpp:405:46: required from '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:389:19: required from 'Value& HashTable<Key, Value, Hash, KeyEqual>::operator[](const Key&) [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>]'
/in/driver/main.cpp:129:94: required from here
/in/hashtable.hpp:172:51: error: conversion to 'double' from 'long unsigned int' may alter its value [-Werror=conversion]
size_t requiredSize = static_cast<size_t>(tableSize / maxLoadFactor);
^~~~~~~~~
/in/hashtable.hpp:170:41: error: unused parameter 'bucketSize' [-Werror=unused-parameter]
size_t findMinimumBucketSize(size_t bucketSize) const {
^~~~~~~~~~
cc1plus: all warnings being treated as errors