Borderou de evaluare (job #2721994)
Utilizator | Data | 12 martie 2021 15:39:07 | |
---|---|---|---|
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 Solve()':
main.cpp:83:29: error: invalid conversion from 'trie*' to 'int' [-fpermissive]
int len = strlen(s), U = T;
^
main.cpp:84:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < strlen(s);++i)
~~^~~~~~~~~~~
main.cpp:87:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(;U != T && !U -> fiu[urm];U = U -> fail);
^
main.cpp:87:23: error: base operand of '->' is not a pointer
for(;U != T && !U -> fiu[urm];U = U -> fail);
^~
main.cpp:87:41: error: base operand of '->' is not a pointer
for(;U != T && !U -> fiu[urm];U = U -> fail);
^~
main.cpp:88:10: error: base operand of '->' is not a pointer
if(U -> fiu[urm]) U = U -> fiu[urm];
^~
main.cpp:88:29: error: base operand of '->' is not a pointer
if(U -> fiu[urm]) U = U -> fiu[urm];
^~
main.cpp:89:7: error: base operand of '->' is not a pointer
U -> nr++;
^~
main.cpp:83:7: warning: unused variable 'len' [-Wunused-variable]
int len = strlen(s), U = T;
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !