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

Compile Error

nextprime.cpp: In function ‘bool isPrime(int)’:
nextprime.cpp:29:22: error: a function-definition is not allowed here before ‘{’ token
29 | int nextPrime(int N) {
| ^
nextprime.cpp:51:12: error: a function-definition is not allowed here before ‘{’ token
51 | int main() {
| ^
nextprime.cpp:60:1: error: expected ‘}’ at end of input
60 | }
| ^
nextprime.cpp:6:21: note: to match this ‘{’
6 | bool isPrime(int n) {
| ^