Getting an unfamiliar error

Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

to get rid of this use
ArrayList<Stack<Integer>> a = new ArrayList<>();
instead of
Stack<Integer> A[]=new Stack[q+1];