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

Compile Error

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