Borderou de evaluare (job #3040873)

Utilizator AleXutzZuDavid Alex Robert AleXutzZu Data 30 martie 2023 15:47:41
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 55

Raport evaluator

Compilare: main.cpp: In member function 'void Trie::insert(const std::string&, Node*&, int)': main.cpp:16:17: 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 (ptr == str.size()) { | ~~~~^~~~~~~~~~~~~ main.cpp: In member function 'bool Trie::remove(const std::string&, Node*&, int)': main.cpp:30:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 30 | if (ptr == str.size() - 1) { | ~~~~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'int Trie::max_prefix(const std::string&, Node*, int, int)': main.cpp:45:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 45 | if (ptr == str.size() || node->children[str[ptr] - 'a'] == nullptr) return len; | ~~~~^~~~~~~~~~~~~ main.cpp: In member function 'int Trie::count(const std::string&)': main.cpp:60:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 60 | while (ptr != str.size() && node != nullptr) { | ~~~~^~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbOK55
20ms303kbOK55
30ms303kbOK55
40ms303kbOK55
50ms303kbOK55
60ms303kbOK55
71ms303kbOK55
81ms303kbOK55
92ms557kbIncorect00
104ms1867kbOK55
114ms557kbOK55
129ms3440kbIncorect00
139ms2916kbIncorect00
149ms1081kbOK55
159ms819kbOK50
1639ms24727kbIncorect0
179ms507kbIncorect00
1839ms18583kbIncorect0
199ms303kbOK50
2044ms31363kbIncorect0
Punctaj total55

Ceva nu functioneaza?