Pagini recente » Borderou de evaluare (job #915202) | Borderou de evaluare (job #1922957) | Borderou de evaluare (job #3147167) | Borderou de evaluare (job #1766992) | Borderou de evaluare (job #2260847)
Borderou de evaluare (job #2260847)
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: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 | Incorect | 0 | 0 |
2 | 2ms | 131kb | Incorect | 0 | 0 |
3 | 24ms | 507kb | OK | 10 | 10 |
4 | 49ms | 892kb | OK | 10 | 10 |
5 | 141ms | 2617kb | OK | 10 | 10 |
6 | 165ms | 3006kb | OK | 10 | 10 |
7 | 180ms | 3407kb | OK | 10 | 30 |
8 | 205ms | 3796kb | OK | 10 |
9 | 229ms | 4190kb | OK | 10 |
10 | 2ms | 131kb | OK | 10 | 10 |
Punctaj total | 80 |