Borderou de evaluare (job #3177169)

Utilizator Maftei_TudorMaftei Tudor Maftei_Tudor Data 28 noiembrie 2023 17:15:14
Problema Secvmax 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:58:29: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int' 58 | dsu(elm - 1, elm); | ~~~~^~~ main.cpp:20:15: note: initializing argument 1 of 'void dsu(int&, int&)' 20 | void dsu(int &x, int &y) { | ~~~~~^ main.cpp:61:29: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int' 61 | dsu(elm + 1, elm); | ~~~~^~~ main.cpp:20:15: note: initializing argument 1 of 'void dsu(int&, int&)' 20 | void dsu(int &x, int &y) { | ~~~~~^ Non zero exit status: 1

Ceva nu functioneaza?