Not able to compile in code editor

It shows error
Exception in thread “main” java.util.NoSuchElementException

I don’t understand why it is showing this , it works fine when I run it on the IDE on my machine

Is there some problem with scanner , I cant figure it out

Yes it is a problem with the input.