Problem primepie
User newplayer
Submission Time 2024-02-21 01:21:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

primepie.cpp: In function ‘long long int amountEaten(int)’:
primepie.cpp:10:20: error: ‘sqrt’ was not declared in this scope
10 | for (int j=2;j<=sqrt(i)+1;j++){
| ^~~~