I am making a C++ program that checks if given aray is a latin square. I need to use a dynamic multi-dimensional array that stores given latin square. But I cant pass the ar
You have to allocate space for the second dimension too, add this after you allocate lsquare:
for(int i = 0; i < n; ++i) { lsquare[i] = new int[n]; }