PLease help. whenever I do any code it gives error during input but when i do it with same custom input i works fine

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 Codechef.main(Main.java:15)

Are you trying to “Run” without providing “Custom Input”?

1 Like

Does that mean i cant test my code with custom imput and it will run fine when i will submit it?

I tried sir It still gave error please help cant submit any code