Borderou de evaluare (job #2814265)
Utilizator | Data | 7 decembrie 2021 20:50:42 | |
---|---|---|---|
Problema | Aho-Corasick | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In constructor 'Trie::Node::Node(Trie::Node*)':
main.cpp:54:20: warning: comparison of integer expressions of different signedness: 'int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]
54 | for (int i = 0; i < CHAR_SIZE; ++i) {
| ~~^~~~~~~~~~~
main.cpp: In destructor 'Trie::Node::~Node()':
main.cpp:62:20: warning: comparison of integer expressions of different signedness: 'int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]
62 | for (int i = 0; i < CHAR_SIZE; ++i) {
| ~~^~~~~~~~~~~
main.cpp: In member function 'Trie::StrId_t Trie::getStringId(const string&)':
main.cpp:71:14: error: 'class std::unordered_map<std::__cxx11::basic_string<char>, unsigned int>' has no member named 'contains'
71 | if (strToId.contains(string)) {
| ^~~~~~~~
main.cpp: In member function 'void Trie::insert(const string&)':
main.cpp:93:30: warning: array subscript has type 'char' [-Wchar-subscripts]
93 | if (curr->character[word[i]] == nullptr) {
| ^
main.cpp:94:27: warning: array subscript has type 'char' [-Wchar-subscripts]
94 | curr->character[word[i]] = new Node(&root);
| ^
main.cpp:98:33: warning: array subscript has type 'char' [-Wchar-subscripts]
98 | curr = curr->character[word[i]];
| ^
main.cpp: In member function 'void Trie::buildFailEdges()':
main.cpp:111:20: warning: comparison of integer expressions of different signedness: 'int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]
111 | for (int i = 0; i < CHAR_SIZE; ++i) {
| ~~^~~~~~~~~~~
main.cpp:122:21: warning: comparison of integer expressions of different signedness: 'int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]
122 | for (int i = 0; i < CHAR_SIZE; ++i) {
| ~~^~~~~~~~~~~
main.cpp: In member function 'std::unordered_map<std::__cxx11::basic_string<char>, std::vector<unsigned int> > Trie::patternMatching(const string&)':
main.cpp:165:31: warning: array subscript has type 'char' [-Wchar-subscripts]
165 | if (curr->character[text[i]] != nullptr) {
| ^
main.cpp:166:35: warning: array subscript has type 'char' [-Wchar-subscripts]
166 | curr = curr->character[text[i]];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !