Problem prime
User StormyGood
Submission Time 2024-01-25 17:08:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:10:8: error: expected unqualified-id before ‘=’ token
10 | bool = false;
| ^
prime.cpp:12:13: error: ‘sqrt’ was not declared in this scope; did you mean ‘sqrs’?
12 | int sqrs = sqrt(a)
| ^~~~
| sqrs
prime.cpp:13:18: error: ‘i’ was not declared in this scope
13 | for (int i = 3; i < sqrs; i+=2)
| ^