Borderou de evaluare (job #3228176)

Utilizator RosheRadutu Robert Roshe Data 6 mai 2024 15:46:17
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void binsearch0(int)': main.cpp:17:15: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 17 | if(A[mid] == x){ | ~~~~~~~^~~~ main.cpp:21:20: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 21 | else if(A[mid] < x) lo = mid+1; | ~~~~~~~^~~ main.cpp:24:12: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 24 | if(A[lo] == x && lo > poz) poz = lo; | ~~~~~~^~~~ main.cpp:25:12: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 25 | if(A[hi] == x && hi > poz) poz = hi; | ~~~~~~^~~~ main.cpp: In function 'void binsearch1(int)': main.cpp:35:15: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 35 | if(A[mid] == x){ | ~~~~~~~^~~~ main.cpp:36:19: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 36 | if(A[mid+1] == x){ lo = mid+1; poz = mid+1;} | ~~~~~~~~~^~~~ main.cpp:39:20: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 39 | else if(A[mid] > x) hi = mid - 1; | ~~~~~~~^~~ main.cpp:42:12: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 42 | if(A[lo] <= x && lo > poz) poz = lo; | ~~~~~~^~~~ main.cpp:43:12: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 43 | if(A[hi] <= x && hi > poz) poz = hi; | ~~~~~~^~~~ main.cpp: In function 'void binsearch2(int)': main.cpp:54:15: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 54 | if(A[mid] == x){ | ~~~~~~~^~~~ main.cpp:55:19: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 55 | if(A[mid-1] == x){ | ~~~~~~~~~^~~~ main.cpp:61:20: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 61 | else if(A[mid] > x) hi = mid - 1; | ~~~~~~~^~~ main.cpp:64:12: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 64 | if(A[lo] >= x && lo < poz) poz = lo; | ~~~~~~^~~~ main.cpp:65:12: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 65 | if(A[hi] >= x && hi < poz) poz = hi; | ~~~~~~^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbIncorect00
20ms303kbIncorect00
30ms303kbIncorect00
42ms303kbIncorect00
514ms495kbIncorect00
644ms802kbIncorect0
759ms1052kbIncorect00
859ms1056kbIncorect0
959ms1048kbIncorect0
1059ms1044kbIncorect0
Punctaj total0

Ceva nu functioneaza?