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

Compile Error

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