Borderou de evaluare (job #2543244)
Utilizator | Data | 10 februarie 2020 22:54:52 | |
---|---|---|---|
Problema | Aho-Corasick | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void add(std::__cxx11::string, int)':
main.cpp:21:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (it < S.size() && node->v[S[it] - 'a'] != NULL){
~~~^~~~~~~~~~
main.cpp:25:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (it < S.size()){
~~~^~~~~~~~~~
main.cpp: In function 'void add_match(int, int)':
main.cpp:41:15: error: request for member 'push_back' in 'match[id]', which is of non-class type 'int'
match[id].push_back (pos - dictionary[id].size() + 1);
^~~~~~~~~
main.cpp: In function 'void find_matches(std::__cxx11::string)':
main.cpp:47:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (it = 0; it < s.size(); ++it){
~~~^~~~~~~~~~
main.cpp:53:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (jt = 0; jt < node->index.size(); ++jt){
~~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:98:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j = 0; j < failed->v[i]->index.size(); ++j){
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !