Problem prime
User spidermancoolboy
Submission Time 2024-01-30 09:11:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:7:2: error: ‘sqrt’ was not declared in this scope
7 | sqrt=num**1/2
| ^~~~
prime.cpp:7:12: error: invalid type argument of unary ‘*’ (have ‘int’)
7 | sqrt=num**1/2
| ^
prime.cpp:10:7: error: ‘else’ without a previous ‘if’
10 | } else {
| ^~~~