Record Detail

Compile Error

In file included from /in/driver/main.cpp:5:0:
/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:352: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:371: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:460:25: error: no matching function for call to 'HashTable<int, int, std::hash<int>, std::equal_to<int> >::setMaxLoadFactor()'
         setMaxLoadFactor();
         ~~~~~~~~~~~~~~~~^~
/in/hashtable.hpp:497:10: note: candidate: void HashTable<Key, Value, Hash, KeyEqual>::setMaxLoadFactor(double) [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>]
     void setMaxLoadFactor(double loadFactor) {
          ^~~~~~~~~~~~~~~~
/in/hashtable.hpp:497:10: note:   candidate expects 1 argument, 0 provided

Information

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