Răspuns:
#include < iostream >
using namespace std ;
int main ( ) {
int n ; int v [ 100 ] ; // Citire date
cin >> n ;
for ( int i = 0 ; i < n ; i ++ ) cin >> v [ i ] ; // Verificare
bool este_pali = 1 ;
for ( int i = 0 ; i < n / 2 && este_pali ; i ++ )
if ( v [ i ] ! = v [ n - i - 1 ] ) este_pali = 0 ;
if ( este_pali ) cout << " da " ;
else cout << " nu " ; }