Pagini recente » Borderou de evaluare (job #2078861) | Borderou de evaluare (job #789852) | Borderou de evaluare (job #2837) | Borderou de evaluare (job #973991) | Borderou de evaluare (job #2934507)
Borderou de evaluare (job #2934507)
Raport evaluator
Compilare:
main.cpp: In function 'void Reset()':
main.cpp:28:15: warning: iteration 8002 invokes undefined behavior [-Waggressive-loop-optimizations]
28 | dp[i] = INF;
| ~~~~~~^~~~~
main.cpp:27:22: note: within this loop
27 | for(int i = 1; i <= SMAX; ++i) {
| ~~^~~~~~~
main.cpp:33:14: warning: iteration 4002 invokes undefined behavior [-Waggressive-loop-optimizations]
33 | v[i] = 0;
| ~~~~~^~~
main.cpp:32:22: note: within this loop
32 | for(int i = 1; i <= NMAX; ++i)
| ~~^~~~~~~
main.cpp:29:17: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [32012, 32015] is out of the bounds [0, 32012] of object 'best' with type 'int [8003]' [-Warray-bounds]
29 | best[i] = 0;
| ~~~~~~~~^~~
main.cpp:16:15: note: 'best' declared here
16 | int dp[SMAX], best[SMAX];
| ^~~~
main.cpp:33:14: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [16012, 16015] is out of the bounds [0, 16012] of object 'v' with type 'int [4003]' [-Warray-bounds]
33 | v[i] = 0;
| ~~~~~^~~
main.cpp:15:5: note: 'v' declared here
15 | int v[NMAX];
| ^
In function 'void Reset()',
inlined from 'int main()' at main.cpp:63:14:
main.cpp:29:17: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [32012, 32015] is out of the bounds [0, 32012] of object 'best' with type 'int [8003]' [-Warray-bounds]
29 | best[i] = 0;
| ~~~~~~~~^~~
main.cpp: In function 'int main()':
main.cpp:16:15: note: 'best' declared here
16 | int dp[SMAX], best[SMAX];
| ^~~~
In function 'void Reset()',
inlined from 'int main()' at main.cpp:63:14:
main.cpp:33:14: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [16012, 16015] is out of the bounds [0, 16012] of object 'v' with type 'int [4003]' [-Warray-bounds]
33 | v[i] = 0;
| ~~~~~^~~
main.cpp: In function 'int main()':
main.cpp:15:5: note: 'v' declared here
15 | int v[NMAX];
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 184kb | OK | 10 |
2 | 0ms | 184kb | OK | 10 |
3 | 0ms | 184kb | OK | 10 |
4 | 0ms | 184kb | OK | 10 |
5 | 0ms | 184kb | OK | 10 |
6 | 1ms | 315kb | OK | 10 |
7 | 15ms | 348kb | OK | 10 |
8 | 22ms | 348kb | OK | 10 |
9 | 33ms | 348kb | OK | 10 |
10 | 40ms | 348kb | OK | 10 |
Punctaj total | 100 |