Pagini recente » Borderou de evaluare (job #509665) | Borderou de evaluare (job #16989) | Borderou de evaluare (job #625593) | Borderou de evaluare (job #399235) | Borderou de evaluare (job #3228176)
Borderou de evaluare (job #3228176)
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 |
1 | 0ms | 303kb | Incorect | 0 | 0 |
2 | 0ms | 303kb | Incorect | 0 | 0 |
3 | 0ms | 303kb | Incorect | 0 | 0 |
4 | 2ms | 303kb | Incorect | 0 | 0 |
5 | 14ms | 495kb | Incorect | 0 | 0 |
6 | 44ms | 802kb | Incorect | 0 |
7 | 59ms | 1052kb | Incorect | 0 | 0 |
8 | 59ms | 1056kb | Incorect | 0 |
9 | 59ms | 1048kb | Incorect | 0 |
10 | 59ms | 1044kb | Incorect | 0 |
Punctaj total | 0 |