Borderou de evaluare (job #3274788)

Utilizator cris71Vlad Bogdan Cristian cris71 Data 8 februarie 2025 11:10:00
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In member function 'void Trie::insertTrie(std::string, int)': main.cpp:16:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 16 | if(pos==S.size())///pune int | ~~~^~~~~~~~~~ main.cpp:22:21: warning: array subscript has type 'char' [-Wchar-subscripts] 22 | if(next[ch]==nullptr) | ^~ main.cpp:24:22: warning: array subscript has type 'char' [-Wchar-subscripts] 24 | next[ch]=new Trie; | ^~ main.cpp:26:18: warning: array subscript has type 'char' [-Wchar-subscripts] 26 | next[ch]->insertTrie(S,pos+1); | ^~ main.cpp: In member function 'void Trie::deleteTrie(std::string, int)': main.cpp:32:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 32 | if(pos==S.size()) | ~~~^~~~~~~~~~ main.cpp:39:18: warning: array subscript has type 'char' [-Wchar-subscripts] 39 | next[ch]->deleteTrie(S,pos+1); | ^~ main.cpp:40:21: warning: array subscript has type 'char' [-Wchar-subscripts] 40 | if(next[ch]->leaves==0)///pot sterge toata ramura adica | ^~ main.cpp:42:22: warning: array subscript has type 'char' [-Wchar-subscripts] 42 | next[ch]=nullptr; | ^~ main.cpp:43:29: warning: array subscript has type 'char' [-Wchar-subscripts] 43 | delete next[ch]; | ^~ main.cpp: In member function 'int Trie::countTrie(std::string, int)': main.cpp:49:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 49 | if(pos==S.size()) | ~~~^~~~~~~~~~ main.cpp:56:21: warning: array subscript has type 'char' [-Wchar-subscripts] 56 | if(next[ch]==nullptr) | ^~ main.cpp:60:25: warning: array subscript has type 'char' [-Wchar-subscripts] 60 | return next[ch]->countTrie(S,pos+1); | ^~ main.cpp: In member function 'int Trie::lcpTrie(std::string, int)': main.cpp:65:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 65 | if(pos==S.size()) | ~~~^~~~~~~~~~ main.cpp:72:21: warning: array subscript has type 'char' [-Wchar-subscripts] 72 | if(next[ch]==nullptr) | ^~ main.cpp:76:27: warning: array subscript has type 'char' [-Wchar-subscripts] 76 | return 1+next[ch]->lcpTrie(S,pos+1); | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbOK55
20ms303kbOK55
30ms303kbOK55
40ms303kbOK55
50ms303kbOK55
61ms303kbOK55
71ms303kbOK55
82ms303kbOK55
93ms557kbOK55
104ms1605kbOK55
113ms303kbOK55
129ms3039kbOK55
139ms2654kbOK55
149ms983kbOK55
159ms819kbOK510
1634ms21790kbOK5
1723ms15249kbOK510
1838ms16637kbOK5
1913ms524kbOK510
2048ms27820kbOK5
Punctaj total100

Ceva nu functioneaza?