can any one tell me what is wrong in this code!

/* Name of the class has to be “Main” only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
for(int i=0;i<t;i++){
int n=sc.nextInt();
int restriction[]=new int[n];
int time[]=new int[n];
for(int j=0;j<n;j++){
restriction[j]=sc.nextInt();
}
for(int j=0;j<n;j++){
time[j]=sc.nextInt();
}
int initial=0;
int count=0;
for(int j=0;j<n;j++){
if(restriction[j]-initial>=time[j]){
count++;
initial=restriction[j];
}
}
System.out.println(count);
}
}
}