Why do i get NZEC in ideone even though the soltuion is accepted in codechef?

//to find the sum of each row in a 2d matrix
import java.io.*;
class Main
{
public static void main(String args[])throws IOException
{
InputStreamReader read=new InputStreamReader(System.in);
BufferedReader in= new BufferedReader(read);
System.out.println(“Enter the test”);
int t=Integer.parseInt(in.readLine( ));//no. of test cases
for(int i1=0;i1<t;i1++)//test cases
{
String f= “”,b="",a="",p="";
a=(in.readLine());
long n=Long.parseLong(a.substring(0,a.indexOf(" “)));
long m=Long.parseLong(a.substring(a.lastIndexOf(” “)+1,a.length()));
for(int i=0;i<n;i++)
{
a=in.readLine();
a=a+” “;
long sum=0;
for(int j=0;j<a.length();j++)
{
sum=sum+Long.parseLong(a.substring(j,a.indexOf(” “,j)));
j=a.indexOf(” ",j);
}
System.out.println(sum);
}
}

}

}