Borderou de evaluare (job #2561680)

Utilizator memecoinMeme Coin memecoin Data 29 februarie 2020 08:09:52
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:59:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c] == NULL) { ^ main.cpp:63:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c]->subTreeWordCount == 0) { ^ main.cpp:67: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:74:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k == s.size()) { ~~^~~~~~~~~~~ main.cpp:80:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c] == NULL) { ^ main.cpp:84: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:91:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k == s.size() || children[c] == NULL) { ~~^~~~~~~~~~~ main.cpp:91:40: warning: array subscript has type 'char' [-Wchar-subscripts] if (k == s.size() || children[c] == NULL) { ^ main.cpp:95:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c]->nrEnding == 0 && children[c]->subTreeWordCount == 0) { ^ main.cpp:95:53: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c]->nrEnding == 0 && children[c]->subTreeWordCount == 0) { ^ main.cpp:99: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
77ms262kbIncorect00
88ms131kbIncorect00
914ms524kbIncorect00
1020ms1441kbIncorect00
1123ms262kbIncorect00
1244ms2752kbIncorect00
1350ms2359kbIncorect00
1438ms655kbIncorect00
1557ms655kbIncorect00
16133ms20316kbIncorect0
1765ms262kbIncorect00
18119ms15204kbIncorect0
1967ms262kbIncorect00
20169ms25690kbIncorect0
Punctaj total5

Ceva nu functioneaza?