Record Detail

Compile Error

In file included from /in/driver/main.cpp:5:0:
/in/hashtable.hpp:422:5: error: 'buckets' does not name a type
     buckets.swap(Gigantic);
     ^~~~~~~
/in/hashtable.hpp:423:5: error: 'tableSize' does not name a type
     tableSize = sucksize;
     ^~~~~~~~~
/in/hashtable.hpp:426:5: error: 'firstBucketIt' does not name a type
     firstBucketIt = std::find_if(buckets.begin(), buckets.end(), [](const auto& bucket) {
     ^~~~~~~~~~~~~
/in/hashtable.hpp:428:6: error: expected unqualified-id before ')' token
     });       
      ^
/in/hashtable.hpp:434:5: error: expected ';' before 'size_t'
     size_t size() const { return tableSize; }
     ^~~~~~
/in/hashtable.hpp:439:25: error: non-member function 'size_t bucketSize()' cannot have cv-qualifier
     size_t bucketSize() const { return buckets.size(); }
                         ^~~~~
/in/hashtable.hpp: In function 'size_t bucketSize()':
/in/hashtable.hpp:439:40: error: 'buckets' was not declared in this scope
     size_t bucketSize() const { return buckets.size(); }
                                        ^~~~~~~
/in/hashtable.hpp:439:40: note: suggested alternative: 'bucketSize'
     size_t bucketSize() const { return buckets.size(); }
                                        ^~~~~~~
                                        bucketSize
/in/hashtable.hpp: At global scope:
/in/hashtable.hpp:444:25: error: non-member function 'double loadFactor()' cannot have cv-qualifier
     double loadFactor() const { return (double) tableSize / (double) buckets.size(); }
                         ^~~~~
/in/hashtable.hpp: In function 'double loadFactor()':
/in/hashtable.hpp:444:49: error: 'tableSize' was not declared in this scope
     double loadFactor() const { return (double) tableSize / (double) buckets.size(); }
                                                 ^~~~~~~~~
/in/hashtable.hpp:444:49: note: suggested alternative: 'bucketSize'
     double loadFactor() const { return (double) tableSize / (double) buckets.size(); }
                                                 ^~~~~~~~~
                                                 bucketSize
/in/hashtable.hpp:444:70: error: 'buckets' was not declared in this scope
     double loadFactor() const { return (double) tableSize / (double) buckets.size(); }
                                                                      ^~~~~~~
/in/hashtable.hpp:444:70: note: suggested alternative: 'bucketSize'
     double loadFactor() const { return (double) tableSize / (double) buckets.size(); }
                                                                      ^~~~~~~
                                                                      bucketSize
/in/hashtable.hpp: At global scope:
/in/hashtable.hpp:449:31: error: non-member function 'double getMaxLoadFactor()' cannot have cv-qualifier
     double getMaxLoadFactor() const { return maxLoadFactor; }
                               ^~~~~
/in/hashtable.hpp: In function 'double getMaxLoadFactor()':
/in/hashtable.hpp:449:46: error: 'maxLoadFactor' was not declared in this scope
     double getMaxLoadFactor() const { return maxLoadFactor; }
                                              ^~~~~~~~~~~~~
/in/hashtable.hpp:449:46: note: suggested alternative: 'getMaxLoadFactor'
     double getMaxLoadFactor() const { return maxLoadFactor; }
                                              ^~~~~~~~~~~~~
                                              getMaxLoadFactor
/in/hashtable.hpp: In function 'void setMaxLoadFactor(double)':
/in/hashtable.hpp:460:9: error: 'maxLoadFactor' was not declared in this scope
         maxLoadFactor = loadFactor;
         ^~~~~~~~~~~~~
/in/hashtable.hpp:460:9: note: suggested alternative: 'loadFactor'
         maxLoadFactor = loadFactor;
         ^~~~~~~~~~~~~
         loadFactor
/in/hashtable.hpp:461:16: error: 'buckets' was not declared in this scope
         rehash(buckets.size());
                ^~~~~~~
/in/hashtable.hpp:461:16: note: suggested alternative: 'bucketSize'
         rehash(buckets.size());
                ^~~~~~~
                bucketSize
/in/hashtable.hpp:461:9: error: 'rehash' was not declared in this scope
         rehash(buckets.size());
         ^~~~~~
/in/hashtable.hpp:461:9: note: suggested alternative: 'rename'
         rehash(buckets.size());
         ^~~~~~
         rename
/in/hashtable.hpp: At global scope:
/in/hashtable.hpp:464:1: error: expected declaration before '}' token
 };
 ^

Information

Submit By
Type
Submission
Homework
Project 2: Hashing
Language
C++
Submit At
2024-11-11 14:55:45
Judged At
2024-11-11 14:55:45
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes