Problem nextprime
User CheeseAndBread
Submission Time 2024-02-23 16:01:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nextprime.cpp: In function ‘int isPrime(int)’:
nextprime.cpp:8:17: error: ‘sqrt’ was not declared in this scope
8 | root = (int)sqrt(n);
| ^~~~