Borderou de evaluare (job #2507061)

Utilizator stefzahZaharia Stefan Tudor stefzah Data 9 decembrie 2019 15:59:47
Problema Dezastru Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void Back(int&)': main.cpp:28:26: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int' Back(top + 1); ~~~~^~~ main.cpp:12:6: note: initializing argument 1 of 'void Back(int&)' void Back(int & top) { ^~~~ main.cpp: In function 'int main()': main.cpp:45:15: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int' Back(1); ^ main.cpp:12:6: note: initializing argument 1 of 'void Back(int&)' void Back(int & top) { ^~~~ main.cpp:51:15: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int' Back(1); ^ main.cpp:12:6: note: initializing argument 1 of 'void Back(int&)' void Back(int & top) { ^~~~ Non zero exit status: 1

Ceva nu functioneaza?