Borderou de evaluare (job #2561676)

Utilizator memecoinMeme Coin memecoin Data 29 februarie 2020 07:54:33
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 55

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: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:69:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k == s.size()) { ~~^~~~~~~~~~~ main.cpp:75:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c] == NULL) { ^ main.cpp:79: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:86:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k == s.size() || children[c] == NULL) { ~~^~~~~~~~~~~ main.cpp:86:40: warning: array subscript has type 'char' [-Wchar-subscripts] if (k == s.size() || children[c] == NULL) { ^ main.cpp:90:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c]->nrEnding == 0 && children[c]->subTreeWordCount == 0) { ^ main.cpp:90:53: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c]->nrEnding == 0 && children[c]->subTreeWordCount == 0) { ^ main.cpp:94: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
914ms524kbIncorect00
1021ms1441kbOK55
1123ms262kbOK55
1243ms2752kbIncorect00
1349ms2359kbIncorect00
1447ms655kbOK55
1557ms655kbOK50
16146ms20316kbIncorect0
1764ms262kbIncorect00
18140ms15204kbIncorect0
1967ms262kbOK50
20159ms25690kbIncorect0
Punctaj total55

Ceva nu functioneaza?