Problem nextprime
User christal
Submission Time 2023-12-06 10:10:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nextprime.cpp: In function ‘int main()’:
nextprime.cpp:8:37: error: expected ‘)’ before ‘;’ token
8 | for (2<=X<=10000; 2<=a<=10000; a!=X; a!=1){
| ~ ^
| )
nextprime.cpp:8:43: error: expected ‘;’ before ‘)’ token
8 | for (2<=X<=10000; 2<=a<=10000; a!=X; a!=1){
| ^
| ;
nextprime.cpp:12:4: error: ‘else’ without a previous ‘if’
12 | } else
| ^~~~