Borderou de evaluare (job #2761346)
Utilizator | Data | 1 iulie 2021 18:43:25 | |
---|---|---|---|
Problema | Trie | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void AddTrie(Trie**, char*)':
main.cpp:31:21: warning: array subscript has type 'char' [-Wchar-subscripts]
if(!p->poz[c]) ///nod inca inexistent, se creaza si acesta
^
main.cpp:32:21: warning: array subscript has type 'char' [-Wchar-subscripts]
p->poz[c] = 1;
^
main.cpp:31:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(!p->poz[c]) ///nod inca inexistent, se creaza si acesta
^~
main.cpp:33:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
p->next[c] = CreateNod();
^
main.cpp:33:22: warning: array subscript has type 'char' [-Wchar-subscripts]
p->next[c] = CreateNod();
^
main.cpp:36:29: warning: array subscript has type 'char' [-Wchar-subscripts]
last = p = p->next[c];
^
main.cpp:26:9: warning: unused variable 'lengh' [-Wunused-variable]
int lengh = strlen(cuv) - 1;
^~~~~
main.cpp:28:11: warning: variable 'last' set but not used [-Wunused-but-set-variable]
Trie *last, *p = *root;
^~~~
main.cpp: At global scope:
main.cpp:38:5: error: expected unqualified-id before '++' token
++(last->endw);
^~
main.cpp:39:1: error: expected declaration before '}' token
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !