Problem prime
User playiprobro
Submission Time 2024-02-16 10:55:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘bool check_prime(int)’:
prime.cpp:21:11: error: a function-definition is not allowed here before ‘{’ token
21 | int main(){
| ^
prime.cpp:26:1: error: expected ‘}’ at end of input
26 | }
| ^
prime.cpp:5:25: note: to match this ‘{’
5 | bool check_prime(int n) {
| ^