Problem primepie
User ARock
Submission Time 2023-11-20 15:41:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

primepie.cpp: In function ‘long long int amountEaten(long long int)’:
primepie.cpp:8:5: error: ‘vector’ was not declared in this scope
8 | vector<bool> v(20000000+1, true); v[0] = v[1] = false;
| ^~~~~~
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 | using namespace std;
primepie.cpp:8:12: error: expected primary-expression before ‘bool’
8 | vector<bool> v(20000000+1, true); v[0] = v[1] = false;
| ^~~~
primepie.cpp:8:39: error: ‘v’ was not declared in this scope
8 | vector<bool> v(20000000+1, true); v[0] = v[1] = false;
| ^
primepie.cpp: At global scope:
primepie.cpp:22:1: error: ‘int32_t’ does not name a type
22 | int32_t main() {
| ^~~~~~~