Problem prime
User Aum
Submission Time 2024-03-26 16:41:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int32_t main()’:
prime.cpp:7:6: error: ‘is_prime’ was not declared in this scope
7 | if (is_prime(a) == true){
| ^~~~~~~~
prime.cpp:12:22: error: a function-definition is not allowed here before ‘{’ token
12 | bool is_prime(int n) {
| ^