Problem | nprime2 |
---|---|
User | ZacharyTan2010 |
Submission Time | 2024-04-03 16:36:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nprime2.cpp:4:52: error: ‘MAX_SIZE’ has not been declared
4 | void SieveOfEratosthenes(vector<long long>& primes,MAX_SIZE)
| ^~~~~~~~
nprime2.cpp: In function ‘void SieveOfEratosthenes(std::vector<long long int>&, int)’:
nprime2.cpp:5:19: error: ‘MAX_SIZE’ was not declared in this scope
5 | { bool IsPrime[MAX_SIZE];
| ^~~~~~~~
nprime2.cpp:6:12: error: ‘IsPrime’ was not declared in this scope
6 | memset(IsPrime, true, sizeof(IsPrime));
| ^~~~~~~