for (int i = 0; i < num; i++)

{

for (int j = 0; j < num; j++)

{

cin >> p[i][j];

}

}


하면댐?