Problem primepie
User haydendoo
Submission Time 2023-01-19 09:05:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

primepie.cpp: In function ‘void sieve()’:
primepie.cpp:15:5: error: ‘If’ was not declared in this scope
15 | If(!is_prime[i]) continue;
| ^~
primepie.cpp:19:5: error: expected primary-expression before ‘int’
19 | For(int i = 3; i <= n; i+=2) if(is_prime[i]) prime_list.push_back(i+prime_list.back());
| ^~~
primepie.cpp:19:16: error: ‘i’ was not declared in this scope
19 | For(int i = 3; i <= n; i+=2) if(is_prime[i]) prime_list.push_back(i+prime_list.back());
| ^