criyle/codenet-compile-errors huggingface dataset:
Language: C++

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

int main(){
  int N;
  vector<int> bits(4);
  
  cin >> N;
  for (i=3,i>-1,i--){
    bits.at(i)=N/(10^i);
    N=N-bits.at(i)*10^i;
  }
  if(((bits.at(0)==bits.at(1))&&(bits.at(0)==bits.at(1))) || ((bits.at(1)==bits.at(2))&&(bits.at(1)==bits.at(3)))){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i=3,i>-1,i--){
      |        ^
a.cc:13:3: error: expected primary-expression before 'if'
   13 |   if(((bits.at(0)==bits.at(1))&&(bits.at(0)==bits.at(1))) || ((bits.at(1)==bits.at(2))&&(bits.at(1)==bits.at(3)))){
      |   ^~
a.cc:12:4: error: expected ';' before 'if'
   12 |   }
      |    ^
      |    ;
   13 |   if(((bits.at(0)==bits.at(1))&&(bits.at(0)==bits.at(1))) || ((bits.at(1)==bits.at(2))&&(bits.at(1)==bits.at(3)))){
      |   ~~
a.cc:13:3: error: expected primary-expression before 'if'
   13 |   if(((bits.at(0)==bits.at(1))&&(bits.at(0)==bits.at(1))) || ((bits.at(1)==bits.at(2))&&(bits.at(1)==bits.at(3)))){
      |   ^~
a.cc:12:4: error: expected ')' before 'if'
   12 |   }
      |    ^
      |    )
   13 |   if(((bits.at(0)==bits.at(1))&&(bits.at(0)==bits.at(1))) || ((bits.at(1)==bits.at(2))&&(bits.at(1)==bits.at(3)))){
      |   ~~
a.cc:9:7: note: to match this '('
    9 |   for (i=3,i>-1,i--){
      |       ^
Language: C++

#include<bits/stdc++.h>
 
using namespace std;
int main()
 
{
  int a,b,c,d,n;
  
  cin >> n;
  
  a = n / 1000;
  b = (n % 1000) / 100;
  c = (n % 100) / 10;
  d = n % 10;
  
  if (a == b && b == c && c == d){
	cout << "Yes" << endl;
  }else if ((a == b && b == c) || (b == c && c == d) || (a == b && a==d) || (a == c && a == d) || (b == c && b == d)){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
    
    return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:24:4: error: expected '}' at end of input
   24 |   }
      |    ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  char ch = (char)N;
  if (ch[0] == ch[1] && ch[0] == ch[2]) {
    cout << "Yes" << endl;
  }
  else if (ch[1] == ch[2] && ch[1] == ch[3]) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: invalid types 'char[int]' for array subscript
    8 |   if (ch[0] == ch[1] && ch[0] == ch[2]) {
      |         ^
a.cc:8:18: error: invalid types 'char[int]' for array subscript
    8 |   if (ch[0] == ch[1] && ch[0] == ch[2]) {
      |                  ^
a.cc:8:27: error: invalid types 'char[int]' for array subscript
    8 |   if (ch[0] == ch[1] && ch[0] == ch[2]) {
      |                           ^
a.cc:8:36: error: invalid types 'char[int]' for array subscript
    8 |   if (ch[0] == ch[1] && ch[0] == ch[2]) {
      |                                    ^
a.cc:11:14: error: invalid types 'char[int]' for array subscript
   11 |   else if (ch[1] == ch[2] && ch[1] == ch[3]) {
      |              ^
a.cc:11:23: error: invalid types 'char[int]' for array subscript
   11 |   else if (ch[1] == ch[2] && ch[1] == ch[3]) {
      |                       ^
a.cc:11:32: error: invalid types 'char[int]' for array subscript
   11 |   else if (ch[1] == ch[2] && ch[1] == ch[3]) {
      |                                ^
a.cc:11:41: error: invalid types 'char[int]' for array subscript
   11 |   else if (ch[1] == ch[2] && ch[1] == ch[3]) {
      |                                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  vector<int> a(4);
  int n,i=0;
  cin >> n;
  while(n){
	a.at(i) = n%10;
    n /= 10;
    i++;
  }
  int c=0,d=0;
  if(a.at(0)== a.at(1) && a.at(1)=== a.at(2) || a.at(1) == a.at(2) && a.at(2) == a.at(3)) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:36: error: expected primary-expression before '=' token
   13 |   if(a.at(0)== a.at(1) && a.at(1)=== a.at(2) || a.at(1) == a.at(2) && a.at(2) == a.at(3)) cout << "Yes" << endl;
      |                                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  vector<int> a(4);
  int n,i=0;
  cin >> n;
  while(n){
	a.at(i) = n%10;
    n /= 10;
    i++;
  }
  int c=0,d=0;
  if(a.at(0) == a.at(1) === a.at(2) || a.at(1) == a.at(2) == a.at(3)) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: expected primary-expression before '=' token
   13 |   if(a.at(0) == a.at(1) === a.at(2) || a.at(1) == a.at(2) == a.at(3)) cout << "Yes" << endl;
      |                           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  vector<int> a(4);
  int n,i=0;
  while(n){
	a.at(i) = n%10;
    n /= 10;
    i++;
  }
  int c=0,d=0;
  for(i=0; i<4; i++){
    for(j=0; j<4; j++)
    	if(a.at(i) == a.at(j)) c++;
    if(c >= 3) {d=1; break;}
    c=0;
  }
  if(d == 1) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'j' was not declared in this scope
   13 |     for(j=0; j<4; j++)
      |         ^
Language: C++

# include < cstdio >
char s [5];
int main ()
{
scanf("%s" ,&s );
if ( s[0]== s [1] && s[1] == s[2]) puts ("Yes");
else if ( s[1] == s[2] && s[2] == s[3]) puts ("Yes");
else puts ("No");
}

Compiler output:
a.cc:1:11: fatal error:  cstdio : No such file or directory
    1 | # include < cstdio >
      |           ^~~~~~~~~~
compilation terminated.
Language: C++

# include < cstdio >
char s [5];
int main ()
{
scanf ("% s " ,& s );
if ( s [0]== s [1]&& s [1]== s [2]) puts ("Yes");
else if ( s [1]== s [2]&& s [2]== s [3]) puts ("Yes");
else puts ("No");
}

Compiler output:
a.cc:1:11: fatal error:  cstdio : No such file or directory
    1 | # include < cstdio >
      |           ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
  int N, N1, N10, N100, N1000;
  cin >> N;

  N1 = N % 10;
  N = N - N1;
  N10 = N % 100;
  N = N - N10;
  N10 = N10 / 10;
  N100 = N % 1000;
  N = N - N100;
  N100 = N100 / 100;
  N1000 = N1000 / 1000;
  
  if (N1000 = N100) & (N100 = N10)  {
    cout << "Yes" << endl;
  }
  else if (N100 = N10) & (N10 = N1) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:35: error: expected ';' before '{' token
   18 |   if (N1000 = N100) & (N100 = N10)  {
      |                                   ^ ~
      |                                   ;
a.cc:21:36: error: expected ';' before '{' token
   21 |   else if (N100 = N10) & (N10 = N1) {
      |                                    ^~
      |                                    ;
Language: C++

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

int main() {
  int N, N1, N10, N100, N1000;
  cin >> N;

  N1 = N % 10;
  N = N - N1;
  N10 = N % 100;
  N = N - N10;
  N10 = N10 / 10;
  N100 = N % 1000;
  N = N - N100;
  N100 = N100 / 100;
  N1000 = N1000 / 1000;
  
  if (N1000 = N100) && (N100 = N10)  {
    cout << "Yes" << endl;
  }
  else if (N100 = N10) && (N10 = N1) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:24: error: expected identifier before '(' token
   18 |   if (N1000 = N100) && (N100 = N10)  {
      |                        ^
a.cc:21:27: error: expected identifier before '(' token
   21 |   else if (N100 = N10) && (N10 = N1) {
      |                           ^
Language: C++

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

int main() {
  int N, N1, N10, N100, N1000;
  cin >> N;

  N1 = N % 10;
  N = N - N1;
  N10 = N % 100;
  N = N - N10;
  N10 = N10 / 10;
  N100 = N % 1000;
  N = N - N100;
  N100 = N100 / 100;
  N1000 = N1000 / 1000;
  
  if (N1000 = N100 = N10) || (N100 = N10 = N1) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:27: error: expected primary-expression before '||' token
   18 |   if (N1000 = N100 = N10) || (N100 = N10 = N1) {
      |                           ^~
Language: C++

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

int main() {
  int N;
  cin >> N;
  int A = N / 1000;
  int B = (N - A * 1000) / 100;
  int C = (N - A * 1000 - B * 100) / 10;
  int D = N - A * 1000 - B * 100 - C * 10;
  
  if(A == B $$ B == C || B == C && C == D){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected ')' before '$$'
   12 |   if(A == B $$ B == C || B == C && C == D){
      |     ~      ^~~
      |            )
Language: C++

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

int main() {
  int N,a,b,c,d;
  cin >> N;
  a = N/1000; //1000nokurai
  b = (N%1000)/100; //1
  c = (N$100)/10;
  d = N%10;
  if (a==b==c) {
    cout << "Yes" << endl;
  }
  else if (b==c==d) {
    cout << "Yes" << endl;
  }
  else
    cout "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'N$100' was not declared in this scope
    9 |   c = (N$100)/10;
      |        ^~~~~
a.cc:18:9: error: expected ';' before string constant
   18 |     cout "No" << endl;
      |         ^~~~~
      |         ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a;
  cin >>a;
  cout << (((a % 1000 == 0 )||( a % 111 < a )||(a % 1110 < a))||(a % 1111 < a)) ? "Yes" : "No" ) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:95: error: expected ';' before ')' token
    6 |   cout << (((a % 1000 == 0 )||( a % 111 < a )||(a % 1110 < a))||(a % 1111 < a)) ? "Yes" : "No" ) << endl;
      |                                                                                               ^~
      |                                                                                               ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a;
  cin >>a;
  cout (a % 1000 == 0 || a % 111 < a ||a%1110 < a ? "Yes" : "No" )<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (const char*)'
    6 |   cout (a % 1000 == 0 || a % 111 < a ||a%1110 < a ? "Yes" : "No" )<<endl;
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N , A , B , C , D ;
  cin  >>  N  ;
  A = N % 10 ;
  B = (N - A )/10 % 10  ;
  C = (N -10*B - A)/100 % 10  ; 
  D = (N -100*D -10*B -A)/1000  ;
 // cout << A << endl;
 // cout << B << endl;
 // cout << C << endl;
 // cout << D << endl;
  
  if (（B == C == D)|| (A == B == C )){
    cout << "Yes" <<endl; 
  }
  else{ 
    cout << "No" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: '\U0000ff08B' was not declared in this scope
   16 |   if (（B == C == D)|| (A == B == C )){
      |       ^~~
a.cc:16:21: error: expected primary-expression before '||' token
   16 |   if (（B == C == D)|| (A == B == C )){
      |                     ^~
Language: C++

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

int main(){
  int N;
  cin >> N;
  int a = N / 1000;
  int b = (N / 100) / 10;
  int c = (N % (a * 1000 + b * 100)) / 10;
  int d = N - (a * 1000 + b * 100 + c * 10)
    if (a == b == c == d || a == b == c != d || b == c == d != a) {
      cout << "Yes" << endl;
    }
    else {
      cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'if'
   11 |     if (a == b == c == d || a == b == c != d || b == c == d != a) {
      |     ^~
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else {
      |     ^~~~
Language: C++

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

int main(){
  int N;
  cin >> N;
  int i = N % 1000;
  int ii = N % 100;
  int iii = N % 10;
  int d = iii
  int c = (ii - iii) / 10
  int b = (i - ii) / 100
  int a = (N - i) / 1000
    if (a == b == c == d || a == b == c != d || a == b == d != c || a == c == d != b || b == c == d != a) {
      cout << "Yes" << endl;
    }
    else {
      cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'int'
   11 |   int c = (ii - iii) / 10
      |   ^~~
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else {
      |     ^~~~
Language: C++

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

int main() {
  int n, a, b, c, d;
  cin >> n;
  a = n / 1000
  b = n % 1000 / 100
  c = n % 100 / 10
  d = n % 10
  if ((a == b && b == c) || (b == c && c == d)) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before 'b'
    7 |   a = n / 1000
      |               ^
      |               ;
    8 |   b = n % 1000 / 100
      |   ~            
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
Language: C++

#include <cstdio >
char s[4];
int main() {
  scanf("%s",&s); 
  if(s[0]==s[1]&&s[1]==s[2])puts("Yes");
  else if(s[1]==s[2]&&s[2]==s[3])puts("Yes");
  else puts("No");
}


Compiler output:
a.cc:1:10: fatal error: cstdio : No such file or directory
    1 | #include <cstdio >
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  scanf("%s",&s);
  if(s[0]==s[1]&&s[1]==s[2])puts("Yes");
  else if(s[1]==s[2]&&s[2]==s[3])puts("Yes"); 
  else puts("No");
}

 

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 's' was not declared in this scope
    5 |   scanf("%s",&s);
      |               ^
Language: C++

  int N;
  int a,b,c,d;
  
  cin >> N;
  a = N/1000;
  b = N%1000/100;
  c = N%100/10;
  d = N%10;
  if(a == b && a == c){
    cout << "Yes" << endl;
  }else if(b == c && b == d){
    cout << "Yes"<< endl;
  }else{
    cout << "No"<< endl;
  }

Compiler output:
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin >> N;
      |   ^~~
a.cc:5:3: error: 'a' does not name a type
    5 |   a = N/1000;
      |   ^
a.cc:6:3: error: 'b' does not name a type
    6 |   b = N%1000/100;
      |   ^
a.cc:7:3: error: 'c' does not name a type
    7 |   c = N%100/10;
      |   ^
a.cc:8:3: error: 'd' does not name a type
    8 |   d = N%10;
      |   ^
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if(a == b && a == c){
      |   ^~
a.cc:11:4: error: expected unqualified-id before 'else'
   11 |   }else if(b == c && b == d){
      |    ^~~~
a.cc:13:4: error: expected unqualified-id before 'else'
   13 |   }else{
      |    ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,m,n) for(int i=m; i<n; i++)
#define co(n) cout << n << endl
using namespace std;
int main(){
  int n;
  cin >> n;
  if(n/10/%111==0 || n%1000/111==0) co("Yes");
  else co("No");

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before '%' token
    8 |   if(n/10/%111==0 || n%1000/111==0) co("Yes");
      |           ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,m,n) for(int i=m; i<n; i++)
#define co(n) cout << n << endl
using namespace std;
int main(){
  int n;
  cin >> n;
  if(n/10/%111==0 || n%1000/111==0) co("Yes");;
  else co("No");

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before '%' token
    8 |   if(n/10/%111==0 || n%1000/111==0) co("Yes");;
      |           ^
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else co("No");
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(void){
  string s;
  cin >> s;
  
  if(((s[0] == s[1]) && (s[1] == s[2])) || ((s[1] == s[2]) && (s[2] == s[3])){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:78: error: expected ')' before '{' token
    8 |   if(((s[0] == s[1]) && (s[1] == s[2])) || ((s[1] == s[2]) && (s[2] == s[3])){
      |     ~                                                                        ^
      |                                                                              )
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    string N;
    cin>>N;

    int n=0;

    for(int i=0; i<=3; i++)
    {
        for(int j=1; i+j<=3; j++)
            if(N[i]==N[i+J=j])
            {
                n++;
            }
    }

    if(n>=3)
    {
        cout<<"Yes";
    }
    else{cout<<"No";}

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: 'J' was not declared in this scope
   13 |             if(N[i]==N[i+J=j])
      |                          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    string N;
    cin>>N;

    int n=0;

    for(int i=0; i<=3; i++)
    {
        for(int j=1; j<=3; j++)
            if(N[i]==N[i+J])
            {
                n++;
            }
    }

    if(n>=3)
    {
        cout<<"Yes";
    }
    else{cout<<"No";}

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: 'J' was not declared in this scope
   13 |             if(N[i]==N[i+J])
      |                          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    string N;
    cin>>N;

    int n=0;

    for(int i=0; i<=4; i++)
    {
        for(int j=1; j<=3; j++)
            if(N[i]==N[i+J])
            {
                n++;
            }
    }

    if(n>=3)
    {
        cout<<"Yes";
    }
    else{cout<<"No";}

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: 'J' was not declared in this scope
   13 |             if(N[i]==N[i+J])
      |                          ^
Language: C++

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

int main(){
  int n;
  cin >> n;
  int a, b, c, d;
  a = n%10;
  b = n/10-(n/100)*10;
  c = n/100-(n/1000)*10;
  d = n/1000;
  if (((a == b) && (b == c)) || ((b == c) && (c == d))){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl:
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: expected ';' before ':' token
   16 |     cout << "No" << endl:
      |                         ^
      |                         ;
Language: C++

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

int main() {
  int n;
  cin >> n;
  int a, b, c, d;
  a = n / 1000;
  b = n / 100 - a * 10;
  d = n % 10;
  c = (n % 100 - d) / 10;
  if((a == b && c == b) || (b == c && c == d) {
    cout << "Yes" << endl;
  }else {
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:46: error: expected ';' before '{' token
   12 |   if((a == b && c == b) || (b == c && c == d) {
      |                                              ^~
      |                                              ;
a.cc:14:4: error: expected primary-expression before 'else'
   14 |   }else {
      |    ^~~~
a.cc:14:4: error: expected ')' before 'else'
   14 |   }else {
      |    ^~~~
      |    )
a.cc:12:5: note: to match this '('
   12 |   if((a == b && c == b) || (b == c && c == d) {
      |     ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  if (N%100/111==0||N/10/111==0) {
    cout << "Yes" << endl;
  }
  elce {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'elce' was not declared in this scope
   11 |   elce {
      |   ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  if (N%100/111==0||N/10/111==0) {
    cout << "Yes" << endl;
  }
  elce (){
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'elce' was not declared in this scope
   11 |   elce (){
      |   ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  if (N%100/111==0||N/10/111==0) {
    cout << "Yes" << endl;
  }
  elce (){
    cout << "No" << endl;
  }
}

Compiler output:
a.cc:1:9: fatal error: bits/stdc++/h: No such file or directory
    1 | #include<bits/stdc++/h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
  int N;
  cin << N;
  
  if (N%100/111==0||N/10/111==0) {
    cout >> "Yes" >> endl;
  }
  elce (){
    cout >> "No" >> endl;
  }
}

Compiler output:
a.cc:1:9: fatal error: bits/stdc++/h: No such file or directory
    1 | #include<bits/stdc++/h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
int main(){
  int N;
  cin >> N;
  if(N % 1110 < 10 || (N % 1000) % 111 == 0){
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> N;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << "Yes" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout << "Yes" << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << "No" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << "No" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() {
  char s[];
  cin >> s[0] >> s[1] >> s[2] >> s[3];
  cout << ((s[0] == s[1] && s[1] == s[2])||(s[1] == s[2] && s[2] == s[3])?"Yes":"No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: storage size of 's' isn't known
    5 |   char s[];
      |        ^
Language: C++

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

int main(){
  int N,a;
  cin>>N;
  
  a=N-N/1000*1000;
  
  if(a%111==0||n/1110<10){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'n' was not declared in this scope
   10 |   if(a%111==0||n/1110<10){
      |                ^
Language: C++

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

int main() {
  int n, a;
  cin >> n;
  
  a = n - n/1000*1000 // 下三桁

  if (n%1110 < 10 || a%111 == 0) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'if'
    8 |   a = n - n/1000*1000 // 下三桁
      |                      ^
      |                      ;
    9 | 
   10 |   if (n%1110 < 10 || a%111 == 0) {
      |   ~~                  
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else {
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string n;
  cin >> n;
  if(n[0]==n[1]&&n[1]==n[2]) cout << "Yes" << endl;
  else if(n[1]==n[2]&&n[2]=n[3]) cout << "No" << endl;
  else cout << "No" << endl;
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: lvalue required as left operand of assignment
    8 |   else if(n[1]==n[2]&&n[2]=n[3]) cout << "No" << endl;
Language: C++

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

int main() {
  int N;
  cin >> N;
  if ((N / 10) % 111 = 0 || (N % 1000) % 111)
    cout << "Yes" << endl;
  else 
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: lvalue required as left operand of assignment
    7 |   if ((N / 10) % 111 = 0 || (N % 1000) % 111)
      |       ~~~~~~~~~^~~~~
Language: C++

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

int main(){
  string N;
  cin>>N;
  if(N(0)==N(1))==N(2)){
    cout<<"Yes"<<endl;
  }
  else if(N(1)==N(2)==N(3)){
    cout<<"Yes"<<endl;
  }
  else{cout<<"No"<<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if(N(0)==N(1))==N(2)){
      |      ~^~~
a.cc:7:13: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if(N(0)==N(1))==N(2)){
      |            ~^~~
a.cc:7:17: error: expected primary-expression before '==' token
    7 |   if(N(0)==N(1))==N(2)){
      |                 ^~
a.cc:7:20: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if(N(0)==N(1))==N(2)){
      |                   ~^~~
a.cc:10:12: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
   10 |   else if(N(1)==N(2)==N(3)){
      |           ~^~~
a.cc:10:18: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
   10 |   else if(N(1)==N(2)==N(3)){
      |                 ~^~~
a.cc:10:24: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
   10 |   else if(N(1)==N(2)==N(3)){
      |                       ~^~~
Language: C++

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

int main(){
  int N;
  cin>>N;
  if(N(0)==N(1))==N(2)){
    cout<<"Yes"<<endl;
  }
  else if(N(1)==N(2)==N(3)){
    cout<<"Yes"<<endl;
  }
  else{cout<<"No"<<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'N' cannot be used as a function
    7 |   if(N(0)==N(1))==N(2)){
      |      ~^~~
a.cc:7:13: error: 'N' cannot be used as a function
    7 |   if(N(0)==N(1))==N(2)){
      |            ~^~~
a.cc:7:17: error: expected primary-expression before '==' token
    7 |   if(N(0)==N(1))==N(2)){
      |                 ^~
a.cc:7:20: error: 'N' cannot be used as a function
    7 |   if(N(0)==N(1))==N(2)){
      |                   ~^~~
a.cc:10:12: error: 'N' cannot be used as a function
   10 |   else if(N(1)==N(2)==N(3)){
      |           ~^~~
a.cc:10:18: error: 'N' cannot be used as a function
   10 |   else if(N(1)==N(2)==N(3)){
      |                 ~^~~
a.cc:10:24: error: 'N' cannot be used as a function
   10 |   else if(N(1)==N(2)==N(3)){
      |                       ~^~~
Language: C++

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

int main(){
  int N;
  cin>>N;
  if(N[0]==N[1])==N[2]){
    cout<<"Yes"<<endl;
  }
  else if(N[3]==N[1])==N[2]){
    cout<<"Yes"<<endl;
  }
  else{cout<<"No"<<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: invalid types 'int[int]' for array subscript
    7 |   if(N[0]==N[1])==N[2]){
      |       ^
a.cc:7:13: error: invalid types 'int[int]' for array subscript
    7 |   if(N[0]==N[1])==N[2]){
      |             ^
a.cc:7:17: error: expected primary-expression before '==' token
    7 |   if(N[0]==N[1])==N[2]){
      |                 ^~
a.cc:7:20: error: invalid types 'int[int]' for array subscript
    7 |   if(N[0]==N[1])==N[2]){
      |                    ^
a.cc:10:12: error: invalid types 'int[int]' for array subscript
   10 |   else if(N[3]==N[1])==N[2]){
      |            ^
a.cc:10:18: error: invalid types 'int[int]' for array subscript
   10 |   else if(N[3]==N[1])==N[2]){
      |                  ^
a.cc:10:22: error: expected primary-expression before '==' token
   10 |   else if(N[3]==N[1])==N[2]){
      |                      ^~
a.cc:10:25: error: invalid types 'int[int]' for array subscript
   10 |   else if(N[3]==N[1])==N[2]){
      |                         ^
Language: C++

#include <iostream>

using namespace std;

int main(){
    string N;
    cin >> N;
    if(N[0] == N[1] && N[1] == N[2]){
        cout << "Yes" << endl;
    }
    else (N[1] == N[2] && N[2] == N[3]){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:40: error: expected ';' before '{' token
   11 |     else (N[1] == N[2] && N[2] == N[3]){
      |                                        ^
      |                                        ;
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else{
      |     ^~~~
Language: C++

#include <iostream>

using namespace std;

int main(){
    int N;
    cin >> N;
    if(N[0] == N[1] && N[1] == N[2]){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: invalid types 'int[int]' for array subscript
    8 |     if(N[0] == N[1] && N[1] == N[2]){
      |         ^
a.cc:8:17: error: invalid types 'int[int]' for array subscript
    8 |     if(N[0] == N[1] && N[1] == N[2]){
      |                 ^
a.cc:8:25: error: invalid types 'int[int]' for array subscript
    8 |     if(N[0] == N[1] && N[1] == N[2]){
      |                         ^
a.cc:8:33: error: invalid types 'int[int]' for array subscript
    8 |     if(N[0] == N[1] && N[1] == N[2]){
      |                                 ^
Language: C++

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

int main() {
  int n;
  cin >> n;
  int a=n%1000;
  int b=n/10;
  int c=a%111;
  int d=b%111;
  
  if(c!=0||d!=0){
    cout << "Yes";
  
  else 
    cout << "No";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: expected '}' before 'else'
   15 |   else
      |   ^~~~
a.cc:12:17: note: to match this '{'
   12 |   if(c!=0||d!=0){
      |                 ^
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

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

int main(){
  string s;
  cin >> s;
  if(((s[0]==s[1])&&(s[1]==s[2]))||((s[1]==s[2])&&(s[2]==s[3]))){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc:1:9: fatal error: bits/stdc++: No such file or directory
    1 | #include<bits/stdc++>
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  string s;
  cin >> s;
  if(((s[0]==s[1])&&(s[1]==s[2]))||((s[1]==s[2])&&(s[2]==s[3]))){
    cout << "Yes";
  }else{
    cout << "No";
  }
}

Compiler output:
a.cc:1:9: fatal error: bits/stdc++: No such file or directory
    1 | #include<bits/stdc++>
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  string N;
  cin>>N;
  if (N[0] == N[1]&&N[1] == N[2]){
    cout<<"Yes"<<endl;
  }
  else if (N[1] == N[2]&&N[2] == N[3]){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int N;
  cin>>N;
  if (N[0] == N[1]&&N[1] == N[2]){
    cout<<"Yes"<<endl;
  }
  else if (N[1] == N[2]&&N[2] == N[3]){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: invalid types 'int[int]' for array subscript
    7 |   if (N[0] == N[1]&&N[1] == N[2]){
      |        ^
a.cc:7:16: error: invalid types 'int[int]' for array subscript
    7 |   if (N[0] == N[1]&&N[1] == N[2]){
      |                ^
a.cc:7:22: error: invalid types 'int[int]' for array subscript
    7 |   if (N[0] == N[1]&&N[1] == N[2]){
      |                      ^
a.cc:7:30: error: invalid types 'int[int]' for array subscript
    7 |   if (N[0] == N[1]&&N[1] == N[2]){
      |                              ^
a.cc:10:13: error: invalid types 'int[int]' for array subscript
   10 |   else if (N[1] == N[2]&&N[2] == N[3]){
      |             ^
a.cc:10:21: error: invalid types 'int[int]' for array subscript
   10 |   else if (N[1] == N[2]&&N[2] == N[3]){
      |                     ^
a.cc:10:27: error: invalid types 'int[int]' for array subscript
   10 |   else if (N[1] == N[2]&&N[2] == N[3]){
      |                           ^
a.cc:10:35: error: invalid types 'int[int]' for array subscript
   10 |   else if (N[1] == N[2]&&N[2] == N[3]){
      |                                   ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  if ((n % 1111) || (n / 10 % 111) == 0) cout << "Yes" << endl;
  else if //後はわからない
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: expected '(' before '}' token
    7 | }
      | ^
      | (
Language: C++

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

int main() {
  int x;
  cin >> x;
  int bottom = x - ((x / 1000) * 1000);
  int head = (x - (x % 10)) / 10
  if(bottom % 111 == 0 || head % 111 == 0){
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'if'
    9 |   if(bottom % 111 == 0 || head % 111 == 0){
      |   ^~
a.cc:11:5: error: 'else' without a previous 'if'
   11 |   } else {
      |     ^~~~
Language: Java

import java.util.*;

public class Main {
	  public static void main(String args[]){
      	Scanner scan = new Scanner(System.in);
            
        int N = scan.nextInt();
        
        int num1000, num100, num10, num1;
        String cnt;
        
        num1 = N % 10;
        num10 = (N % 100 - num1) / 10;
        num100 = (N % 1000 - num10 - num1) / 100;
        num1000 = (N - num100 - num10 - num1) / 1000;
        
        if(num1000 == num100 && num100 == num10)cnt ="Yes";
        else if(num100 == num10 && num10 == num1)cnt ="Yes";
        else cnt = "No";
            
        System.out.println(cnt);
	  

Compiler output:
Main.java:21: error: reached end of file while parsing
        System.out.println(cnt);
                                ^
1 error
Language: C++

        #include <bits/stdc++.h>
        using namespace std;
         
        int main() {
          int a,b,c,d,n;
          cin >> n;
          a = n/1000;
          b = n%1000/100;
          c = n%100/10;
          d = n%10;
          if ((a==b && b==c) || (b==c && c==d)}{
            cout << "Yes" << endl;
          }
          else{
            cout << "No" << endl;
          }
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:47: error: expected ')' before '}' token
   11 |           if ((a==b && b==c) || (b==c && c==d)}{
      |              ~                                ^
      |                                               )
a.cc:11:47: error: expected primary-expression before '}' token
a.cc: At global scope:
a.cc:11:48: error: expected unqualified-id before '{' token
   11 |           if ((a==b && b==c) || (b==c && c==d)}{
      |                                                ^
a.cc:14:11: error: expected unqualified-id before 'else'
   14 |           else{
      |           ^~~~
a.cc:17:9: error: expected declaration before '}' token
   17 |         }
      |         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;cin>>n;
    vector<int> k(4);
    for(int i=0;i<4;i++){
        k[i] = n%10;
        n=n/10;
    }
    if(k[0]==k[1]&&k[1]==k[2]){
        cout<<"Yes"<<endl;
    }
    if else(k[1]==k[2]&&k[2]==k[3]){
        cout<<"No"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: expected '(' before 'else'
   13 |     if else(k[1]==k[2]&&k[2]==k[3]){
      |        ^~~~
      |        (
Language: C++

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

int main(){
  int N,a,b,c,d;
  
  cin >> N;
  a = N%10;
  b = (N-a)%100;
  c = (N-a-b)%1000;
  d = (N-a-b-c)
  
  if((a==b/10 && a==c/100)||(b/10==c/100 && b/10==d/1000))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before 'if'
   11 |   d = (N-a-b-c)
      |                ^
      |                ;
   12 | 
   13 |   if((a==b/10 && a==c/100)||(b/10==c/100 && b/10==d/1000))
      |   ~~            
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else
      |   ^~~~
Language: C++

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

int main(){
  int N,a,b,c,d;
  
  cin >> N;
  a = N%10;
  b = (N-a)%100;
  c = (N-a-b)%1000;
  d = (N-a-b-c)
  
  if((a==b/10 && a==c/100)||(b/10==c/100 && b/10==d/1000))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:11:16: error: expected ';' before 'if'
   11 |   d = (N-a-b-c)
      |                ^
      |                ;
   12 | 
   13 |   if((a==b/10 && a==c/100)||(b/10==c/100 && b/10==d/1000))
      |   ~~            
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else
      |   ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << "No" << endl;
      |     ^~~~
a.cc:16:21: error: 'endl' was not declared in this scope
   16 |     cout << "No" << endl;
      |                     ^~~~
Language: C++

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

int main(){
  int N,a,b,c,d;
  
  cin >> N;
  a = N%10;
  b = (N-a)%100;
  c = (N-a-b)%1000;
  d = (N-a-b-c)
  
  if((a==b/10 && a==c/100)||(b/10==c/100 && b/10==d/1000))
    cout << 'Yes' << endl;
  else
    cout << 'No' << endl;
}


Compiler output:
a.cc:14:13: warning: multi-character character constant [-Wmultichar]
   14 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:16:13: warning: multi-character character constant [-Wmultichar]
   16 |     cout << 'No' << endl;
      |             ^~~~
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:11:16: error: expected ';' before 'if'
   11 |   d = (N-a-b-c)
      |                ^
      |                ;
   12 | 
   13 |   if((a==b/10 && a==c/100)||(b/10==c/100 && b/10==d/1000))
      |   ~~            
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else
      |   ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << 'No' << endl;
      |     ^~~~
a.cc:16:21: error: 'endl' was not declared in this scope
   16 |     cout << 'No' << endl;
      |                     ^~~~
Language: C++

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

int main(){
  int N,a,b,c,d;
  
  cin >> N;
  a = N%10;
  b = (N-a)%100;
  c = (N-a-b)%1000;
  d = (N-a-b-c)
  
  if((a==b/10 && a==c/100)||(b/10==c/100 && b/10==d/1000)){
    cout << 'Yes' << endl;
  }else{
      cout << 'No' << endl;
  }
  
}


Compiler output:
a.cc:14:13: warning: multi-character character constant [-Wmultichar]
   14 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:16:15: warning: multi-character character constant [-Wmultichar]
   16 |       cout << 'No' << endl;
      |               ^~~~
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:11:16: error: expected ';' before 'if'
   11 |   d = (N-a-b-c)
      |                ^
      |                ;
   12 | 
   13 |   if((a==b/10 && a==c/100)||(b/10==c/100 && b/10==d/1000)){
      |   ~~            
a.cc:15:4: error: 'else' without a previous 'if'
   15 |   }else{
      |    ^~~~
a.cc:16:7: error: 'cout' was not declared in this scope
   16 |       cout << 'No' << endl;
      |       ^~~~
a.cc:16:23: error: 'endl' was not declared in this scope
   16 |       cout << 'No' << endl;
      |                       ^~~~
Language: C++

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

int main(){
  int N,b,c;
  
  cin >> N;
  a = N%10;
  b = (N-a)%100;
  c = (N-a-b)%1000;
  d = (N-a-b-c)
  
  if((a==b/10 && a==c/100)||(b/10==c/100 && b/10==d/1000))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:8:3: error: 'a' was not declared in this scope
    8 |   a = N%10;
      |   ^
a.cc:11:3: error: 'd' was not declared in this scope
   11 |   d = (N-a-b-c)
      |   ^
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else
      |   ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << "No" << endl;
      |     ^~~~
a.cc:16:21: error: 'endl' was not declared in this scope
   16 |     cout << "No" << endl;
      |                     ^~~~
Language: C++

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

int main(){
  int N,b,c;
  
  cin >> N;
  a = N%10;
  b = (N-a)%100;
  c = (N-a-b)%1000;
  d = (N-a-b-c)
  
  if((a==b/10 && a==c/100)||(b/10==c/100 && b/10==d/1000)){
    cout << 'Yes' << endl;
  }else{
      cout << 'No' << endl;
  }
  
}

Compiler output:
a.cc:14:13: warning: multi-character character constant [-Wmultichar]
   14 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:16:15: warning: multi-character character constant [-Wmultichar]
   16 |       cout << 'No' << endl;
      |               ^~~~
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:8:3: error: 'a' was not declared in this scope
    8 |   a = N%10;
      |   ^
a.cc:11:3: error: 'd' was not declared in this scope
   11 |   d = (N-a-b-c)
      |   ^
a.cc:15:4: error: 'else' without a previous 'if'
   15 |   }else{
      |    ^~~~
a.cc:16:7: error: 'cout' was not declared in this scope
   16 |       cout << 'No' << endl;
      |       ^~~~
a.cc:16:23: error: 'endl' was not declared in this scope
   16 |       cout << 'No' << endl;
      |                       ^~~~
Language: C++

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

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
using llint = long long;
using vint = vector<int>;

int main () {
    string n; cin >> n;
    if (n[0] == n[1] && n[1] == n[2]) cout << "Yes\n";
    else cout << "No\n"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected ';' before '}' token
   13 |     else cout << "No\n"
      |                        ^
      |                        ;
   14 | }
      | ~
Language: C++

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

int main()
{
  char N[5];
  if(N[1]==N[2]&&N[2]==N[3]);
    cout<< "Yes"<< endl;
  else if(N[2]==N[3]&&N[3]==N[4]);
    cout<< "Yes"<< endl;
  else
  {
    cout<< "No"<< endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else if(N[2]==N[3]&&N[3]==N[4]);
      |   ^~~~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b, c, d;
  N = 1000*a+100*b+10*c+d;
  cin >> N;
  if (b==c){
    if(a!=b,c!=d)
      cout<< "No" <<endl;
    else
      cout<< "Yes" << endl;
  }  
}    

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'N' was not declared in this scope
    6 |   N = 1000*a+100*b+10*c+d;
      |   ^
Language: C++

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

int main(){
  int N;
  cin>>N;
  if(N%111==0)
    cout<<"Yes"<<endl;
  else if(N/10%111==0)
    cout<<"Yes"<<endl;
  else else
    cout<<"No"<<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected primary-expression before 'else'
   11 |   else else
      |        ^~~~
Language: C++

#include <iostream>
int main(){
  char N[5];
  scanf("%s", &N);
  if(N[0]==N[1]&&N[1]==N[2]){
    cout<<"Yes"<<endl;
  }
  else if (N[1]==N[2]&& N[2]==N[3]){
    cout<<"Yes"<<endl;
  }
  else
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout<<"Yes"<<endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout<<"Yes"<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout<<"No"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout<<"No"<<endl;
      |                 ^~~~
      |                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc: At global scope:
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^