Pagini recente » Borderou de evaluare (job #1603257) | Borderou de evaluare (job #3197832) | Borderou de evaluare (job #2599835) | Borderou de evaluare (job #1635465) | Borderou de evaluare (job #2325371)
Borderou de evaluare (job #2325371)
Raport evaluator
Compilare:
main.cpp: In function 'int binary_search(int)':
main.cpp:10:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int step = start; step != 0; step >>= 1) if (at + step <= size && v[aux[at + step]] < x) at += step;
~~~~~~~~~~^~~~~~~
main.cpp: In function 'void increase_size()':
main.cpp:16:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (start <= size >> 1u) start <<= 1;
~~~~~~^~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:28:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (x == size) increase_size();
~~^~~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 2ms | 131kb | Corect! | 10 | 10 |
| 2 | 4ms | 131kb | Corect! | 10 | 10 |
| 3 | 2ms | 131kb | Corect! | 10 | 10 |
| 4 | 3ms | 131kb | Corect! | 10 | 10 |
| 5 | 3ms | 131kb | Corect! | 10 | 10 |
| 6 | 3ms | 131kb | Corect! | 10 | 10 |
| 7 | 3ms | 131kb | Corect! | 10 | 10 |
| 8 | 43ms | 917kb | Corect! | 10 | 30 |
| 9 | 36ms | 917kb | Corect! | 10 |
| 10 | 41ms | 917kb | Corect! | 10 |
| Punctaj total | 100 |