Răspuns:
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream fin("maximpar.in");
ofstream fout("maximpar.out");
unsigned i,n,nr,max=1,c=0;
fin>>n;
for(i=1;i<=n;i++)
{fin>>nr;
if(nr==max)
c++;
else
if(nr>max && nr%2==0)
{
max=nr;
c=1;
}
}
if(c==0)
fout<<-1;
else
fout<<max<<' '<<c;
}