Problem primepie
User liuyueyang0510
Submission Time 2024-05-28 16:25:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

primepie.cpp: In function ‘long long int amountEaten(int)’:
primepie.cpp:8:5: error: ‘vector’ was not declared in this scope
8 | vector<bool> sieved(x, true);
| ^~~~~~
primepie.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | # include "primepie.h"
+++ |+#include <vector>
2 | # define ll long long
primepie.cpp:8:12: error: expected primary-expression before ‘bool’
8 | vector<bool> sieved(x, true);
| ^~~~
primepie.cpp:10:13: error: ‘sieved’ was not declared in this scope; did you mean ‘signed’?
10 | if (sieved[i]) {
| ^~~~~~
| signed