Problem | primepie |
---|---|
User | haydendoo |
Submission Time | 2023-01-19 09:05:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
primepie.cpp: In function ‘void sieve()’:
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());
| ^