Can someone help understanding whts wrong with my code? I get right ans in ideone but SPOJ shows it as a wrong ans!
import java.util.;
import java.lang.;
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner s = new Scanner(System.in);
int t = s.nextInt();
long[] st = new long[(int)t];
long[] end = new long[(int)t];
for(int i = 0; i < t; i++){
st[i] = s.nextLong();
end[i] = s.nextLong();
}
for(int i = 0; i < t; i++){
for(int j = (int)st[i]; j <= (int)end[i]; j++){
if((j % 2) != 0){
System.out.println(j);
}
}
System.out.println();
}
}
}