Borderou de evaluare (job #2807338)

Utilizator YusyBossFares Yusuf YusyBoss Data 23 noiembrie 2021 17:58:01
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:79:34: error: cannot bind non-const lvalue reference of type 'matrice&' to an rvalue of type 'matrice' 79 | cout << multiply(A, lgput(B, n - 2)).mat[0][2] << "\n"; | ~~~~~^~~~~~~~~~ main.cpp:13:39: note: initializing argument 2 of 'matrice multiply(matrice&, matrice&)' 13 | matrice multiply(matrice& A, matrice& B) { | ~~~~~~~~~^ main.cpp:57:33: warning: unused variable 'i' [-Wunused-variable] 57 | int t, x, y, z, a, b, c, n, i; | ^ Non zero exit status: 1

Ceva nu functioneaza?