Pagini recente » Borderou de evaluare (job #1218171) | Borderou de evaluare (job #2460605) | Borderou de evaluare (job #276823) | Borderou de evaluare (job #1274460) | Borderou de evaluare (job #2251536)
Borderou de evaluare (job #2251536)
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:50:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vila2.in", "r", stdin);
^
user.cpp:51:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vila2.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:58: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 | 0ms | 1336kb | OK | 10 |
3 | 4ms | 1340kb | OK | 10 |
4 | 8ms | 1340kb | OK | 10 |
5 | 8ms | 1420kb | OK | 10 |
6 | 16ms | 1336kb | OK | 10 |
7 | 24ms | 1340kb | OK | 10 |
8 | 20ms | 1404kb | OK | 10 |
9 | 36ms | 1336kb | OK | 10 |
10 | 36ms | 1340kb | OK | 10 |
Punctaj total | 100 |