Main.cc: In function 'int main()':
Main.cc:15:1: error: expected ';' before 'if'
if(a[i]!=s/2-1){
^
Main.cc:15:1: error: expected primary-expression before 'if'
Main.cc:15:1: error: expected ')' before 'if'
Main.cc: At global scope:
Main.cc:21:1: error: 'cout' does not name a type
cout<< "yes" ;
^
Main.cc:22:1: error: expected unqualified-id before 'return'
return 0;
^