Unknown error Link: https://ide.codingblocks.com/s/142731:

This code is running fine in coding blocks compiler but on the coding blocks compiler it is giving this error: ‘import’ does not name a type; did you mean ‘short’? import java.util.Scanner;

*but on coding blocks learning platform it is giving this error

Hi @Mayank2096,
Your code shouldn’t give any error. Did you select the correct language when compiling? Also, there’s a bug in your code, it will give repetitive values as answer too.
Example
4
1
2
3
4
6
will give answer as 2 and 4, 3 and 3. Here 3 occurs only once. So the answer should be 2 and 4 only.