Borderou de evaluare (job #2561682)

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

Raport evaluator

Compilare: main.cpp: In member function 'void Trie::insert(std::__cxx11::string&, int)': main.cpp:39:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k >= s.size()) { ~~^~~~~~~~~~~ main.cpp:46:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c] == NULL) { ^ main.cpp:47:23: warning: array subscript has type 'char' [-Wchar-subscripts] children[c] = new Trie(); ^ main.cpp:51: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:55:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k >= s.size()) { ~~^~~~~~~~~~~ main.cpp:63:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c] == NULL) { ^ main.cpp:67:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c]->isEmptyNode()) { ^ main.cpp:71: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:78:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k == s.size()) { ~~^~~~~~~~~~~ main.cpp:84:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c] == NULL) { ^ main.cpp:88: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:95:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k == s.size() || children[c] == NULL) { ~~^~~~~~~~~~~ main.cpp:95:40: warning: array subscript has type 'char' [-Wchar-subscripts] if (k == s.size() || children[c] == NULL) { ^ main.cpp:99:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c]->isEmptyNode()) { ^ main.cpp:103:26: warning: array subscript has type 'char' [-Wchar-subscripts] return children[c]->longestPrefix(s, k + 1); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK55
22ms131kbOK55
33ms131kbOK55
43ms131kbOK55
53ms131kbOK55
64ms131kbOK55
76ms262kbOK55
88ms262kbOK55
914ms524kbOK55
1020ms1441kbOK55
1123ms262kbOK55
1243ms2752kbOK55
1351ms2359kbOK55
1448ms655kbOK55
1557ms655kbOK510
16144ms20316kbOK5
1768ms262kbOK510
18140ms15204kbOK5
1966ms262kbOK510
20154ms25690kbOK5
Punctaj total100

Ceva nu functioneaza?