Problem nextprime
User om2024
Submission Time 2024-09-19 16:11:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nextprime.cpp: In function ‘bool isPrime(int)’:
nextprime.cpp:30:1: error: a function-definition is not allowed here before ‘{’ token
30 | {
| ^
nextprime.cpp:53:1: error: a function-definition is not allowed here before ‘{’ token
53 | {
| ^
nextprime.cpp:62:1: error: expected ‘}’ at end of input
62 | }
| ^
nextprime.cpp:6:21: note: to match this ‘{’
6 | bool isPrime(int n) {
| ^