Pagini recente » Borderou de evaluare (job #3362500) | Borderou de evaluare (job #3362377) | Borderou de evaluare (job #3362047) | Borderou de evaluare (job #3362200) | Borderou de evaluare (job #3362208)
Borderou de evaluare (job #3362208)
Raport evaluator
Compilare:
main.cpp: In function 'void solve()':
main.cpp:19:17: warning: iteration 19 invokes undefined behavior [-Waggressive-loop-optimizations]
19 | d[0][j] = INF;
| ~~~~~~~~^~~~~
main.cpp:18:22: note: within this loop
18 | for(int j = 0; j <= LOGMAX; ++j){
| ~~^~~~~~~~~
main.cpp:30:21: warning: iteration 18 invokes undefined behavior [-Waggressive-loop-optimizations]
30 | d[1][j] = min(d[0][j] + b * (1ll << j), d[0][j - 1] + a * (1ll << (j - 1)));
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:29:26: note: within this loop
29 | for(int j = 1; j <= LOGMAX; ++j){
| ~~^~~~~~~~~
main.cpp:33:29: warning: iteration 19 invokes undefined behavior [-Waggressive-loop-optimizations]
33 | d[0][j] = d[1][j];
| ~~~~~~^
main.cpp:32:26: note: within this loop
32 | for(int j = 0; j <= LOGMAX; ++j){
| ~~^~~~~~~~~
main.cpp:33:21: warning: 'void* __builtin_memmove(void*, const void*, long unsigned int)' forming offset [304, 319] is out of the bounds [0, 304] of object 'd' with type 'long long int [2][19]' [-Warray-bounds]
33 | d[0][j] = d[1][j];
| ~~~~~~~~^~~~~~~~~
main.cpp:13:15: note: 'd' declared here
13 | long long int d[2][19];
| ^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 303kb | Incorect | 0 | 0 |
| 2 | 0ms | 303kb | Incorect | 0 | 0 |
| 3 | 0ms | 303kb | Incorect | 0 | 0 |
| 4 | 0ms | 303kb | Incorect | 0 | 0 |
| 5 | 0ms | 303kb | Incorect | 0 | 0 |
| 6 | 0ms | 303kb | Incorect | 0 | 0 |
| 7 | 0ms | 303kb | Incorect | 0 | 0 |
| 8 | 0ms | 303kb | Incorect | 0 | 0 |
| 9 | 0ms | 303kb | Incorect | 0 | 0 |
| 10 | 0ms | 303kb | Incorect | 0 |
| 11 | 0ms | 303kb | Incorect | 0 |
| 12 | 0ms | 303kb | Incorect | 0 |
| 13 | 0ms | 303kb | Incorect | 0 |
| 14 | 0ms | 303kb | Incorect | 0 |
| 15 | 0ms | 303kb | Incorect | 0 | 0 |
| 16 | 0ms | 303kb | Incorect | 0 |
| 17 | 0ms | 303kb | Incorect | 0 |
| 18 | 0ms | 303kb | Incorect | 0 |
| 19 | 0ms | 303kb | Incorect | 0 |
| 20 | 0ms | 303kb | Incorect | 0 |
| Punctaj total | 0 |