I'm trying to read a 2-dimensional array from the console but my code is wrong and reads twice my last line, what am I doing wrong??
Example INPUT:
1
01
10
OUTPUT:
10
10
    int n;
    cin>>n;
    char *A=new char[n,n];
    for(int i=0; i<n; i++)
    {
        for(int j=0; j<n; j++)
        {
            cin>>A[i,j];
        }
        cin.ignore();
    }
 
     
     
    