Language: C++

//------------------------------------------
// C++ templete 
//------------------------------------------
#include <bits/stdc++.h>
#include <iomanip>
using namespace std;
using ll = long long;

#define endl "\n"

//typedef
//------------------------------------------
typedef pair<int, int> PII;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef vector<PII> VP;

//REPEAT
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

//container util
//------------------------------------------
#define pb push_back
#define paired make_pair
#define ALL(a) (a).begin(),(a).end()
#define PRINT(V) for (auto v : (V)) cout << v << " "
#define SORT(V) sort((V).begin(),(V).end())
#define RSORT(V) sort((V).rbegin(), (V).rend())

//constant
//------------------------------------------
const int MOD = 1000000007;
const int INF = 1061109567;
const double EPS = 1e-10;
const double PI  = acos(-1.0);
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};

//math
//------------------------------------------
int QP(int a,int b){int ans=1;do{if(b&1)ans=1ll*ans*a%MOD;a=1ll*a*a%MOD;}while(b>>=1);return ans;}
int QP(int a,int b,int MOD){int ans=1;do{if(b&1)ans=1ll*ans*a%MOD;a=1ll*a*a%MOD;}while(b>>=1);return ans;}
int GCD(int a,int b){return b?GCD(b,a%b):a;}

//debug
//------------------------------------------
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

//動的計画法で役に立つ関数
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

//最大公約数と最小公倍数
ll gcd(ll a, ll b) {
    if(b==0)return a;
    return gcd(b, a%b);
}

ll lcm(ll a, ll b) {
  ll g = gcd(a, b);
  return a/g*b;
}

vector<vector<long long> > comb(int n) {
  vector<vector<long long> > v(n + 1,vector<long long>(n + 1, 0));
  for (int i = 0; i < v.size(); i++) {
    v[i][0] = 1;
    v[i][i] = 1;
  }
  for (int j = 1; j < v.size(); j++) {
    for (int k = 1; k < j; k++) {
      v[j][k] = (v[j - 1][k - 1] + v[j - 1][k]);
    }
  }
  return v;
}

int main() 

    ios_base::sync_with_stdio(0);
    cin.tie(0);
    
    string N;
    cin >> N;
    string M(N);
    reverse(ALL(M));
    
    if (N==M) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}



Compiler output:
a.cc:84:5: error: expected initializer before 'ios_base'
   84 |     ios_base::sync_with_stdio(0);
      |     ^~~~~~~~
a.cc:85:5: error: 'cin' does not name a type
   85 |     cin.tie(0);
      |     ^~~
a.cc:88:5: error: 'cin' does not name a type
   88 |     cin >> N;
      |     ^~~
a.cc:90:12: error: expected constructor, destructor, or type conversion before '(' token
   90 |     reverse(ALL(M));
      |            ^
a.cc:92:5: error: expected unqualified-id before 'if'
   92 |     if (N==M) cout << "Yes" << endl;
      |     ^~
a.cc:93:5: error: expected unqualified-id before 'else'
   93 |     else cout << "No" << endl;
      |     ^~~~
a.cc:94:5: error: expected unqualified-id before 'return'
   94 |     return 0;
      |     ^~~~~~
a.cc:95:1: error: expected declaration before '}' token
   95 | }
      | ^