when I compile my code i get this weird error.
bash: line 12: 7202 Segmentation fault $file.o $args
And this error is different to any of c++ error I have encountered because of the way this is written.
And as an extra little thing could you critique my code and tell me things I could do better?
Here is the code
In general terms this error often occurs when you're reading data out of the bounds of memory, particularly an array. At least that's where you could start looking.
Line 38 appears to be worthy of closer examination. What is the purpose? You can't declare a board dynamically the way you're going about it. Maybe just try your program where the size of the board is hard coded then work from there.