In file included from /in/driver/main.cpp:5:0:
/in/hashtable.hpp:419:5: error: expected unqualified-id before 'this'
this->buckets.resize(bucketSize);
^~~~
/in/hashtable.hpp:422:5: error: expected unqualified-id before 'for'
for (auto _bucket_it = this->buckets.begin(); _bucket_it != this->buckets.end(); ++_bucket_it) {
^~~
/in/hashtable.hpp:422:51: error: '_bucket_it' does not name a type; did you mean 'cpu_set_t'?
for (auto _bucket_it = this->buckets.begin(); _bucket_it != this->buckets.end(); ++_bucket_it) {
^~~~~~~~~~
cpu_set_t
/in/hashtable.hpp:422:86: error: expected unqualified-id before '++' token
for (auto _bucket_it = this->buckets.begin(); _bucket_it != this->buckets.end(); ++_bucket_it) {
^~
/in/hashtable.hpp:448:5: error: non-static data member declared with placeholder 'auto'
auto newfirstBucketIt = this->buckets.begin();
^~~~
/in/hashtable.hpp:449:5: error: expected unqualified-id before 'while'
while (newfirstBucketIt != this->buckets.end() && newfirstBucketIt->empty()) {
^~~~~
/in/hashtable.hpp:452:5: error: expected unqualified-id before 'this'
this->firstBucketIt = newfirstBucketIt;
^~~~
/in/hashtable.hpp: In member function 'size_t HashTable<Key, Value, Hash, KeyEqual>::bigbucketsize(size_t) const':
/in/hashtable.hpp:182:34: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive]
size_t n= size_t((double)size()/getMaxLoadFactor())+1;
^~~~
/in/hashtable.hpp:182:34: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/in/hashtable.hpp:182:41: error: there are no arguments to 'getMaxLoadFactor' that depend on a template parameter, so a declaration of 'getMaxLoadFactor' must be available [-fpermissive]
size_t n= size_t((double)size()/getMaxLoadFactor())+1;
^~~~~~~~~~~~~~~~
/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:311:16: error: there are no arguments to 'loadFactor' that depend on a template parameter, so a declaration of 'loadFactor' must be available [-fpermissive]
if(loadFactor()>getMaxLoadFactor()){
^~~~~~~~~~
/in/hashtable.hpp:311:29: error: there are no arguments to 'getMaxLoadFactor' that depend on a template parameter, so a declaration of 'getMaxLoadFactor' must be available [-fpermissive]
if(loadFactor()>getMaxLoadFactor()){
^~~~~~~~~~~~~~~~
/in/hashtable.hpp:312:24: error: there are no arguments to 'bucketSize' that depend on a template parameter, so a declaration of 'bucketSize' must be available [-fpermissive]
rehash(bucketSize());
^~~~~~~~~~
/in/hashtable.hpp: At global scope:
/in/hashtable.hpp:464:5: error: expected ';' before 'size_t'
size_t size() const { return tableSize; }
^~~~~~
/in/hashtable.hpp:469: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:469:40: error: 'buckets' was not declared in this scope
size_t bucketSize() const { return buckets.size(); }
^~~~~~~
/in/hashtable.hpp:469:40: note: suggested alternative: 'bucketSize'
size_t bucketSize() const { return buckets.size(); }
^~~~~~~
bucketSize
/in/hashtable.hpp: At global scope:
/in/hashtable.hpp:474: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:474:49: error: 'tableSize' was not declared in this scope
double loadFactor() const { return (double) tableSize / (double) buckets.size(); }
^~~~~~~~~
/in/hashtable.hpp:474:49: note: suggested alternative: 'bucketSize'
double loadFactor() const { return (double) tableSize / (double) buckets.size(); }
^~~~~~~~~
bucketSize
/in/hashtable.hpp:474:70: error: 'buckets' was not declared in this scope
double loadFactor() const { return (double) tableSize / (double) buckets.size(); }
^~~~~~~
/in/hashtable.hpp:474:70: note: suggested alternative: 'bucketSize'
double loadFactor() const { return (double) tableSize / (double) buckets.size(); }
^~~~~~~
bucketSize
/in/hashtable.hpp: At global scope:
/in/hashtable.hpp:479: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:479:46: error: 'maxLoadFactor' was not declared in this scope
double getMaxLoadFactor() const { return maxLoadFactor; }
^~~~~~~~~~~~~
/in/hashtable.hpp:479:46: note: suggested alternative: 'getMaxLoadFactor'
double getMaxLoadFactor() const { return maxLoadFactor; }
^~~~~~~~~~~~~
getMaxLoadFactor
/in/hashtable.hpp: In function 'void setMaxLoadFactor(double)':
/in/hashtable.hpp:490:9: error: 'maxLoadFactor' was not declared in this scope
maxLoadFactor = loadFactor;
^~~~~~~~~~~~~
/in/hashtable.hpp:490:9: note: suggested alternative: 'loadFactor'
maxLoadFactor = loadFactor;
^~~~~~~~~~~~~
loadFactor
/in/hashtable.hpp:491:16: error: 'buckets' was not declared in this scope
rehash(buckets.size());
^~~~~~~
/in/hashtable.hpp:491:16: note: suggested alternative: 'bucketSize'
rehash(buckets.size());
^~~~~~~
bucketSize
/in/hashtable.hpp:491:9: error: 'rehash' was not declared in this scope
rehash(buckets.size());
^~~~~~
/in/hashtable.hpp:491:9: note: suggested alternative: 'rename'
rehash(buckets.size());
^~~~~~
rename
/in/hashtable.hpp: At global scope:
/in/hashtable.hpp:494:1: error: expected declaration before '}' token
};
^