java.util.NoSuchElementException error while coding for basic calculator in java crux course

I am getting an error

Exception in thread “main” java.util.NoSuchElementException
at java.util.Scanner.throwFor(
at Main.main(

while compiling and testing for basic calculator problem in java crux course under the
:fire:Challenges-Fundamentals and Patterns section

here is the code

as seen in the picture below I only used the compile and test option and this code works in visual studio and eclipse but not on coding blocks online ide

i am also getting the same error did you solve it ,please help me also