Pagini recente »
Borderou de evaluare (job #189223)
|
Borderou de evaluare (job #345606)
|
Borderou de evaluare (job #828565)
|
Istoria paginii utilizator/stanariana
|
Borderou de evaluare (job #653239)
Borderou de evaluare (job #653239)
Raport evaluator
Compilare:
main.cpp: In function 'void Eratosthenes()':
main.cpp:15:49: warning: iteration 10000000 invokes undefined behavior [-Waggressive-loop-optimizations]
15 | for (int i = 0; i <= dim + 1; ++i) sieve[i] = 'P';
| ~~~~~~~~~^~~~~
main.cpp:15:23: note: within this loop
15 | for (int i = 0; i <= dim + 1; ++i) sieve[i] = 'P';
| ~~^~~~~~~~~~
main.cpp:17:48: warning: iteration 4999998 invokes undefined behavior [-Waggressive-loop-optimizations]
17 | for (int i = 4; i <= dim; i += 2) sieve[i] = 'N';
| ~~~~~~~~~^~~~~
main.cpp:17:23: note: within this loop
17 | for (int i = 4; i <= dim; i += 2) sieve[i] = 'N';
| ~~^~~~~~
main.cpp:15:49: warning: 'void* __builtin_memset(void*, int, unsigned int)' forming offset [10000000, 10000001] is out of the bounds [0, 10000000] of object 'sieve' with type 'char [10000000]' [-Warray-bounds]
15 | for (int i = 0; i <= dim + 1; ++i) sieve[i] = 'P';
| ~~~~~~~~~^~~~~
main.cpp:12:6: note: 'sieve' declared here
12 | char sieve[dim];
| ^~~~~
| Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
|
1
|
501 ms
|
10203 kb
|
OK
|
5
|
|
2
|
504 ms
|
10207 kb
|
OK
|
5
|
|
3
|
490 ms
|
10207 kb
|
OK
|
5
|
|
4
|
491 ms
|
10211 kb
|
OK
|
5
|
|
5
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
6
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
7
|
1 ms
|
114 kb
|
Incorect
|
0
|
|
8
|
1 ms
|
114 kb
|
Incorect
|
0
|
|
9
|
1 ms
|
114 kb
|
Incorect
|
0
|
|
10
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
11
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
12
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
13
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
14
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
15
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
16
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
17
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
18
|
1 ms
|
122 kb
|
Incorect
|
0
|
|
19
|
3 ms
|
249 kb
|
Incorect
|
0
|
|
20
|
3 ms
|
118 kb
|
Incorect
|
0
|
|
Punctaj total
|
20
|