Pagini recente » Borderou de evaluare (job #1694796) | Borderou de evaluare (job #2960495) | Borderou de evaluare (job #1773086) | Borderou de evaluare (job #940426) | Borderou de evaluare (job #2267418)
Borderou de evaluare (job #2267418)
Raport evaluator
Compilare:
main.cpp: In function 'int binarySearch(std::vector<int>&, int)':
main.cpp:36: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);
~~~~~~~~~~~~~~~~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:79:15: warning: statement has no effect [-Wunused-value]
cout.fixed;
^
main.cpp:71:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("vmin.in", "r", stdin);
^
main.cpp:72:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("vmin.out", "w", stdout);
^
main.cpp:82:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
main.cpp:85:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &v[i].a, &v[i].b);
^
main.cpp:99:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 131kb | OK | 10 |
2 | 3ms | 131kb | OK | 10 |
3 | 4ms | 131kb | OK | 10 |
4 | 5ms | 131kb | OK | 10 |
5 | 32ms | 430kb | OK | 10 |
6 | 111ms | 1097kb | OK | 10 |
7 | 133ms | 1449kb | OK | 10 |
8 | 392ms | 3829kb | OK | 10 |
9 | 701ms | 6696kb | Time limit exceeded | 0 |
10 | 703ms | 6725kb | Time limit exceeded | 0 |
Punctaj total | 80 |