Pagini recente » Borderou de evaluare (job #2472697) | Borderou de evaluare (job #2171149) | Borderou de evaluare (job #173542) | Borderou de evaluare (job #2530171) | Borderou de evaluare (job #2587038)
Borderou de evaluare (job #2587038)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:42:20: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'uint64_t* {aka long unsigned int*}' [-Wformat=]
scanf("%lld", &a1);
^
main.cpp:43:20: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'uint64_t* {aka long unsigned int*}' [-Wformat=]
scanf("%lld", &a2);
^
main.cpp:48:106: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__normal_iterator<long unsigned int*, std::vector<long unsigned int> >::difference_type {aka long int}' [-Wformat=]
printf("%d \n", (upper_bound(ciur.begin(), ciur.end(), a2) - lower_bound(ciur.begin(), ciur.end(), a1)));
^
main.cpp:22:6: warning: unused variable 'upper' [-Wunused-variable]
int upper, lower;
^~~~~
main.cpp:22:13: warning: unused variable 'lower' [-Wunused-variable]
int upper, lower;
^~~~~
main.cpp:18:31: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("asi.in", "r", stdin);
^
main.cpp:19:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("asi.out", "w", stdout);
^
main.cpp:39:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q);
^
main.cpp:42:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &a1);
^
main.cpp:43:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &a2);
^
main.cpp: In function 'uint64_t cautareBin(uint64_t, uint64_t, uint64_t)':
main.cpp:67:9: warning: 'poz' may be used uninitialized in this function [-Wmaybe-uninitialized]
return poz;
^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 60ms | 5234kb | OK | 5 | 5 |
2 | 67ms | 5234kb | OK | 5 | 5 |
3 | 66ms | 5234kb | OK | 5 | 15 |
4 | 67ms | 5234kb | OK | 5 |
5 | 66ms | 5234kb | OK | 5 |
6 | 194ms | 5234kb | OK | 5 | 15 |
7 | 167ms | 5234kb | OK | 5 |
8 | 198ms | 5234kb | OK | 5 |
9 | 201ms | 5361kb | OK | 5 | 20 |
10 | 217ms | 5365kb | OK | 5 |
11 | 188ms | 5361kb | OK | 5 |
12 | 224ms | 5361kb | OK | 5 |
13 | 224ms | 5492kb | OK | 5 | 40 |
14 | 258ms | 5492kb | OK | 5 |
15 | 254ms | 5492kb | OK | 5 |
16 | 256ms | 5492kb | OK | 5 |
17 | 245ms | 5492kb | OK | 5 |
18 | 249ms | 5492kb | OK | 5 |
19 | 237ms | 5492kb | OK | 5 |
20 | 262ms | 5492kb | OK | 5 |
Punctaj total | 100 |