Problem primefactorization
User YEethui
Submission Time 2023-11-05 13:14:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

primefactorization.cpp: In function ‘void sieveOfEratosthenes(std::vector<long long int>&)’:
primefactorization.cpp:16:5: error: ‘memset’ was not declared in this scope
16 | memset(IsPrime, true, sizeof(IsPrime));
| ^~~~~~
primefactorization.cpp:3:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
2 | #include <vector>
+++ |+#include <cstring>
3 | using namespace std;