Borderou de evaluare (job #1938779)

Utilizator TavinciStefanescu Octavian Tavinci Data 25 martie 2017 10:56:25
Problema Leduri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void nmin(bool*, bool*, int)’: user.cpp:35:28: error: invalid initialization of reference of type ‘int&’ from expression of type ‘bool’ schimbaVal(v1[i]); ^ user.cpp:9:6: error: in passing argument 1 of ‘void schimbaVal(int&)’ void schimbaVal(int &nr) ^ user.cpp:36:30: error: invalid initialization of reference of type ‘int&’ from expression of type ‘bool’ schimbaVal(v1[i+1]); ^ user.cpp:9:6: error: in passing argument 1 of ‘void schimbaVal(int&)’ void schimbaVal(int &nr) ^ user.cpp:37:30: error: invalid initialization of reference of type ‘int&’ from expression of type ‘bool’ schimbaVal(v1[i+2]); ^ user.cpp:9:6: error: in passing argument 1 of ‘void schimbaVal(int&)’ void schimbaVal(int &nr) ^ user.cpp: In function ‘int main()’: user.cpp:61:27: error: invalid initialization of reference of type ‘int&’ from expression of type ‘bool’ schimbaVal(csir1[1]); ^ user.cpp:9:6: error: in passing argument 1 of ‘void schimbaVal(int&)’ void schimbaVal(int &nr) ^ user.cpp:62:27: error: invalid initialization of reference of type ‘int&’ from expression of type ‘bool’ schimbaVal(csir1[2]); ^ user.cpp:9:6: error: in passing argument 1 of ‘void schimbaVal(int&)’ void schimbaVal(int &nr) ^

Ceva nu functioneaza?