Pagini recente » Borderou de evaluare (job #568564) | Borderou de evaluare (job #939597) | Borderou de evaluare (job #2343720) | Borderou de evaluare (job #1844117) | Borderou de evaluare (job #2561682)
Borderou de evaluare (job #2561682)
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 |
1 | 2ms | 131kb | OK | 5 | 5 |
2 | 2ms | 131kb | OK | 5 | 5 |
3 | 3ms | 131kb | OK | 5 | 5 |
4 | 3ms | 131kb | OK | 5 | 5 |
5 | 3ms | 131kb | OK | 5 | 5 |
6 | 4ms | 131kb | OK | 5 | 5 |
7 | 6ms | 262kb | OK | 5 | 5 |
8 | 8ms | 262kb | OK | 5 | 5 |
9 | 14ms | 524kb | OK | 5 | 5 |
10 | 20ms | 1441kb | OK | 5 | 5 |
11 | 23ms | 262kb | OK | 5 | 5 |
12 | 43ms | 2752kb | OK | 5 | 5 |
13 | 51ms | 2359kb | OK | 5 | 5 |
14 | 48ms | 655kb | OK | 5 | 5 |
15 | 57ms | 655kb | OK | 5 | 10 |
16 | 144ms | 20316kb | OK | 5 |
17 | 68ms | 262kb | OK | 5 | 10 |
18 | 140ms | 15204kb | OK | 5 |
19 | 66ms | 262kb | OK | 5 | 10 |
20 | 154ms | 25690kb | OK | 5 |
Punctaj total | 100 |