"row" was not declared in this scope

Hello, I am very new to this but with current situation in the world i wanted to create a project that would show some spirit to display in my window. I have used a sketch that was posted as untested and modified it to the arrays I wanted. I have run into an issue with the below code stating "row" and "col" not declared in this scope. Any help would be appreciated. I added link to git as code is too long to post here.

Please post the code as an attachment if it is too big.

I have attached the code

dual_flags.ino (9.32 KB)

Yes, you are treating 'row' as a global variable but it is not ever declared as such. It is only defined once in a for statement in loop():

  for (int row = 0; row < 15; row++) {

I don't wish to delve into your logic to learn your intentions, so it's up to you to decide what the best correction would be. Caution: if you do declare a 'row' globally, it won't be the same 'row' variable used in the scope of the for loop.

Also, the humongous array could be in separate file in your folder, included in your sketch with an #include. It appears as a separate tab in the IDE.