Problem prime
User wezmaster
Submission Time 2023-11-15 15:32:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘bool isPrime(int)’:
prime.cpp:16:12: error: a function-definition is not allowed here before ‘{’ token
16 | int main() {
| ^
prime.cpp:28:1: error: expected ‘}’ at end of input
28 | }
| ^
prime.cpp:3:21: note: to match this ‘{’
3 | bool isPrime(int n) {
| ^