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

Compile Error

nextprime.cpp: In function ‘bool isPrime(int)’:
nextprime.cpp:6:30: error: expected ‘)’ before ‘;’ token
6 | if (int i = 2; i * i <= x; ++i){
| ~ ^
| )
nextprime.cpp:6:34: error: ‘i’ was not declared in this scope
6 | if (int i = 2; i * i <= x; ++i){
| ^