Borderou de evaluare (job #3187020)
Utilizator | Data | 26 decembrie 2023 22:58:53 | |
---|---|---|---|
Problema | Aho-Corasick | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:12: error: variable 'std::ifstream in' has initializer but incomplete type
11 | ifstream in("ahocorasick.in");
| ^
main.cpp:12:13: error: variable 'std::ofstream out' has initializer but incomplete type
12 | ofstream out("ahocorasick.out");
| ^
main.cpp: In function 'void build_Trie(node*, std::vector<std::__cxx11::basic_string<char> >&)':
main.cpp:36:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for(int i = 0; i < patterns.size() ;i++){ // iterating over patterns
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In instantiation of 'void search_pattern(node*, std::string&, auto:11&) [with auto:11 = std::vector<std::vector<int> >; node = trie_node; std::string = std::__cxx11::basic_string<char>]':
main.cpp:150:19: required from here
main.cpp:89:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
89 | for(int i = 0; i < text.length() ;i++){
| ~~^~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !