Borderou de evaluare (job #2561678)

Utilizator memecoinMeme Coin memecoin Data 29 februarie 2020 08:05:02
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: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:62:23: warning: array subscript has type 'char' [-Wchar-subscripts] if (children[c] == NULL) { ^ 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] return children[c]->longestPrefix(s, k + 1); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK55
22ms131kbOK55
33ms131kbOK55
43ms131kbOK55
53ms131kbOK55
64ms131kbOK55
77ms262kbOK55
88ms131kbOK55
913ms524kbIncorect00
1021ms1441kbOK55
1123ms262kbOK55
1243ms2752kbIncorect00
1350ms2359kbIncorect00
1448ms655kbOK55
1557ms655kbOK50
16151ms20316kbIncorect0
1770ms262kbIncorect00
18128ms15335kbIncorect0
1967ms262kbOK50
20177ms25690kbIncorect0
Punctaj total55

Ceva nu functioneaza?