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

Compile Error

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