Record Detail

Compile Error

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:132:108: error: expected '(' before 'maxLoadFactor'
         size_t targetBucketSize = static_cast<size_t>(tableSize) / static_cast<size_t>((static_cast<double>maxLoadFactor));
                                                                                                            ^~~~~~~~~~~~~
/in/hashtable.hpp:132:123: error: expected ')' before ';' token
         size_t targetBucketSize = static_cast<size_t>(tableSize) / static_cast<size_t>((static_cast<double>maxLoadFactor));
                                                                                                                           ^

Information

Submit By
Type
Submission
Homework
Project 2: Hashing
Language
C++
Submit At
2024-11-13 22:06:16
Judged At
2024-11-13 22:06:16
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes