Record Detail

Compile Error

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:284:46: error: 'bucketIndex' was not declared in this scope
         Iterator res(this, buckets.begin() + bucketIndex, (buckets.begin() + bucketIndex)->before_begin());
                                              ^~~~~~~~~~~
/in/hashtable.hpp:284:46: note: suggested alternative: 'bucketSize'
         Iterator res(this, buckets.begin() + bucketIndex, (buckets.begin() + bucketIndex)->before_begin());
                                              ^~~~~~~~~~~
                                              bucketSize

Information

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