Dvyniai pirminiai
- [1] 2018-11-17 18:52 (100)
- [2] 2019-11-16 12:32 (100)
Taškai: 100
Compile: OK
dvyniai.cpp: In function ‘int main()’: dvyniai.cpp:27:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dvyniai.in", "r", stdin); ^ dvyniai.cpp:28:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dvyniai.out", "w", stdout); ^ dvyniai.cpp:9:26: warning: iteration 19999998u invokes undefined behavior [-Waggressive-loop-optimizations] isPrime[i] = true; ^ dvyniai.cpp:8:22: note: containing loop for(int i = 2; i <= n; i++){ ^
nr. | result | time | message |
---|---|---|---|
1 | True | 0.288 s | ok |
2 | True | 0.292 s | ok |
3 | True | 0.364 s | ok |
4 | True | 0.32 s | ok |
5 | True | 0.4 s | ok |
6 | True | 0.352 s | ok |
7 | True | 0.404 s | ok |
8 | True | 0.348 s | ok |
9 | True | 0.32 s | ok |
10 | True | 0.356 s | ok |