Procedural generation quads for a map,Issue generation quads for procedural map

hello everyone,
I am trying to build a map consisting of only 4 Quads procedurally with the following script.
I’m still working on it and it’s not finished but the problem is that Unity can’t build all the Quads it should but stops first.

You need to declare/initialize i and j before you can use them.