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

Compile Error

nextprime.cpp: In function ‘int main()’:
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:3: error: ‘else’ without a previous ‘if’
12 | }else if(X%a==0){
| ^~~~
nextprime.cpp: At global scope:
nextprime.cpp:16:1: error: expected declaration before ‘}’ token
16 | }
| ^