Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
Dictionary (Initialize Array)Error(s): source_file.cpp: In constructor ‘Dictionary::Dictionary()’: source_file.cpp:39:20: error: no match for ‘operator=’ (operand types are ‘Entry’ and ‘Entry*’) arr[i] = p; ^ source_file.cpp:6:7: note: candidate: Entry& Entry::operator=(const Entry&) class Entry ^ source_file.cpp:6:7: note: no known conversion for argument 1 from ‘Entry*’ to ‘const Entry&’ source_file.cpp: In member function ‘void Dictionary::add(int, std::__cxx11::string)’: source_file.cpp:49:24: error: no match for ‘operator==’ (operand types are ‘Entry’ and ‘std::nullptr_t’) if (arr[i] == nullptr) { ^ source_file.cpp: In member function ‘void Dictionary::remove(int)’: source_file.cpp:62:28: error: no match for ‘operator=’ (operand types are ‘Entry’ and ‘std::nullptr_t’) arr[i] = nullptr; ^ source_file.cpp:6:7: note: candidate: Entry& Entry::operator=(const Entry&) class Entry ^ source_file.cpp:6:7: note: no known conversion for argument 1 from ‘std::nullptr_t’ to ‘const Entry&’ source_file.cpp: In member function ‘Entry Dictionary::getEntry(int)’: source_file.cpp:82:16: error: could not convert ‘nullptr’ from ‘std::nullptr_t’ to ‘Entry’ return nullptr; ^ |
λ
.NET NoSQL database for rapid development
|