I ran this on NetBeans 8.2 with Cygwin.
#include <iostream>
#include <cstdlib>
using namespace std;
int main() {
/*****************************************************************************/   
    int i,j=0;
    int a;
    int Mtrz1[1][2] = {0};
    int Mtrz2[1][2] = {0};
    int MtrzR[1][2] = {0};
    int MtrzA[1][2] = {0};
/******************************************************************************/   
    for (i=0 ; i<2 ; ++i){
        for (j=0 ; j<3 ; ++j){
            Mtrz1[i][j]=(rand() % 10);
        }
    }
    for (i=0 ; i<2 ; ++i){
        for (j=0 ; j<3 ; ++j){
            cout << Mtrz1[i][j] << " ";
            fflush;
        }
        cout << " " << endl;
    }
    cout << " " << endl;
    /* Here, for some kind of reason [0][2] and [1][0] of 
    MtrxB seem to be getting the same value */ 
    for (i=0 ; i<2 ; ++i){
        for (j=0 ; j<3 ; ++j){
            Mtrz2[i][j]=((j*3)+(9*i)+10);
            /* The formula here is because it did not read the value of any
               variable I passed to it */ 
        }
    }
    for (i=0 ; i<2 ; ++i){
        for (j=0 ; j<3 ; ++j){
            cout << Mtrz2[i][j] << " ";
            fflush;
        }
        cout << " " << endl;
    }
    return 0;
}
 
     
     
    