int *(*testState) = new int*[n];for (int i = 0; i < n; ++i){ testState[i] = new int[w]; for (int j = 0; j < w; ++j) { testState[i][j] = 1; }}