Borderou de evaluare (job #2807340)
Utilizator | Data | 23 noiembrie 2021 18:00:16 | |
---|---|---|---|
Problema | Iepuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'matrice multiply(matrice&, matrice&)':
main.cpp:14:24: warning: variable 'nb' set but not used [-Wunused-but-set-variable]
14 | int i, j, l, na, ma, nb, mb;
| ^~
main.cpp: In function 'int main()':
main.cpp:84:49: error: cannot bind non-const lvalue reference of type 'matrice&' to an rvalue of type 'matrice'
84 | matrice IMI_BAG_PULA = multiply(A, lgput(B, n - 2));
| ~~~~~^~~~~~~~~~
main.cpp:13:39: note: initializing argument 2 of 'matrice multiply(matrice&, matrice&)'
13 | matrice multiply(matrice& A, matrice& B) {
| ~~~~~~~~~^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !