A latin square of order is a matrix such that in each row and column appears all the numbers between 1 and . For instance, are respectively latin squares of order 3 and 4.
Using the declarations
typedef vector<int> Row;
typedef vector<Row> Square;
write a function
bool is_latin(const Square& q);
that prints if |q| is a latin square or not.
|q| is not empty and really squared. All its numbers are natural.
You only need to submit the required procedure; your main program will be ignored.