Borderou de evaluare (job #2764796)
Utilizator | Data | 22 iulie 2021 17:33:38 | |
---|---|---|---|
Problema | ADN | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool kmp(std::__cxx11::string&, std::__cxx11::string&, int*)':
main.cpp:45:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(p[j]==s2.length()){
~~~~^~~~~~~~~~~~~
main.cpp:52:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if((p[j]!=s2.length()]) && (s2[p[j] ]==s1[i-1]) ){
~~~~^~~~~~~~~~~~~
main.cpp:52:26: error: expected ')' before ']' token
if((p[j]!=s2.length()]) && (s2[p[j] ]==s1[i-1]) ){
^
main.cpp:55:5: error: expected ')' before 'if'
if(p[j]==((int)s2.length()) ){ans=true;}
^~
main.cpp:56:1: error: expected primary-expression before '}' token
}
^
main.cpp: In function 'void build(std::vector<std::__cxx11::basic_string<char> >&)':
main.cpp:79:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<v.size(); i++){
~^~~~~~~~~
main.cpp:81:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<v.size(); j++){
~^~~~~~~~~
main.cpp: In function 'void build_ans()':
main.cpp:157:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1; i<ind.size(); i++){
~^~~~~~~~~~~
main.cpp:159:70: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j= (((int)v[ind[i] ].length())-1-g[ind[i-1] ][ind[i] ]+1); j<v[ind[i] ].length(); j++ ){
~^~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !