I Solve problem but CB IDE won't accept my code, please help

package challenges_CB_2;

import java.util.Scanner;

public class RotateAntiClock {

public static void main(String[] args) {
	
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	int m = sc.nextInt();
	
	int[][] a = new int[n][m];
	int[][] output = new int[n][m];
	for(int i=0;i<n;i++) {
		for(int j =0;j<m;j++) {
			
			a[i][j] = sc.nextInt();
		}
	}
	
	

	
	 AnitClockRotate(a);
	 
	 
	 
}

public static void  AnitClockRotate(int[][] a) {
	
	
	
	int[][] output = new int[a.length][a[0].length];
	for(int i = a[0].length-1;i>=0;i--) {
			
				for(int j =0;j<=a.length-1;j++) {
					
			
			
		System.out.print(a[j][i]+" ");
			
			
		}
		System.out.println();
	}
	
	
	
	
}

}

Remove the packages line

Scanner sc = new Scanner(System.in); 		int n = sc.nextInt(); 		int m = sc.nextInt(); 		 		int[][] a = new int[n][m]; 		 		for(int i=0;i<n;i++) { 			for(int j =0;j<m;j++) { 				 				a[i][j] = sc.nextInt(); 			} 		} 		 		  		 		 AnitClockRotate(a); 		  		  		  	} 	 	public static void  AnitClockRotate(int[][] a) { 		 		 		 		 		for(int i = a[0].length-1;i>=0;i--) { 				 					for(int j =0;j<=a.length-1;j++) { 						 				 				 			System.out.print(a[j][i]+" "); 				 				 			} 			System.out.println(); 		} 		 		 		 		 	}  }

Still getting same run-error issue but its working fine on eclipse

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.