Borderou de evaluare (job #3250404)
Utilizator | Data | 20 octombrie 2024 17:31:39 | |
---|---|---|---|
Problema | Aho-Corasick | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void AhoCorasick::search(const std::string&)':
main.cpp:83:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
83 | for (int i = 0; i < text.size(); ++i) {
| ~~^~~~~~~~~~~~~
main.cpp: In member function 'void AhoCorasick::processText(const std::string&, const std::vector<std::__cxx11::basic_string<char> >&)':
main.cpp:107:27: 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]
107 | for (int i = 0; i < keywords.size(); ++i) {
| ~~^~~~~~~~~~~~~~~~~
main.cpp:118:27: 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]
118 | for (int i = 0; i < keywords.size(); ++i) {
| ~~^~~~~~~~~~~~~~~~~
main.cpp:119:13: error: 'out' was not declared in this scope
119 | out << keywordCount[i] << endl;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !