Somewhere there is an error in the result constantly 2 is deduced. I can't find her.
Or offer your vision for solving this task:
determine whether a given square matrix is symmetric with respect to its lateral diagonal.
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{
const int ROWS{ 2 };
const int COLS{ 5 };
srand((unsigned)time(NULL));
int col = 0, row = 0;
int E[ROWS][COLS];