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:178:56: error: 'ceil' is not a member of 'std'
         size_t requiredSize = static_cast<size_t>(std::ceil(static_cast<double>(size()) / getMaxLoadFactor()));
                                                        ^~~~
/in/hashtable.hpp:178:56: note: suggested alternative: 'cerr'
         size_t requiredSize = static_cast<size_t>(std::ceil(static_cast<double>(size()) / getMaxLoadFactor()));
                                                        ^~~~
                                                        cerr

Information

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