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

Compile Error

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