Borderou de evaluare (job #2444925)
Utilizator | Data | 1 august 2019 19:07:52 | |
---|---|---|---|
Problema | Ratina | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void adauga(nod*, std::__cxx11::string&, int, int)':
main.cpp:43:40: error: invalid initialization of non-const reference of type 'std::__cxx11::string& {aka std::__cxx11::basic_string<char>&}' from an rvalue of type 'std::__cxx11::basic_string<char>'
adauga(root->c[s[0]-'a'] , s.substr(1),poz+1,cnt);
~~~~~~~~^~~
main.cpp:29:6: note: initializing argument 2 of 'void adauga(nod*, std::__cxx11::string&, int, int)'
void adauga(nod *root,string &s,int poz,int cnt)
^~~~~~
main.cpp: In function 'int rezolva()':
main.cpp:49:14: warning: right operand of comma operator has no effect [-Wunused-value]
cnt = 0,j;
^
main.cpp:55:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (cnt+pas-1 >= noduri[cuv[j]].size() || noduri[cuv[j]][cnt+pas-1] != noduri[cuv[1]][cnt+pas-1])
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !