Pagini recente » Borderou de evaluare (job #931742) | Borderou de evaluare (job #2598177) | Borderou de evaluare (job #504450) | Borderou de evaluare (job #1232764) | Borderou de evaluare (job #1743061)
Borderou de evaluare (job #1743061)
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:118:28: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%lld %d", &n, &k);
^
user.cpp:118:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:115: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:116: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:118:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %d", &n, &k);
^
user.cpp:120: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:35: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 | 284kb | OK | 5 |
| 2 | 0ms | 280kb | OK | 5 |
| 3 | 0ms | 280kb | OK | 5 |
| 4 | 0ms | 284kb | OK | 5 |
| 5 | 0ms | 276kb | OK | 5 |
| 6 | 0ms | 284kb | OK | 5 |
| 7 | 0ms | 304kb | OK | 5 |
| 8 | 0ms | 304kb | OK | 5 |
| 9 | 4ms | 436kb | OK | 5 |
| 10 | 12ms | 672kb | OK | 5 |
| 11 | 12ms | 672kb | OK | 5 |
| 12 | 16ms | 756kb | OK | 5 |
| 13 | 16ms | 832kb | OK | 5 |
| 14 | 20ms | 904kb | OK | 5 |
| 15 | 24ms | 1064kb | OK | 5 |
| 16 | 24ms | 1068kb | OK | 5 |
| 17 | 516ms | 11224kb | Wrong answer | 0 |
| 18 | 556ms | 12780kb | Wrong answer | 0 |
| 19 | 712ms | 15896kb | Wrong answer | 0 |
| 20 | 728ms | 15896kb | Wrong answer | 0 |
| Punctaj total | 80 |