I must multiply matrix by itself until the matrix in some degree would not be equal one of the preceding matrices. Then I need to get the values of degrees, in which the matrices are equal. The number of rows and columns are equal. Matrix is stored in a two-dimensional array. Values are 0 or 1. What is the best way to check for equality with the previous matrices? I tried to use vector
to store matrices:
vector<int[5][5]> m;
but got an error cannot convert from 'const int [5][5]' to 'int [5][5]'
. Waiting for an advice.