Record Detail

Compile Error

In file included from /in/driver/main.cpp:5:0:
/in/hashtable.hpp: In instantiation of 'HashTable<Key, Value, Hash, KeyEqual>::Iterator HashTable<Key, Value, Hash, KeyEqual>::find(const Key&) [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>]':
/in/driver/main.cpp:101:34:   required from here
/in/hashtable.hpp:319:23: error: base operand of '->' has non-pointer type 'std::forward_list<std::pair<const int, int>, std::allocator<std::pair<const int, int> > >'
         auto listIt = List->begin();
                       ^~~~
/in/hashtable.hpp:320:26: error: base operand of '->' has non-pointer type 'std::forward_list<std::pair<const int, int>, std::allocator<std::pair<const int, int> > >'
         while (listIt != List->end())
                          ^~~~

Information

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