Borderou de evaluare (job #2952921)

Utilizator ezluciPirtac Eduard ezluci Data 10 decembrie 2022 11:05:18
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

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:63:25: warning: array subscript has type 'char' [-Wchar-subscripts] 63 | if (delWord(nod->fii[lit], pos+1, s)) | ^~~ main.cpp:64:16: warning: array subscript has type 'char' [-Wchar-subscripts] 64 | nod->fii[lit] = nullptr; | ^~~ main.cpp: In function 'int nrApWord(Trie*, int, std::string&)': main.cpp:74:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 74 | if (pos == s.size()) | ~~~~^~~~~~~~~~~ main.cpp:78:17: warning: array subscript has type 'char' [-Wchar-subscripts] 78 | if (nod->fii[lit]) | ^~~ main.cpp:79:32: warning: array subscript has type 'char' [-Wchar-subscripts] 79 | return nrApWord(nod->fii[lit], pos+1, s); | ^~~ main.cpp: In function 'int lcpWord(Trie*, int, std::string&)': main.cpp:86:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 86 | if (pos == s.size()) | ~~~~^~~~~~~~~~~ main.cpp:90:17: warning: array subscript has type 'char' [-Wchar-subscripts] 90 | if (nod->fii[lit]) | ^~~ main.cpp:91:31: warning: array subscript has type 'char' [-Wchar-subscripts] 91 | return lcpWord(nod->fii[lit], pos+1, s); | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms184kbKilled by Signal 1100
20ms184kbKilled by Signal 1100
30ms184kbKilled by Signal 1100
40ms184kbKilled by Signal 1100
50ms184kbKilled by Signal 1100
60ms184kbKilled by Signal 1100
70ms184kbKilled by Signal 1100
80ms184kbKilled by Signal 1100
90ms184kbKilled by Signal 1100
104ms1495kbKilled by Signal 1100
110ms184kbKilled by Signal 1100
125ms2412kbKilled by Signal 1100
135ms2150kbKilled by Signal 1100
145ms708kbKilled by Signal 1100
152ms708kbKilled by Signal 1100
1637ms18718kbKilled by Signal 110
170ms184kbKilled by Signal 1100
1828ms13099kbKilled by Signal 110
193ms315kbKilled by Signal 1100
2061ms25219kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?