Borderou de evaluare (job #2930973)

Utilizator biancaivascuBianca Ivascu biancaivascu Data 29 octombrie 2022 22:32:27
Problema Suma divizorilor Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:54:30: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int' 54 | euclid(cd-1, Nr, x, y); | ^ main.cpp:8:32: note: initializing argument 3 of 'void euclid(int, int, int&, int&)' 8 | void euclid(int a, int b, int &x, int &y) | ~~~~~^ main.cpp:78:25: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int' 78 | euclid(d-1, Nr, x, y); | ^ main.cpp:8:32: note: initializing argument 3 of 'void euclid(int, int, int&, int&)' 8 | void euclid(int a, int b, int &x, int &y) | ~~~~~^ Non zero exit status: 1

Ceva nu functioneaza?