Problem nextprime
User Elnathan
Submission Time 2023-12-06 09:19:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nextprime.cpp: In function ‘int main()’:
nextprime.cpp:11:20: error: invalid operands of types ‘bool [1000001]’ and ‘double’ to binary ‘operator+’
11 | fill(sieve, sieve + 1000001. true);
| ~~~~~ ^ ~~~~~~~~
| | |
| | double
| bool [1000001]