Borderou de evaluare (job #2952728)

Utilizator ezluciPirtac Eduard ezluci Data 9 decembrie 2022 20:29:07
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 55

Raport evaluator

Compilare: main.cpp: In function 'void addWord(Trie*, int, std::string&)': main.cpp:43:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 43 | if (pos == s.size()) | ~~~~^~~~~~~~~~~ main.cpp:47:17: warning: array subscript has type 'char' [-Wchar-subscripts] 47 | if (nod->fii[lit] == nullptr) | ^~~ main.cpp:48:16: warning: array subscript has type 'char' [-Wchar-subscripts] 48 | nod->fii[lit] = new Trie; | ^~~ main.cpp:50:21: warning: array subscript has type 'char' [-Wchar-subscripts] 50 | addWord(nod->fii[lit], pos+1, s); | ^~~ main.cpp: In function 'bool delWord(Trie*, int, std::string&)': main.cpp:56:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 56 | if (pos == s.size()) | ~~~~^~~~~~~~~~~ main.cpp:68:25: warning: array subscript has type 'char' [-Wchar-subscripts] 68 | if (delWord(nod->fii[lit], pos+1, s)) | ^~~ main.cpp:70:16: warning: array subscript has type 'char' [-Wchar-subscripts] 70 | nod->fii[lit] = nullptr; | ^~~ main.cpp: In function 'int nrApWord(Trie*, int, std::string&)': main.cpp:83:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 83 | if (pos == s.size()) | ~~~~^~~~~~~~~~~ main.cpp:87:17: warning: array subscript has type 'char' [-Wchar-subscripts] 87 | if (nod->fii[lit]) | ^~~ main.cpp:88:32: warning: array subscript has type 'char' [-Wchar-subscripts] 88 | return nrApWord(nod->fii[lit], pos+1, s); | ^~~ main.cpp: In function 'int lcpWord(Trie*, int, std::string&)': main.cpp:95:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 95 | if (pos == s.size()) | ~~~~^~~~~~~~~~~ main.cpp:99:17: warning: array subscript has type 'char' [-Wchar-subscripts] 99 | if (nod->fii[lit]) | ^~~ main.cpp:100:31: warning: array subscript has type 'char' [-Wchar-subscripts] 100 | return lcpWord(nod->fii[lit], pos+1, s); | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms184kbOK55
20ms184kbOK55
30ms184kbOK55
40ms184kbOK55
50ms184kbOK55
60ms184kbOK55
70ms184kbOK55
80ms184kbOK55
90ms184kbKilled by Signal 1100
102ms1495kbOK55
112ms315kbOK55
128ms2805kbKilled by Signal 1100
138ms2412kbKilled by Signal 1100
1414ms819kbOK55
1512ms757kbOK50
1641ms19062kbKilled by Signal 110
177ms344kbKilled by Signal 1100
1835ms13897kbKilled by Signal 110
1920ms380kbOK50
2070ms25591kbKilled by Signal 110
Punctaj total55

Ceva nu functioneaza?