Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
 int N;
  cin >> N;
  if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
  cout << "Yes" << endl;
  }
  else {
  cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |       ~~^~~~~~~~~
a.cc:6:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                      ~~^~~~~~~~~
a.cc:6:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                     ~~^~~~~~~~~
a.cc:6:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                    ~~^~~~~~~~~
a.cc:6:69: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                   ~~^~~~~~~~~
a.cc:6:84: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                                  ~~^~~~~~~~~
a.cc:6:99: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                                                 ~~^~~~~~~~~
a.cc:6:114: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                                                                ~~^~~~~~~~~
a.cc:6:129: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                                                                               ~~^~~~~~~~~
a.cc:6:144: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                                                                                              ~~^~~~~~~~~
a.cc:6:159: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                                                                                                             ~~^~~~~~~~~
a.cc:6:174: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                                                                                                                            ~~^~~~~~~~~
a.cc:6:189: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                                                                                                                                           ~~^~~~~~~~~
a.cc:6:204: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                                                                                                                                                          ~~^~~~~~~~~
a.cc:6:219: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                                                                                                                                                                         ~~^~~~~~~~~
a.cc:6:234: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                                                                                                                                                                                        ~~^~~~~~~~~
a.cc:6:249: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                                                                                                                                                                                                       ~~^~~~~~~~~
a.cc:6:264: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*" || N == "888*" || N == "999*" || N == "*000" || N == "*111" || N == "*222" || N == "*333" || N == "*444" || N == "*555" || N == "*666" || N == "*777" || N == "*888" || N == "*999"){
      |                                                                                                                                                                                                                                                                      ~~^~~~~~~~~
a.cc:6:279: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (N == "000*" || N == "111*" || N == "222*" || N == "333*" || N == "444*" || N == "555*" || N == "666*" || N == "777*