Pagini recente » Borderou de evaluare (job #1050272) | Borderou de evaluare (job #3193267) | Borderou de evaluare (job #2120643) | Borderou de evaluare (job #279027) | Borderou de evaluare (job #2260851)
Borderou de evaluare (job #2260851)
Raport evaluator
Compilare:
main.cpp: In function 'int binarySearch(std::vector<int>&, int)':
main.cpp:35: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:53:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("input", "r", stdin);
^
main.cpp:57:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("orase1.in", "r", stdin);
^
main.cpp:58:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("orase1.out", "w", stdout);
^
main.cpp:68:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^
main.cpp:71:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", dist + i);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 10 |
2 | 2ms | 131kb | OK | 10 | 10 |
3 | 24ms | 512kb | OK | 10 | 10 |
4 | 54ms | 897kb | OK | 10 | 10 |
5 | 141ms | 2490kb | OK | 10 | 10 |
6 | 156ms | 2891kb | OK | 10 | 10 |
7 | 185ms | 3411kb | OK | 10 | 30 |
8 | 214ms | 3796kb | OK | 10 |
9 | 238ms | 4190kb | OK | 10 |
10 | 2ms | 131kb | OK | 10 | 10 |
Punctaj total | 100 |