# Why this run time error is getting?

**URL:** <https://discuss.codechef.com/t/why-this-run-time-error-is-getting/95520>\
**Category:** general\
**Tags:** java, nzec, runtime-error\
**Created:** [October 19, 2021, 8:06am UTC](https://discuss.codechef.com/t/why-this-run-time-error-is-getting/95520 "2021-10-19T08:06:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prakash\_342](https://discuss.codechef.com/user_avatar/discuss.codechef.com/prakash_342/32/51869_2.png) [@prakash\_342](https://discuss.codechef.com/u/prakash_342)\
**Post date:** [October 19, 2021, 8:06am UTC](https://discuss.codechef.com/t/why-this-run-time-error-is-getting/95520/1 "2021-10-19T08:06:35Z")

</div>

![image](https://s3.amazonaws.com/discourseproduction/original/3X/d/4/d4e7e117c700e55ce02904ceef8c4aeab7bf6c39.png)  
Here I was getting a runtime error but If I give custom input or If I execute in Non-IDE it is working am I close the scanner to resolve this error?

---

<div class="post-metadata">

**Author:** ![ssjgz](https://discuss.codechef.com/user_avatar/discuss.codechef.com/ssjgz/32/346011_2.png) [@ssjgz](https://discuss.codechef.com/u/ssjgz)\
**Post date:** [October 19, 2021, 8:13am UTC](https://discuss.codechef.com/t/why-this-run-time-error-is-getting/95520/2 "2021-10-19T08:13:32Z")

</div>

> [@New to Codechef. Can't understand the platform](https://discuss.codechef.com/t/new-to-codechef-cant-understand-the-platform/39039/3):
>
> One thing that trips up all people migrating from Hackerrank (hello :)) is that clicking “Run” (not “Submit”) here on Codechef does not run your code with the sample testcases - instead, it runs it with empty input (so attempts to read anything from stdin will fail, or give weird values). If you click “Run”, you must provide Custom Input.

---

<div class="post-metadata">

**Author:** ![prakash\_342](https://discuss.codechef.com/user_avatar/discuss.codechef.com/prakash_342/32/51869_2.png) [@prakash\_342](https://discuss.codechef.com/u/prakash_342)\
**Post date:** [October 19, 2021, 9:04am UTC](https://discuss.codechef.com/t/why-this-run-time-error-is-getting/95520/3 "2021-10-19T09:04:16Z")

</div>

Yeah got it to buddy thanks for your responce.

---

<div class="post-metadata">

**Author:** ![nhapho](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@nhapho](https://discuss.codechef.com/u/nhapho)\
**Post date:** [October 19, 2021, 10:01am UTC](https://discuss.codechef.com/t/why-this-run-time-error-is-getting/95520/4 "2021-10-19T10:01:32Z")

</div>

Good
