Forse ho capito quello che vuoi dire, così dovrebbe andare:

codice:
void identica(int x[][3], int n){
	int verif = 0; int c = 0;
	for (int i = 0; i < n; i++)
	for (int j = 0; j < n; j++)
	{
		if (j == i)
		{
			if (x[i][j] != 1)
				c = 1;
		}
		else
		if (x[i][j] != 0)
			verif = 1;
	}
	if (verif == 0 && c == 0)
		cout << "Identica" << endl;
	else
		cout << "Non identica" << endl;
}