Problem prime
User hlepsneder
Submission Time 2023-10-23 09:29:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:9:4: error: ‘sqrt’ was not declared in this scope
9 | y=sqrt(x)+1
| ^~~~
prime.cpp:10:15: error: ‘i’ was not declared in this scope
10 | for (int i=2;i<=y;i++){
| ^
prime.cpp:16:26: error: lvalue required as left operand of assignment
16 | if (a==0 or x = 2 or x= 3){
| ^
prime.cpp:19:23: error: lvalue required as left operand of assignment
19 | else if (a!=0 or x = 1){
| ^