I want to create a 2D dynamic bool array (or char is fine too). I'm doing the n-queens problem and I've figured everything out except for this part. Any help?
You're using recursion and the stack to store too much state. Increase your stack size (bad solution) or modify your algorithm to not use recursion in this explosive manner.
This is similar to the mistake of using recursion to calculate fibonacci numbers.