Borderou de evaluare (job #2628157)
Utilizator | Data | 14 iunie 2020 18:12:40 | |
---|---|---|---|
Problema | Trie | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void ins(Trie*, int)':
main.cpp:16:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pos == s.size()) {
~~~~^~~~~~~~~~~
main.cpp: In function 'int del(Trie*, int)':
main.cpp:27:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pos == s.size()) {
~~~~^~~~~~~~~~~
main.cpp: In function 'int ans(Trie*, int)':
main.cpp:43:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pos == s.size()) {
~~~~^~~~~~~~~~~
main.cpp: In function 'int del(Trie*, int)':
main.cpp:51:5: error: redefinition of 'int del(Trie*, int)'
int del(Trie *nod, int pos) {
^~~
main.cpp:26:5: note: 'int del(Trie*, int)' previously defined here
int del(Trie *nod, int pos) {
^~~
main.cpp:52:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pos == s.size()) {
~~~~^~~~~~~~~~~
main.cpp:59:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'int pref(Trie*, int, int)':
main.cpp:61:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pos == s.size() || nod -> fiu[s[pos] - 'a'] == 0) {
~~~~^~~~~~~~~~~
main.cpp: In function 'int del(Trie*, int)':
main.cpp:41:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !