Borderou de evaluare (job #1831831)
| Utilizator | Data | 18 decembrie 2016 20:31:49 | |
|---|---|---|---|
| Problema | Trie | Status | done |
| Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In member function ‘int Trie::countAparitions(std::string)’:
user.cpp:52:18: warning: statement has no effect [-Wunused-value]
for (left; left != right; left++) {
^
user.cpp: In member function ‘void Trie::insertWord(std::string)’:
user.cpp:72:18: warning: statement has no effect [-Wunused-value]
for (left; left != right; left++) {
^
user.cpp: In member function ‘void Trie::deleteWord(std::string)’:
user.cpp:92:18: warning: statement has no effect [-Wunused-value]
for (left; left != right; left++) {
^
user.cpp: In member function ‘int Trie::getLongestPrefix(std::string)’:
user.cpp:116:19: warning: statement has no effect [-Wunused-value]
for (left; left != right; left++) {
^
user.cpp: In function ‘int main()’:
user.cpp:150:24: error: request for member ‘insertWord’ in ‘myTrie’, which is of pointer type ‘Trie*’ (maybe you meant to use ‘->’ ?)
myTrie.insertWord(S);
^
user.cpp:154:24: error: request for member ‘deleteWord’ in ‘myTrie’, which is of pointer type ‘Trie*’ (maybe you meant to use ‘->’ ?)
myTrie.deleteWord(S);
^
user.cpp:158:32: error: request for member ‘countAparitions’ in ‘myTrie’, which is of pointer type ‘Trie*’ (maybe you meant to use ‘->’ ?)
fout << myTrie.countAparitions(S) << "\n";
^
user.cpp:162:32: error: request for member ‘getLongestPrefix’ in ‘myTrie’, which is of pointer type ‘Trie*’ (maybe you meant to use ‘->’ ?)
fout << myTrie.getLongestPrefix(S) << "\n";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
