Problem prime
User Aum
Submission Time 2024-03-26 17:31:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int32_t main()’:
prime.cpp:6:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | if (n < 2) return false;
| ^
| yn
prime.cpp:7:29: error: ‘n’ was not declared in this scope
7 | for (int i = 2; i*i <= n; i++) {
| ^
prime.cpp:13:6: error: ‘is_prime’ was not declared in this scope
13 | if (is_prime(a) == true){
| ^~~~~~~~