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