Borderou de evaluare (job #1237026)
| Utilizator | Data | 2 octombrie 2014 23:45:34 | |
|---|---|---|---|
| Problema | Trie | Status | done |
| Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In member function ‘void Trie::updateCount(const string&, const int&)’:
user.cpp:31:22: error: ‘val’ was not declared in this scope
node->wordCount += val;
^
user.cpp: In member function ‘void Trie::insert(const string&)’:
user.cpp:42:25: error: no matching function for call to ‘Trie::updateCount(const string&, int, int)’
updateCount(str, 2, 1);
^
user.cpp:42:25: note: candidate is:
user.cpp:21:7: note: void Trie::updateCount(const string&, const int&)
void updateCount(const string& str, const int& value) {
^
user.cpp:21:7: note: candidate expects 2 arguments, 3 provided
user.cpp: In member function ‘void Trie::remove(const string&)’:
user.cpp:46:26: error: no matching function for call to ‘Trie::updateCount(const string&, int, int)’
updateCount(str, 2, -1);
^
user.cpp:46:26: note: candidate is:
user.cpp:21:7: note: void Trie::updateCount(const string&, const int&)
void updateCount(const string& str, const int& value) {
^
user.cpp:21:7: note: candidate expects 2 arguments, 3 provided
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
