Problem prime
User Elwinthenerd
Submission Time 2024-03-31 13:26:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:6:19: error: ‘sqrt’ was not declared in this scope
6 | for (int i=2; i<=sqrt(x); ++i) {
| ^~~~
prime.cpp:7:11: error: lvalue required as left operand of assignment
7 | if (x%i=0) {
| ^