Problem nextprime
User chiefoggy
Submission Time 2023-12-06 13:39:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nextprime.cpp:4:14: error: ‘x’ was not declared in this scope
4 | bool isPrime(x){
| ^
nextprime.cpp: In function ‘int main()’:
nextprime.cpp:15:22: error: ‘isPrime’ cannot be used as a function
15 | while (!isPrime(n)) n++;
| ^