Borderou de evaluare (job #3124382)
Utilizator | Data | 28 aprilie 2023 13:55:52 | |
---|---|---|---|
Problema | Aho-Corasick | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In constructor 'Node::Node()':
main.cpp:18:9: error: 'memset' was not declared in this scope
18 | memset(next, 0, ALPHMAX);
| ^~~~~~
main.cpp:5:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
4 | #include <stack>
+++ |+#include <cstring>
5 |
main.cpp: In function 'void insert(Node*&, std::string&, int)':
main.cpp:36:18: 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 (position == s.size()) {
| ~~~~~~~~~^~~~~~~~~~~
main.cpp: In function 'void match()':
main.cpp:94:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | for (int i = 0; i < input.size(); i++) {
| ~~^~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !