Borderou de evaluare (job #2952722)

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

Raport evaluator

Compilare: main.cpp: In function 'void addWord(Trie*, int, std::string&)': main.cpp:42:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 42 | if (pos == s.size()) | ~~~~^~~~~~~~~~~ main.cpp:46:17: warning: array subscript has type 'char' [-Wchar-subscripts] 46 | if (nod->fii[lit] == nullptr) | ^~~ main.cpp:47:16: warning: array subscript has type 'char' [-Wchar-subscripts] 47 | nod->fii[lit] = new Trie; | ^~~ main.cpp:49:21: warning: array subscript has type 'char' [-Wchar-subscripts] 49 | addWord(nod->fii[lit], pos+1, s); | ^~~ main.cpp: In function 'bool delWord(Trie*, int, std::string&)': main.cpp:55:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 55 | if (pos == s.size()) | ~~~~^~~~~~~~~~~ main.cpp:67:25: warning: array subscript has type 'char' [-Wchar-subscripts] 67 | if (delWord(nod->fii[lit], pos+1, s)) | ^~~ main.cpp:69:16: warning: array subscript has type 'char' [-Wchar-subscripts] 69 | nod->fii[lit] = nullptr; | ^~~ main.cpp: In function 'int nrApWord(Trie*, int, std::string&)': main.cpp:82:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 82 | if (pos == s.size()) | ~~~~^~~~~~~~~~~ main.cpp:86:17: warning: array subscript has type 'char' [-Wchar-subscripts] 86 | if (nod->fii[lit] != nullptr) | ^~~ main.cpp:87:32: warning: array subscript has type 'char' [-Wchar-subscripts] 87 | return nrApWord(nod->fii[lit], pos+1, s); | ^~~ main.cpp: In function 'int lcpWord(Trie*, int, std::string&)': main.cpp:94:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 94 | if (pos == s.size()) | ~~~~^~~~~~~~~~~ main.cpp:98:17: warning: array subscript has type 'char' [-Wchar-subscripts] 98 | if (nod->fii[lit] != nullptr) | ^~~ main.cpp:99:31: warning: array subscript has type 'char' [-Wchar-subscripts] 99 | return lcpWord(nod->fii[lit], pos+1, s); | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms184kbOK55
20ms184kbIncorect00
30ms184kbIncorect00
40ms184kbIncorect00
50ms184kbIncorect00
60ms184kbIncorect00
70ms184kbIncorect00
80ms184kbIncorect00
90ms184kbKilled by Signal 1100
104ms1495kbIncorect00
113ms315kbIncorect00
1210ms2777kbKilled by Signal 1100
137ms2412kbKilled by Signal 1100
1414ms811kbIncorect00
1520ms774kbIncorect00
1642ms19017kbKilled by Signal 110
179ms315kbKilled by Signal 1100
1833ms13897kbKilled by Signal 110
1918ms360kbIncorect00
2067ms25604kbKilled by Signal 110
Punctaj total5

Ceva nu functioneaza?