Same error is being shown upon "Compile and testing" , in all questions, but it gets accepted on submitting often...is it some coding blocks compiler problem?

the following error is being shown everytime in all questions…but is never shown in eclipse in my laptop

Exception in thread “main” java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:862)
at java.util.Scanner.next(Scanner.java:1485)
at java.util.Scanner.nextInt(Scanner.java:2117)
at java.util.Scanner.nextInt(Scanner.java:2076)
at Main.main(Main.java:5)

Please post your code as well