Problem | prime |
---|---|
User | 2110100 |
Submission Time | 2023-07-29 19:26:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘int main()’:
prime.cpp:11:6: error: ‘i’ was not declared in this scope
11 | if (i <= 1) {
| ^
prime.cpp:15:28: error: invalid type argument of unary ‘*’ (have ‘double’)
15 | for (int i = 2; i <= n ** 0.5; i++){
| ^~~
prime.cpp:22:1: error: expected ‘}’ at end of input
22 | }
| ^
prime.cpp:6:12: note: to match this ‘{’
6 | int main() {
| ^