Ar pirminis?

Taškai: 100

Compile: OK

ar_pirminis.cpp: In function ‘void gen()’: ar_pirminis.cpp:20:18: warning: iteration 10000009u invokes undefined behavior [-Waggressive-loop-optimizations] if(ArPirminis[i]) ^ ar_pirminis.cpp:18:19: note: containing loop for(int i = 1; i <= MAXN; i++) ^ ar_pirminis.cpp:13:23: warning: iteration 10000009u invokes undefined behavior [-Waggressive-loop-optimizations] ArPirminis[i] = true; ^ ar_pirminis.cpp:11:19: note: containing loop for(int i = 1; i <= MAXN; i++) ^

nr.resulttimemessage
1True0.156 sok
2True0.156 sok
3True0.156 sok
4True0.156 sok
5True0.156 sok
6True0.156 sok
7True0.16 sok
8True0.156 sok
9True0.156 sok
10True0.156 sok
11True0.38 sok
12True0.4 sok
13True0.472 sok
14True0.168 sok
15True0.38 sok
16True0.58 sok
17True0.516 sok
18True0.352 sok
19True0.728 sok
20True0.552 sok
21True0.676 sok
22True0.764 sok