#include
#include
using namespace std;
const int N = 6;
int** func(int** matrix, int* array);
void init(int** matrix, int* array);
int main()
{
srand(time(nullptr));
int* array = new int[N];
int** matrix = new int* [N];
for (int i = 0; i < N; i++) matrix = new int[N];
vector c =
{
{2,6,3,6,3,8},
{4,1,5,9,3,6},
{5,6,7,2,7,1},
{5,4,5,9,5,1},
{8,3,9,9,4,3},
{6,8,6,2,8,1}
};
for (int i = 0; i < N; i++) for (int j = 0; j < N; j++) matrix[j] = c[j];
for (int i = 0; i < N; i++) array = begin({ 8,5,1,3,4,2 });
matrix = func(matrix, array);
cout