Problem | prime |
---|---|
User | joshua2152 |
Submission Time | 2023-05-05 08:44:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘int main()’:
prime.cpp:7:2: error: ‘sqrn’ was not declared in this scope; did you mean ‘sqrt’?
7 | sqrn = n ** 0.5;
| ^~~~
| sqrt
prime.cpp:7:14: error: invalid type argument of unary ‘*’ (have ‘double’)
7 | sqrn = n ** 0.5;
| ^~~
prime.cpp:8:2: error: ‘i’ was not declared in this scope
8 | i = 2;
| ^
prime.cpp:10:3: error: ‘c’ was not declared in this scope
10 | c = sqrn % i;
| ^
prime.cpp:14:6: error: ‘c’ was not declared in this scope
14 | if (c == 0) cout << "Not Prime";
| ^