Pagini recente » Borderou de evaluare (job #153833) | Borderou de evaluare (job #2415058) | Borderou de evaluare (job #965049) | Borderou de evaluare (job #574639) | Borderou de evaluare (job #2864370)
Borderou de evaluare (job #2864370)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:12:14: warning: iteration 1500000 invokes undefined behavior [-Waggressive-loop-optimizations]
12 | v[i] = true;
| ~~~~~^~~~~~
main.cpp:11:23: note: within this loop
11 | for (int i = 0; i <= 1500000; i++)
| ~~^~~~~~~~~~
main.cpp:15:16: warning: iteration 1499998 invokes undefined behavior [-Waggressive-loop-optimizations]
15 | if (v[i]) {
| ~~~^
main.cpp:14:23: note: within this loop
14 | for (int i = 2; i <= 1500000; i++) {
| ~~^~~~~~~~~~
main.cpp:12:14: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 1500000 is out of the bounds [0, 1500000] of object 'v' with type 'bool [1500000]' [-Warray-bounds]
12 | v[i] = true;
| ~~~~~^~~~~~
main.cpp:7:6: note: 'v' declared here
7 | bool v[1500000];
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 30ms | 2084kb | OK | 10 |
2 | 30ms | 2052kb | OK | 10 |
3 | 30ms | 2076kb | OK | 10 |
4 | 30ms | 2064kb | OK | 10 |
5 | 30ms | 2068kb | OK | 10 |
6 | 30ms | 2080kb | OK | 10 |
7 | 30ms | 2060kb | OK | 10 |
8 | 30ms | 2068kb | OK | 10 |
9 | 30ms | 2162kb | OK | 10 |
10 | 30ms | 1953kb | OK | 10 |
Punctaj total | 100 |