Problem | prime |
---|---|
User | TheAccomplice |
Submission Time | 2024-04-27 11:45:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘int main()’:
prime.cpp:37:32: error: lvalue required as left operand of assignment
37 | else if (n % 2 = 0 || n % 3 = 0){
| ^
prime.cpp:42:3: error: ‘m’ was not declared in this scope
42 | m = floor(sqrt(n)) + 1;
| ^
prime.cpp:42:13: error: ‘sqrt’ was not declared in this scope
42 | m = floor(sqrt(n)) + 1;
| ^~~~
prime.cpp:42:7: error: ‘floor’ was not declared in this scope
42 | m = floor(sqrt(n)) + 1;
| ^~~~~
prime.cpp:46:18: error: lvalue required as left operand of assignment
46 | if (n % num = 0){
| ^