Problem | nprime2 |
---|---|
User | DoubleShaurya12 |
Submission Time | 2024-04-06 17:16:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nprime2.cpp: In function ‘std::vector<bool> sieve(int)’:
nprime2.cpp:10:24: error: ‘sqrt’ was not declared in this scope
10 | for (int i = 2; i <= sqrt(n); i++) {
| ^~~~
nprime2.cpp: In function ‘bool isPrimeForLargeN(int, const std::vector<bool>&)’:
nprime2.cpp:26:24: error: ‘sqrt’ was not declared in this scope
26 | for (int i = 2; i <= sqrt(num); i++) {
| ^~~~