Borderou de evaluare (job #1211983)
Utilizator | Data | 23 iulie 2014 16:44:33 | |
---|---|---|---|
Problema | Trie | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘TrieNode* insert(TrieNode*, std::string, int)’:
user.cpp:30:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (l == w.length())
^
user.cpp: In function ‘TrieNode* remove(TrieNode*, std::string, int)’:
user.cpp:56:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (l < w.length())
^
user.cpp:66:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (l == w.length())
^
user.cpp: In function ‘int get_number_of_occurences(std::string)’:
user.cpp:90:5: error: expected ‘,’ or ‘;’ before ‘while’
while (node != NULL)
^
user.cpp:87:15: warning: unused variable ‘node’ [-Wunused-variable]
TrieNode* node = root;
^
user.cpp:88:9: warning: unused variable ‘l’ [-Wunused-variable]
int l = 0
^
user.cpp: In function ‘int get_longest_prefix_length(std::string)’:
user.cpp:106:5: error: expected ‘,’ or ‘;’ before ‘while’
while (node != NULL)
^
user.cpp:103:15: warning: unused variable ‘node’ [-Wunused-variable]
TrieNode* node = root;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !