Ar pirminis?
- [1] 2023-04-01 18:32 (100)
- [2] 2023-04-01 18:33 (100)
Taškai: 100
Compile: OK
ar_pirminis.cpp: In function ‘void er()’: ar_pirminis.cpp:11:21: warning: iteration 9999999 invokes undefined behavior [-Waggressive-loop-optimizations] 11 | pirminis[i] = true; | ~~~~~~~~~~~~^~~~~~ ar_pirminis.cpp:9:23: note: within this loop 9 | for (int i = 2; i <= maxn; i++) | ~~^~~~~~~ ar_pirminis.cpp:15:23: warning: iteration 9999999 invokes undefined behavior [-Waggressive-loop-optimizations] 15 | if (pirminis[i]) | ~~~~~~~~~~^ ar_pirminis.cpp:13:23: note: within this loop 13 | for (int i = 2; i <= maxn; i++) | ~~^~~~~~~ ar_pirminis.cpp:11:21: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’ writing 10000000 bytes into a region of size 9999999 overflows the destination [-Wstringop-overflow=] 11 | pirminis[i] = true; | ~~~~~~~~~~~~^~~~~~ ar_pirminis.cpp:5:6: note: at offset 2 into destination object ‘pirminis’ of size 10000001 5 | bool pirminis[maxn]; | ^~~~~~~~
nr. | result | time | message |
---|---|---|---|
1 | True | 0.147 s | ok |
2 | True | 0.111 s | ok |
3 | True | 0.124 s | ok |
4 | True | 0.127 s | ok |
5 | True | 0.119 s | ok |
6 | True | 0.119 s | ok |
7 | True | 0.104 s | ok |
8 | True | 0.103 s | ok |
9 | True | 0.115 s | ok |
10 | True | 0.103 s | ok |
11 | True | 0.118 s | ok |
12 | True | 0.116 s | ok |
13 | True | 0.107 s | ok |
14 | True | 0.11 s | ok |
15 | True | 0.116 s | ok |
16 | True | 0.119 s | ok |
17 | True | 0.117 s | ok |
18 | True | 0.121 s | ok |
19 | True | 0.126 s | ok |
20 | True | 0.128 s | ok |
21 | True | 0.116 s | ok |
22 | True | 0.108 s | ok |