Record Detail

Compile Error

In file included from /in/driver/main.cpp:5:0:
/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:309:20: error: 'bucket' was not declared in this scope
             rehash(bucket.size*2); // Use the calculated bucket size to rehash
                    ^~~~~~
/in/hashtable.hpp:309:20: note: suggested alternative: 'buckets'
             rehash(bucket.size*2); // Use the calculated bucket size to rehash
                    ^~~~~~
                    buckets
/in/hashtable.hpp: In member function 'bool HashTable<Key, Value, Hash, KeyEqual>::insert(const Key&, const Value&)':
/in/hashtable.hpp:345:20: error: 'bucket' was not declared in this scope
             rehash(bucket.size*2);
                    ^~~~~~
/in/hashtable.hpp:345:20: note: suggested alternative: 'buckets'
             rehash(bucket.size*2);
                    ^~~~~~
                    buckets
/in/hashtable.hpp: In member function 'Value& HashTable<Key, Value, Hash, KeyEqual>::operator[](const Key&)':
/in/hashtable.hpp:447:20: error: 'bucket' was not declared in this scope
             rehash(bucket.size*2)
                    ^~~~~~
/in/hashtable.hpp:447:20: note: suggested alternative: 'buckets'
             rehash(bucket.size*2)
                    ^~~~~~
                    buckets
/in/hashtable.hpp:448:9: error: expected ';' before '}' token
         }
         ^

Information

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