I am getting this 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 Main.main(Main.java:7)

see my code , its running in eclipse but failed here

Can you provide link to your code?

see it its so confusing https://online.codingblocks.com/app/player/48719/content/24406/4738

The link you shared must be private. Please visit http://cb.lk/ide, paste your code there and save it. Then copy the link and provide it here.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.