Răspuns:
#include <iostream>
using namespace std;
int main()
{
int n,i,a[30];
cin>>n;
for(i=1;i<=n;i++) cin>>a[i];
int minim=a[1];
int poz=1;
long int p=1,m=1;
for(i=1;i<=n;i++){
if(a[i]%2==0 && i%2==1) cout<<a[i]<<" ";
if(a[i]<min){
a[i]=min;
poz=i;
}
}
for(i=1;i<=n;i++){
int x=a[i];
m=p
while(x){
m=m*10+x%10;
x/=10;
}
cout<<m<<" ";
}
cout<<min<<" "<<poz;
}
Explicație: