Borderou de evaluare (job #2094987)

Utilizator EclipseTepes Alexandru Eclipse Data 26 decembrie 2017 19:51:49
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:60:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < m; i++) { ^ user.cpp:65:52: error: invalid initialization of reference of type ‘int&’ from expression of type ‘unsigned int’ DefaultBinarySearch(0, n, temp, pos); ^ user.cpp:13:5: error: in passing argument 4 of ‘int DefaultBinarySearch(int, int, unsigned int, int&)’ int DefaultBinarySearch(int left, int right, unsigned int key, int &position) { ^ user.cpp:69:50: error: invalid initialization of reference of type ‘int&’ from expression of type ‘unsigned int’ FirstBinarySearch(0, n, temp, pos); ^ user.cpp:30:5: error: in passing argument 4 of ‘int FirstBinarySearch(int, int, unsigned int, int&)’ int FirstBinarySearch(int left, int right, unsigned int key, int &position) { ^ user.cpp:73:49: error: invalid initialization of reference of type ‘int&’ from expression of type ‘unsigned int’ LastBinarySearch(0, n, temp, pos); ^ user.cpp:40:5: error: in passing argument 4 of ‘int LastBinarySearch(int, int, unsigned int, int&)’ int LastBinarySearch(int left, int right, unsigned int key, int &position) { ^ user.cpp:52:12: warning: unused variable ‘j’ [-Wunused-variable] int i, j; ^

Ceva nu functioneaza?