Problem | prime |
---|---|
User | 2110100 |
Submission Time | 2023-07-29 19:26:47 |
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:20:2: error: expected primary-expression before ‘]’ token
20 | ]
| ^
prime.cpp:23:1: error: expected ‘}’ at end of input
23 | }
| ^
prime.cpp:6:12: note: to match this ‘{’
6 | int main() {
| ^