Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  
  if (N >= 1110 && N < 1120 || N == 1222 || N == 1333 || N == 1444 || N = 1555 || N == 1666 || N == 1777 || N == 1888 || N = 1999) cout << "Yes" << endl;
  else if (N >= 2220 && N < 2230 || N == 2222 || N == 2333 || N == 2444 || N = 2555 || N == 2666 || N == 2777 || N == 2888 || N = 2999) cout << "Yes" << endl;
  else if (N >= 3330 && N < 3340 || N == 3222 || N == 3333 || N == 3444 || N = 3555 || N == 3666 || N == 3777 || N == 3888 || N = 3999) cout << "Yes" << endl;
  else if (N >= 4440 && N < 4450 || N == 4222 || N == 4333 || N == 4444 || N = 4555 || N == 4666 || N == 4777 || N == 4888 || N = 4999) cout << "Yes" << endl;
  else if (N >= 5550 && N < 5560 || N == 5222 || N == 5333 || N == 5444 || N = 5555 || N == 5666 || N == 5777 || N == 5888 || N = 5999) cout << "Yes" << endl;
  else if (N >= 6660 && N < 6670 || N == 6222 || N == 6333 || N == 6444 || N = 6555 || N == 6666 || N == 6777 || N == 6888 || N = 6999) cout << "Yes" << endl;
  else if (N >= 7770 && N < 7780 || N == 7222 || N == 7333 || N == 7444 || N = 7555 || N == 7666 || N == 7777 || N == 7888 || N = 7999) cout << "Yes" << endl;
  else if (N >= 8880 && N < 8890 || N == 8222 || N == 8333 || N == 8444 || N = 8555 || N == 8666 || N == 8777 || N == 8888 || N = 8999) cout << "Yes" << endl;
  else if (N >= 9990 && N < 10000 || N == 9222 || N == 9333 || N == 9444 || N = 9555 || N == 9666 || N == 9777 || N == 9888 || N = 9999) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:119: error: lvalue required as left operand of assignment
    8 |   if (N >= 1110 && N < 1120 || N == 1222 || N == 1333 || N == 1444 || N = 1555 || N == 1666 || N == 1777 || N == 1888 || N = 1999) cout << "Yes" << endl;
      |                                                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
a.cc:9:124: error: lvalue required as left operand of assignment
    9 |   else if (N >= 2220 && N < 2230 || N == 2222 || N == 2333 || N == 2444 || N = 2555 || N == 2666 || N == 2777 || N == 2888 || N = 2999) cout << "Yes" << endl;
      |                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
a.cc:10:124: error: lvalue required as left operand of assignment
   10 |   else if (N >= 3330 && N < 3340 || N == 3222 || N == 3333 || N == 3444 || N = 3555 || N == 3666 || N == 3777 || N == 3888 || N = 3999) cout << "Yes" << endl;
      |                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
a.cc:11:124: error: lvalue required as left operand of assignment
   11 |   else if (N >= 4440 && N < 4450 || N == 4222 || N == 4333 || N == 4444 || N = 4555 || N == 4666 || N == 4777 || N == 4888 || N = 4999) cout << "Yes" << endl;
      |                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
a.cc:12:124: error: lvalue required as left operand of assignment
   12 |   else if (N >= 5550 && N < 5560 || N == 5222 || N == 5333 || N == 5444 || N = 5555 || N == 5666 || N == 5777 || N == 5888 || N = 5999) cout << "Yes" << endl;
      |                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
a.cc:13:124: error: lvalue required as left operand of assignment
   13 |   else if (N >= 6660 && N < 6670 || N == 6222 || N == 6333 || N == 6444 || N = 6555 || N == 6666 || N == 6777 || N == 6888 || N = 6999) cout << "Yes" << endl;
      |                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
a.cc:14:124: error: lvalue required as left operand of assignment
   14 |   else if (N >= 7770 && N < 7780 || N == 7222 || N == 7333 || N == 7444 || N = 7555 || N == 7666 || N == 7777 || N == 7888 || N = 7999) cout << "Yes" << endl;
      |                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
a.cc:15:124: error: lvalue required as left operand of assignment
   15 |   else if (N >= 8880 && N < 8890 || N == 8222 || N == 8333 || N == 8444 || N = 8555 || N == 8666 || N == 8777 || N == 8888 || N = 8999) cout << "Yes" << endl;
      |                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
a.cc:16:125: error: lvalue required as left operand of assignment
   16 |   else if (N >= 9990 && N < 10000 || N == 9222 || N == 9333 || N == 9444 || N = 9555 || N == 9666 || N == 9777 || N == 9888 || N = 9999) cout << "Yes" << endl;
      |                                                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~