Run time error while answer is satisfying all test cases?????

CodeChef: Practical coding for everyone. for this problem i wrote firstly this code
package main;
import java.math.BigInteger;

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner sc=new Scanner(System.in);

int t=sc.nextInt();

for(int i=0;i<t;i++){

BigInteger a=sc.nextBigInteger();

BigInteger b=sc.nextBigInteger();

BigInteger c;

c = a.remainder(b);

BigInteger m=BigInteger.valueOf(2);

BigInteger n=BigInteger.valueOf(0);

if(c.remainder(m)==n){

    System.out.println("EVEn");

}

else

{
System.out.println(“ODD”);

}

}
}
}

and compiler told it run tome error.

then i again wrote another code

class Remain
{
public static void main(String args[])
{
Scanner obj=new Scanner(System.in);
int T=obj.nextInt();
while(T–!=0)
{
int n=obj.nextInt();
int m=obj.nextInt();
int rem=n%m;
if(rem%2==0)
{
System.out.println(“EVEN”);
}
else
System.out.println(“ODD”);
}
}
}

this was right while it was not for all test cases .

WTF???

What is the reason my first code is wrong???

This is a Complete AC solution, using your code, I think there was some minor error!

https://www.codechef.com/submit/complete/18701820

There is an error 403 .