Pagini recente » Borderou de evaluare (job #2146712) | Borderou de evaluare (job #1302257) | Borderou de evaluare (job #1912811) | Borderou de evaluare (job #1092357) | Borderou de evaluare (job #2251540)
Borderou de evaluare (job #2251540)
Raport evaluator
Compilare:
user.cpp: In function ‘int binarySearch(std::vector<int>&, int)’:
user.cpp:29:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(best + (1<<step) < v.size() && v[best + (1<<step)] <= value) best += (1<<step);
~~~~~~~~~~~~~~~~~^~~~~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:49:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secventa.in", "r", stdin);
^
user.cpp:50:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secventa.out", "w", stdout);
^
user.cpp:53:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^
user.cpp:57:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 1336kb | OK | 10 |
| 2 | 4ms | 1340kb | OK | 10 |
| 3 | 24ms | 1340kb | OK | 10 |
| 4 | 24ms | 1340kb | OK | 10 |
| 5 | 36ms | 1336kb | OK | 10 |
| 6 | 40ms | 1336kb | OK | 10 |
| 7 | 72ms | 1340kb | OK | 10 |
| 8 | 100ms | 1340kb | OK | 10 |
| 9 | Depăşit | 1336kb | Time limit exceeded. | 0 |
| 10 | Depăşit | 1332kb | Time limit exceeded. | 0 |
| Punctaj total | 80 |