Problem primepie
User dzuizz
Submission Time 2024-06-23 01:03:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

primepie.cpp: In function ‘long long int amountEaten(int)’:
primepie.cpp:6:3: error: ‘memset’ was not declared in this scope
6 | memset(sieve, 0, sizeof sieve);
| ^~~~~~
primepie.cpp:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
1 | #include "primepie.h"
+++ |+#include <cstring>
2 | using namespace std;
primepie.cpp:7:3: error: ‘vector’ was not declared in this scope
7 | vector<int> primes;
| ^~~~~~
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:7:10: error: expected primary-expression before ‘int’
7 | vector<int> primes;
| ^~~
primepie.cpp:11:5: error: ‘primes’ was not declared in this scope
11 | primes.push_bac