|I do not spam|
Well you have at least 4 posts about the same thing, that is what MikeyBoy
meant. It is annoying for those who put effort in to reply.
Normally, instead of variables a1, a2, a3 etc. One would have an array, or any other container that has the  operator, or at() function. So you can refer to them as a, a etc
Despite that your variables are already 2d arrays, there is nothing stopping you from putting them into one of the containers mentioned. That is one of the great things about the STL, one can have containers filled with objects of any type.
Have a look in the reference section, top left of this page.
I have just noticed that others have already said the exact same thing - which is why spamming is annoying.
You have ignored the advice given & continued to create new topics
Edit: And this should be in the beginners section, not the general section.