Răspuns:
#include <iostream>
using namespace std;
int main()
{
int n, v[50][50];
cin >> n;
for (int i=1; i<=n; i++)
{
for (int j=1; j<=n; j++)
cin >> v[i][j];
}
int pare;
for (int i=1; i<=n; i++)
{
pare = 0;
for (int j=1; j<=n; j++)
{
if (v[i][j]%2==0)
pare++;
}
if (pare == 1)
cout << "Pe randul " << i << " se afla 1 element par" << endl;
else
cout << "Pe randul " << i << " se afla " << pare << " elemente pare" << endl;
}
return 0;
}