Borderou de evaluare (job #2229019)
Utilizator | Data | 5 august 2018 17:38:06 | |
---|---|---|---|
Problema | Triopalindrom | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:34:38: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
gethash(i,i+l-1,r1,r2);
^
user.cpp:12:6: note: initializing argument 3 of ‘void gethash(int, int, int&, int&)’
void gethash(int i,int j,int &r1,int &r2)
^~~~~~~
user.cpp:35:42: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
gethash(i+l,i+2*l-1,r3,r4);
^
user.cpp:12:6: note: initializing argument 3 of ‘void gethash(int, int, int&, int&)’
void gethash(int i,int j,int &r1,int &r2)
^~~~~~~
user.cpp:36:38: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
gethash(i+2*l,j,r5,r6);
^
user.cpp:12:6: note: initializing argument 3 of ‘void gethash(int, int, int&, int&)’
void gethash(int i,int j,int &r1,int &r2)
^~~~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !