Problem | nextprime |
---|---|
User | christal |
Submission Time | 2023-12-06 10:12:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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){
| ^~~~