Im new to code chef, I get this error I didn,t know what to do?

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

you can check your code on local compiler if it works fine submit it.
also this error/exception comes when there is no input to the scanner
you can use this before scanning data


hope it works

Did you just “Run” the code without giving input in custom input?

1 Like

I think so
it also has troubled me