Problem prime
User 2110100
Submission Time 2023-07-29 19:27:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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++){
| ^~~