same code has run for the first time and completed all testcases but when i tried this code for the next time it giving me error and the same error is coming for all other code i attempting on coding blocks platform and all the codes are running error
free on online gdb and other platforms .
error- 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 Manmohan.main(Manmohan.java:6)
please review as soon as possible