Getting NZEC runtime error in java

I know the meaning of this error after reading a lot of solution for it.
I wrote a simple code in Codechef IDE which is to take a number as input and simply print it.

my code is-

import java.util.*;
class abc
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
System.out.println(n);}}

I am getting NZEC error even in this simplest code.

Hi, @kanu1898

It sounds like you didn’t provide any custom input in the Codechef IDE. Next to the “Run” button, there’s a checkbox to provide “Custom Input”. Try checking that box and typing 42 into the Custom Input box, then see what happens when you run your code. Good luck!