Pagini recente » Borderou de evaluare (job #2478329) | Borderou de evaluare (job #1938288) | Borderou de evaluare (job #2889338) | Borderou de evaluare (job #2838531) | Borderou de evaluare (job #1743074)
Borderou de evaluare (job #1743074)
Raport evaluator
Compilare:
user.cpp: In function ‘int SearchIndex(long long int, long long int)’:
user.cpp:17:30: warning: unused variable ‘middle’ [-Wunused-variable]
int left = 1, right = n, middle, answer;
^
user.cpp: In function ‘int main()’:
user.cpp:120:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mostenire.in", "r", stdin);
^
user.cpp:121:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mostenire.out", "w", stdout);
^
user.cpp:123:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %lld", &n, &k);
^
user.cpp:125:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
user.cpp: In function ‘int SearchIndex(long long int, long long int)’:
user.cpp:27:12: warning: ‘answer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return answer;
^
user.cpp: In function ‘int Try(long long int, long long int)’:
user.cpp:38:28: warning: ‘answer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
long long add = (index - 1) * (start * v[n] - difference) - start * sum[index - 1];
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 280kb | OK | 5 |
2 | 0ms | 280kb | OK | 5 |
3 | 0ms | 284kb | OK | 5 |
4 | 0ms | 280kb | OK | 5 |
5 | 0ms | 276kb | OK | 5 |
6 | 0ms | 276kb | OK | 5 |
7 | 0ms | 304kb | OK | 5 |
8 | 0ms | 304kb | OK | 5 |
9 | 4ms | 440kb | OK | 5 |
10 | 12ms | 668kb | OK | 5 |
11 | 12ms | 672kb | OK | 5 |
12 | 16ms | 752kb | OK | 5 |
13 | 16ms | 828kb | OK | 5 |
14 | 20ms | 904kb | OK | 5 |
15 | 24ms | 1060kb | OK | 5 |
16 | 24ms | 1068kb | OK | 5 |
17 | 784ms | 11216kb | OK | 5 |
18 | 748ms | 12784kb | OK | 5 |
19 | 940ms | 15892kb | OK | 5 |
20 | 956ms | 15892kb | OK | 5 |
Punctaj total | 100 |