Nu stiu cat de corect e structurat, dar in consola da rezultatul ok
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream in("atestat.in");
long long int x, ogl, x1;
int n, pp=0, i, ok=0;
in >> n;
for (i=1; i<=n; i++)
{
in >> x;
if (x%2==0)
{
pp=i;
break;
}
}
for (i=pp; i<n; i++)
{
in >> x;
x1=x;
ogl=0;
while (x1!=0)
{
ogl=ogl*10+x1%10;
x1=x1/10;
}
if (ogl==x)
{
ok=1;
cout << x << " ";
}
}
if (ok==0) cout << "NU EXISTA";
return 0;
in.close();
}