java.util.NoSuchElementException error is coming

https://online.codingblocks.com/app/player/115272/content/73618/4738/code-challenge
It is showing in line 6.

@vbuchchan hey send your code,it is link of contest question.

How do i send my code?

@vbuchchan hey save it on coding blocks ide and send url

I found out my mistake,actually I was pressing the compile and test button without giving any custom input.I thought that compile and test button is use to run the default test case and after that we press the submit button.

@vbuchchan yes ,I have mentioned that ,good you solved it,[please c;lose the doubt and give good rating if I make your doubt clear.