In file included from /in/driver/main.cpp:5:0:
/in/hashtable.hpp: In member function 'HashTable<Key, Value, Hash, KeyEqual>::Iterator HashTable<Key, Value, Hash, KeyEqual>::find(const Key&)':
/in/hashtable.hpp:265:43: error: 'key_index' was not declared in this scope
Iterator it(this, buckets.begin()+key_index, (buckets.begin()+key_index)->begin());
^~~~~~~~~
/in/hashtable.hpp:265:43: note: suggested alternative: 'remainder'
Iterator it(this, buckets.begin()+key_index, (buckets.begin()+key_index)->begin());
^~~~~~~~~
remainder
/in/hashtable.hpp: In member function 'bool HashTable<Key, Value, Hash, KeyEqual>::insert(const HashTable<Key, Value, Hash, KeyEqual>::Iterator&, const Key&, const Value&)':
/in/hashtable.hpp:302:18: error: expected unqualified-id before 'new'
HashNode new(key, value);
^~~
/in/hashtable.hpp:303:56: error: expected type-specifier before ')' token
it.bucketIt->emplace_after(it.listItBefore, new);
^
/in/hashtable.hpp: In instantiation of '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:326: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:292:48: error: unused parameter 'key' [-Werror=unused-parameter]
bool insert(const Iterator &it, const Key &key, const Value &value) {
^~~
cc1plus: all warnings being treated as errors