Borderou de evaluare (job #1986985)
Utilizator | Data | 29 mai 2017 16:23:03 | |
---|---|---|---|
Problema | Trie | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:17:12: error: size of array ‘T’ is too large
node T[NMax];
^
user.cpp: In function ‘void insert_word(std::string)’:
user.cpp:22:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < str.size(); ++i){
^
user.cpp:23:20: error: ‘T’ was not declared in this scope
int next = T[node].sons[str[i] - 'a'];
^
user.cpp:30:5: error: ‘T’ was not declared in this scope
T[node].words++;
^
user.cpp: In function ‘void delete_word(std::string)’:
user.cpp:34:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < str.size(); ++i){
^
user.cpp:35:20: error: ‘T’ was not declared in this scope
int next = T[node].sons[str[i] - 'a'];
^
user.cpp:39:5: error: ‘T’ was not declared in this scope
T[node].words--;
^
user.cpp: In function ‘int words_query(std::string)’:
user.cpp:43:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < str.size(); ++i){
^
user.cpp:44:20: error: ‘T’ was not declared in this scope
int next = T[node].sons[str[i] - 'a'];
^
user.cpp:49:12: error: ‘T’ was not declared in this scope
return T[node].words;
^
user.cpp: In function ‘int pre_query(std::string)’:
user.cpp:53:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < str.size(); ++i){
^
user.cpp:54:20: error: ‘T’ was not declared in this scope
int next = T[node].sons[str[i] - 'a'];
^
user.cpp: In function ‘int words_query(std::string)’:
user.cpp:50:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !