Borderou de evaluare (job #3281755)
Utilizator | Data | 3 martie 2025 16:04:39 | |
---|---|---|---|
Problema | Trie | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In constructor 'TrieNode::TrieNode()':
main.cpp:14:13: error: 'memset' was not declared in this scope
14 | memset(edg, 0, sizeof edg);
| ^~~~~~
main.cpp:2:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
1 | #include <fstream>
+++ |+#include <cstring>
2 | #include <string>
main.cpp: In member function 'void TrieNode::add(const std::string&, int)':
main.cpp:22:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | if (depth == s.size()) {
| ~~~~~~^~~~~~~~~~~
main.cpp: In member function 'void TrieNode::remove(const std::string&, int)':
main.cpp:36:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | if (depth == s.size()) {
| ~~~~~~^~~~~~~~~~~
main.cpp: In member function 'int TrieNode::findWordsEnded(const std::string&, int)':
main.cpp:56:23: 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 (depth == s.size()) {
| ~~~~~~^~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !