Sir i am nott able to submit it while its working fine in my ide

public class TilingProblem {

private static void countWays(int n, int m) 
{ 
	int count[] = new int[n + 1]; 
	count[0] = 0; 
	
	for (int i = 1; i <= n; i++) { 

		if (i > m) 
			count[i] = count[i - 1] + count[i - m]; 

		else if (i < m || i == 1) 
			count[i] = 1; 

		else
			count[i] = 2; 
	} 
	System.out.println(count[n]);
	//return count[n]; 
} 

public static void main(String[] args) 
{ 
	Scanner sc=new Scanner(System.in);
	int n = 0,m = 0;
	int t=sc.nextInt();
	while(t>0) {
		 n=sc.nextInt();
		 m=sc.nextInt();
		 countWays(n, m);
		 t--;
	}
	

} 

}

@karamjitverma89,
https://ide.codingblocks.com/s/262431 corrected code.

Errors:

  1. Use long instead of int in count.
  2. Do count[i] = count[i] % mod; where mod = 1000000007, as mentioned in the question.