Borderou de evaluare (job #2561679)

Utilizator memecoinMeme Coin memecoin Data 29 februarie 2020 08:08:59
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 5

Raport evaluator

Compilare: main.cpp: In member function 'void Trie::insert(std::__cxx11::string&, int)': main.cpp:35:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k >= s.size()) { ~~^~~~~~~~~~~ main.cpp:42:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c] == NULL) { ^ main.cpp:43:23: warning: array subscript has type 'char' [-Wchar-subscripts] children[c] = new Trie(); ^ main.cpp:47:19: warning: array subscript has type 'char' [-Wchar-subscripts] children[c]->insert(s, k + 1); ^ main.cpp: In member function 'void Trie::remove(std::__cxx11::string&, int, bool&)': main.cpp:51:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k >= s.size()) { ~~^~~~~~~~~~~ main.cpp:58:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c] == NULL) { ^ main.cpp:62:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c]->subTreeWordCount == 0) { ^ main.cpp:66:19: warning: array subscript has type 'char' [-Wchar-subscripts] children[c]->remove(s, k + 1, didRemove); ^ main.cpp: In member function 'int Trie::count(std::__cxx11::string&, int)': main.cpp:73:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k == s.size()) { ~~^~~~~~~~~~~ main.cpp:79:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c] == NULL) { ^ main.cpp:83:26: warning: array subscript has type 'char' [-Wchar-subscripts] return children[c]->count(s, k + 1); ^ main.cpp: In member function 'int Trie::longestPrefix(std::__cxx11::string&, int)': main.cpp:90:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k == s.size() || children[c] == NULL) { ~~^~~~~~~~~~~ main.cpp:90:40: warning: array subscript has type 'char' [-Wchar-subscripts] if (k == s.size() || children[c] == NULL) { ^ main.cpp:94:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c]->nrEnding == 0 && children[c]->subTreeWordCount == 0) { ^ main.cpp:94:53: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c]->nrEnding == 0 && children[c]->subTreeWordCount == 0) { ^ main.cpp:98:26: warning: array subscript has type 'char' [-Wchar-subscripts]
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK55
22ms131kbIncorect00
33ms131kbIncorect00
43ms131kbIncorect00
53ms131kbIncorect00
64ms131kbIncorect00
76ms262kbIncorect00
88ms131kbIncorect00
914ms524kbIncorect00
1021ms1441kbIncorect00
1124ms262kbIncorect00
1244ms2752kbIncorect00
1347ms2359kbIncorect00
1438ms655kbIncorect00
1552ms655kbIncorect00
16134ms20316kbIncorect0
1752ms262kbIncorect00
18119ms15204kbIncorect0
1953ms262kbIncorect00
20169ms25690kbIncorect0
Punctaj total5

Ceva nu functioneaza?