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

    #include<stdio.h>
    #include<stdlib.h>
    #include<math.h>
   int  main()
    { int N,c=0,n=4,i,*T;
    scanf("%d",&N);
    T=(int*)malloc(4*sizeof(int));
    if( 9999<=N && N>=1000)
    {
        for(i=0;i<4;i++)
        { T[i]=N¨%10;
        N=N/10;
        }
    for(i=0;i<n-1;i++)
    {
        if (T[i]==T[i+1])
        c++;
        if (i==0 && T[0]!=T[1])
            {
            if (T[n-2-i]==T[n-i])
            c=0;
            else
            break;
            }
    }
    printf("%d",N);
    if(c<3)
    printf("\nNO");
    else
    printf("\nN is good,since it contains %d consecutive 1.",c);
    }
    else
        return 0;
}



















Compiler output:
main.c: In function 'main':
main.c:11:16: error: 'N\U000000a8' undeclared (first use in this function)
   11 |         { T[i]=N¨%10;
      |                ^~
main.c:11:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

    #include<stdio.h>
    #include<stdlib.h>
    #include<math.h>
   int  main()
    { int N,c=0,n=4,*T;
    scanf("%d",&N);
    T=(int*)malloc(4*sizeof(int));
    if( 9999<=N && N>=1000)
    {
        for(i=0;i<4;i++)
        { T[i]=N¨%10;
        N=N/10;
        }
    for(i=0;i<n-1;i++)
    {
        if (T[i]==T[i+1])
        c++;
        if (i==0 && T[0]!=T[1])
            {
            if (T[n-2-i]==T[n-i])
            c=0;
            else
            break;
            }
    }
    printf("%d",N);
    if(c<3)
    printf("\nNO");
    else
    printf("\nN is good,since it contains %d consecutive 1.",c);
    }
    else
        return ;
}



















Compiler output:
main.c: In function 'main':
main.c:10:13: error: 'i' undeclared (first use in this function)
   10 |         for(i=0;i<4;i++)
      |             ^
main.c:10:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:16: error: 'N\U000000a8' undeclared (first use in this function)
   11 |         { T[i]=N¨%10;
      |                ^~
main.c:33:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   33 |         return ;
      |         ^~~~~~
main.c:4:9: note: declared here
    4 |    int  main()
      |         ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before '}' token
   10 |   }
      |   ^
a.cc:9:11: error: expected ';' before '}' token
    9 |     return
      |           ^
      |           ;
   10 |   }
      |   ~        
a.cc:14:3: error: expected primary-expression before '}' token
   14 |   }
      |   ^
a.cc:13:11: error: expected ';' before '}' token
   13 |     return
      |           ^
      |           ;
   14 |   }
      |   ~        
a.cc: At global scope:
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

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

int main(){
  int a;
  cin >> a;
  if(a/1110){
    cout << "Yes" << endl;
    return;
  }
  if(a%1000/111){
    cout << "Yes" << endl;
    return;
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before '}' token
   10 |   }
      |   ^
a.cc:9:11: error: expected ';' before '}' token
    9 |     return
      |           ^
      |           ;
   10 |   }
      |   ~        
a.cc:14:3: error: expected primary-expression before '}' token
   14 |   }
      |   ^
a.cc:13:11: error: expected ';' before '}' token
   13 |     return
      |           ^
      |           ;
   14 |   }
      |   ~        
a.cc: At global scope:
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:25:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   25 |     return;
      |     ^~~~~~
a.cc:29:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   29 |     return;
      |     ^~~~~~
Language: C++

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

int main(){
  int a;
  cin >> a;
  if(a/1110){
    cout << "Yes" << endl;
    return
  }
  if(a%1000/111){
    cout << "Yes" << endl;
    return
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before '}' token
   10 |   }
      |   ^
a.cc:9:11: error: expected ';' before '}' token
    9 |     return
      |           ^
      |           ;
   10 |   }
      |   ~        
a.cc:14:3: error: expected primary-expression before '}' token
   14 |   }
      |   ^
a.cc:13:11: error: expected ';' before '}' token
   13 |     return
      |           ^
      |           ;
   14 |   }
      |   ~        
a.cc: At global scope:
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:26:3: error: expected primary-expression before '}' token
   26 |   }
      |   ^
a.cc:25:11: error: expected ';' before '}' token
   25 |     return
      |           ^
      |           ;
   26 |   }
      |   ~        
a.cc:30:3: error: expected primary-expression before '}' token
   30 |   }
      |   ^
a.cc:29:11: error: expected ';' before '}' token
   29 |     return
      |           ^
      |           ;
   30 |   }
      |   ~
Language: C++

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

int main(){
  int a;
  cin >> a;
  if(a/1110){
    cout << "Yes" << endl;
    return;
  }
  if(a%1000/111){
    cout << "Yes" << endl;
    return;
  }
  cout << "No" << endl;
}
提出情報

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before '}' token
   10 |   }
      |   ^
a.cc:9:11: error: expected ';' before '}' token
    9 |     return
      |           ^
      |           ;
   10 |   }
      |   ~        
a.cc:14:3: error: expected primary-expression before '}' token
   14 |   }
      |   ^
a.cc:13:11: error: expected ';' before '}' token
   13 |     return
      |           ^
      |           ;
   14 |   }
      |   ~        
a.cc: At global scope:
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:25:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   25 |     return;
      |     ^~~~~~
a.cc:29:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   29 |     return;
      |     ^~~~~~
a.cc: At global scope:
a.cc:33:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   33 | 提出情報
      | ^~~~~~~~
Language: C++

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

int main(){
  int a;
  cin >> a;
  if(a/1110){
    cout << "Yes" << endl;
    return
  }
  if(a%1000/111){
    cout << "Yes" << endl;
    return
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before '}' token
   10 |   }
      |   ^
a.cc:9:11: error: expected ';' before '}' token
    9 |     return
      |           ^
      |           ;
   10 |   }
      |   ~        
a.cc:14:3: error: expected primary-expression before '}' token
   14 |   }
      |   ^
a.cc:13:11: error: expected ';' before '}' token
   13 |     return
      |           ^
      |           ;
   14 |   }
      |   ~
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 if (N[0] == N[1] == N[2] == N[3]) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: invalid types 'int[int]' for array subscript
    9 |   if (N[0] == N[1] == N[2]) {
      |        ^
a.cc:9:16: error: invalid types 'int[int]' for array subscript
    9 |   if (N[0] == N[1] == N[2]) {
      |                ^
a.cc:9:24: error: invalid types 'int[int]' for array subscript
    9 |   if (N[0] == N[1] == N[2]) {
      |                        ^
a.cc:12:13: error: invalid types 'int[int]' for array subscript
   12 |   else if (N[1] == N[2] == N[3]) {
      |             ^
a.cc:12:21: error: invalid types 'int[int]' for array subscript
   12 |   else if (N[1] == N[2] == N[3]) {
      |                     ^
a.cc:12:29: error: invalid types 'int[int]' for array subscript
   12 |   else if (N[1] == N[2] == N[3]) {
      |                             ^
a.cc:15:13: error: invalid types 'int[int]' for array subscript
   15 |   else if (N[0] == N[1] == N[2] == N[3]) {
      |             ^
a.cc:15:21: error: invalid types 'int[int]' for array subscript
   15 |   else if (N[0] == N[1] == N[2] == N[3]) {
      |                     ^
a.cc:15:29: error: invalid types 'int[int]' for array subscript
   15 |   else if (N[0] == N[1] == N[2] == N[3]) {
      |                             ^
a.cc:15:37: error: invalid types 'int[int]' for array subscript
   15 |   else if (N[0] == N[1] == N[2] == N[3]) {
      |                                     ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <numeric>
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define repi(i, a, b) for (long long i = (long long)(a); i < (long long)(b); i++)
#define drep(i, n) for (long long i = n - 1; i > 0; i--)
#define pb push_back
#define pb push_back
#define all(x) (x).begin(), (x).end()

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: 'n' was not declared in this scope
   19 |     if ((n / 10) % 111 == 0 || (n % 1000) % 111 == 0)
      |          ^
Language: Java

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String n = sc.nextLine();
      
      if(n.charAt(0)==n.charAt(1)&&((n.charAt(1)==n.charAt(2))||(n.charAt(1)==n.charAt(3))){
        System.out.print("Yes");
      }else{
        System.out.print("No");
      }
      
      
    }
}

Compiler output:
Main.java:8: error: ')' expected
      if(n.charAt(0)==n.charAt(1)&&((n.charAt(1)==n.charAt(2))||(n.charAt(1)==n.charAt(3))){
                                                                                           ^
1 error
Language: C++

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

int main() {
  int n;
  cin >> n;
  if (n < 1000) {
    cout << "No" << endl;
  } else if {
    int n4 = n / 1000;
    int n3 = n - (n4 * 1000) / 100;
    int n2 = n - (n4 * 1000 + n3 * 100) / 10;
    int n1 = n - (n4 * 1000 + n3 * 100 + n2 * 10);
    if ( n4 == n3 && n3 == n2) {
      cout << "Yes" << endl;
    } else if ( n3 == n2 && n2 == n1) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected '(' before '{' token
    9 |   } else if {
      |             ^
      |             (
Language: C++

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

inc main() {
  int n;
  cin >> n;
  if (n < 1000) {
    cout << "No" << endl;
  } else if {
    int n4 = n / 1000;
    int n3 = n - (n4 * 1000) / 100;
    int n2 = n - (n4 * 1000 + n3 * 100) / 10;
    int n1 = n - (n4 * 1000 + n3 * 100 + n2 * 10);
    if ( n4 == n3 && n3 == n2) {
      cout << "Yes" << endl;
    } else if ( n3 == n2 && n2 == n1) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}


Compiler output:
a.cc:4:1: error: 'inc' does not name a type; did you mean 'int'?
    4 | inc main() {
      | ^~~
      | int
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
    string s;
    cin >> s;
    if(s[1]==s[2]){
        if(s[0]==s[1]){
          cout << "Yes";
          return 0;
        }
        if(s[1]==s[2]){
          cout << "Yes";
          return 0;
        }
    }
    cout << "No"
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:17: error: expected ';' before 'return'
   24 |     cout << "No"
      |                 ^
      |                 ;
   25 |     return 0;
      |     ~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
    string N;
    cin >> N;
    if(s[1]==s[2]){
        if(s[0]==s[1]){
          cout << "Yes";
          return 0;
        }
        if(s[1]==s[2]){
          cout << "Yes";
          return 0;
        }
    }
    cout << "No"
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 's' was not declared in this scope
   14 |     if(s[1]==s[2]){
      |        ^
a.cc:24:17: error: expected ';' before 'return'
   24 |     cout << "No"
      |                 ^
      |                 ;
   25 |     return 0;
      |     ~~~~~~
Language: C

#include <stdio.h>

int main()
{
	char n[4];
  	scanf("%s", s);
  
  	if (s[1] == s[2]){
    	if (s[0] == s[1] && s[2] == s[3]) {
        	printf("Yes");
        } else {
        	printf("No");
        }
    } else {
        	printf("No");
    }
}

Compiler output:
main.c: In function 'main':
main.c:6:21: error: 's' undeclared (first use in this function)
    6 |         scanf("%s", s);
      |                     ^
main.c:6:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
using namespace std;

int main() {
  string x;
  cin >> x ;
  if (x.at(0)==x.at(1)==x.at(2)){
    cout << "Yes" << endl;
  }
  else if (x.at(1)==x.at(2)==x.at(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:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: expected ';' before '{' token
   10 |   else (x.at(1)==x.at(2)==x.at(3)){
      |                                   ^
      |                                   ;
Language: C++

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string x;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> x ;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:5:10: error: 'x' was not declared in this scope
    5 |   cin >> x ;
      |          ^
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:22: error: 'endl' was not declared in this scope
    7 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include<iostream>
using namespace std;
int main(){
  vector<string> x(4);
  cin >> x;
  if(x.at(0)==x.at(1)==x.at(2)||x.at(1)==x.at(2)==x.at(3)){
    cout << "Yes" << endl;
    }
  else{
    cout << "No" <<endl;
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'vector' was not declared in this scope
    4 |   vector<string> x(4);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:4:16: error: expected primary-expression before '>' token
    4 |   vector<string> x(4);
      |                ^
a.cc:4:18: error: 'x' was not declared in this scope
    4 |   vector<string> x(4);
      |                  ^
Language: C++

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

int main(){
  int N,
  cin >> N;
  //　4ケタ整数の判別
  if(N % 11 == 0){
  	cout << "Yes" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected initializer before '>>' token
    6 |   cin >> N;
      |       ^~
Language: C++

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

int main(){
  int n, sen, hyaku, ju, ichi;
  cin >> n;
  
  sen = n / 1000
  hyaku = n / 100 - sen * 10
  ju = n / 10 - sen * 100 - hyaku * 10
  ichi = n - sen * 1000 - hyaku * 100 - ju * 10
    
  if ((sen == hyaku) && (hyaku == ju)){
    cout << "Yes" << endl;
  }
  else if ((hyaku == ju) && (ju == ichi)){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before 'hyaku'
    8 |   sen = n / 1000
      |                 ^
      |                 ;
    9 |   hyaku = n / 100 - sen * 10
      |   ~~~~~          
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else if ((hyaku == ju) && (ju == ichi)){
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:55: error: expected ';' before 'cout'
    7 |   ((a[0]==a[1]&&a[1]==a[2])||(a[1]==a[2]&&a[2]==a[3]))cout<<"Yes":cout<<"No";
      |                                                       ^~~~
      |                                                       ;
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*A)/100
  C = (N - 1000*A - 100*B)/10
  D = N - 1000*A - 100*B - 10*C

  if (A == B && C == B) {
    cout << "Yes" << endl;
  }
  else if (C == B && C == D) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before 'B'
    8 |   A = N/1000
      |             ^
      |             ;
    9 |   B = (N - 1000*A)/100
      |   ~          
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else if (C == B && C == D) {
      |   ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: invalid types 'int[int]' for array subscript
    6 |         if(a[0]==a[1]==a[2]){
      |             ^
a.cc:6:19: error: invalid types 'int[int]' for array subscript
    6 |         if(a[0]==a[1]==a[2]){
      |                   ^
a.cc:6:25: error: invalid types 'int[int]' for array subscript
    6 |         if(a[0]==a[1]==a[2]){
      |                         ^
a.cc:9:18: error: invalid types 'int[int]' for array subscript
    9 |         else if(a[1]==a[2]==a[3]){
      |                  ^
a.cc:9:24: error: invalid types 'int[int]' for array subscript
    9 |         else if(a[1]==a[2]==a[3]){
      |                        ^
a.cc:9:30: error: invalid types 'int[int]' for array subscript
    9 |         else if(a[1]==a[2]==a[3]){
      |                              ^
Language: C++

#include<iostream>
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";
	}
	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
typedef int64_t llong;
char moji[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
char moji2[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
char moji3[10]={'0','1','2','3','4','5','6','7','8','9'};
#define Sort(a) sort(a.begin(),a.end());
#define Reverse(a) reverse(a.begin(),a.end());
#define H_max 200
#define W_max 200


int main(){
    int n;
    cin >> n;
    int A[4];
    REP(i,4){
        A[i]=n%10;
        n/=10;
    }
    
    if(A[0] == A[1]==A[2] orA[1]== A[2] == A[3]) cout << "Yes" << endl;
    else cout <<"No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:26: error: expected ')' before 'orA'
   25 |     if(A[0] == A[1]==A[2] orA[1]== A[2] == A[3]) cout << "Yes" << endl;
      |       ~                  ^~~~
      |                          )
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;cin>>n;
  set<int>s;
  for(int i=0;i<4;i++){
    s.push(n%10);
    n/=10;
  }
  if(s.size()<=2)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'class std::set<int>' has no member named 'push'
    7 |     s.push(n%10);
      |       ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  
  int N;
  cin >> N;
  
  if(N % 1000 % 111 == 0){
    cout << "Yes" << endl;
  }
  else if(N / 10 % 111 == 0){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  
  int N;
  cin >> N;
  
  if(N % 1000 % 111 == 0){
    cout << 'Yes' << endl;
  }
  else if(N / 10 % 111 == 0){
    cout << 'Yes' << endl;
  }
  else{
    cout << 'No' << endl;
}

Compiler output:
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:12:13: warning: multi-character character constant [-Wmultichar]
   12 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:15:13: warning: multi-character character constant [-Wmultichar]
   15 |     cout << 'No' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] orgs) {
		Scanner sc = new Scanner(System.in);
		import java.util.*;

public class Main {
	public static void main(String[] orgs) {
		Scanner sc = new Scanner(System.in);
		
		String N = sc.next();

		if(N.charAt(0) == N.charAt(1) && N.charAt(1) == N.charAt(2)){
			System.out.println("Yes");
		}else if(N.charAt(1) == N.charAt(2) && N.charAt(2)  == N.charAt(3)){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}
	}
}

Compiler output:
Main.java:6: error: illegal start of expression
		import java.util.*;
		^
Main.java:6: error: <identifier> expected
		import java.util.*;
		                 ^
Main.java:6: error: illegal start of expression
		import java.util.*;
		                  ^
Main.java:8: error: illegal start of expression
public class Main {
^
Main.java:24: error: class, interface, enum, or record expected
}
^
5 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] orgs) {
		Scanner sc = new Scanner(System.in);
		
		String N = sc.nextInt();
		String.length();

		if(length(1) == length(2)){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}

Compiler output:
Main.java:7: error: incompatible types: int cannot be converted to String
		String N = sc.nextInt();
		                     ^
Main.java:8: error: non-static method length() cannot be referenced from a static context
		String.length();
		      ^
Main.java:10: error: cannot find symbol
		if(length(1) == length(2)){
		   ^
  symbol:   method length(int)
  location: class Main
Main.java:10: error: cannot find symbol
		if(length(1) == length(2)){
		                ^
  symbol:   method length(int)
  location: class Main
4 errors
Language: C++

var
  n,st:string;
  ch:char;
  p:boolean;
begin
  readln(n);
  for ch:='0' to '9' do
 begin
   st:=ch+ch+ch;
   if pos(st,n)>0 then begin p:=true;writeln('Yes');break; end;
 end;
  if p=false then writeln('No');//最后判断p
end.

Compiler output:
a.cc:10:46: warning: multi-character character constant [-Wmultichar]
   10 |    if pos(st,n)>0 then begin p:=true;writeln('Yes');break; end;
      |                                              ^~~~~
a.cc:12:27: warning: multi-character character constant [-Wmultichar]
   12 |   if p=false then writeln('No');//最后判断p
      |                           ^~~~
a.cc:1:1: error: 'var' does not name a type
    1 | var
      | ^~~
a.cc:3:3: error: 'ch' does not name a type; did you mean 'char'?
    3 |   ch:char;
      |   ^~
      |   char
a.cc:4:4: error: found ':' in nested-name-specifier, expected '::'
    4 |   p:boolean;
      |    ^
      |    ::
a.cc:4:3: error: 'p' does not name a type
    4 |   p:boolean;
      |   ^
a.cc:5:1: error: 'begin' does not name a type
    5 | begin
      | ^~~~~
a.cc:7:3: error: expected unqualified-id before 'for'
    7 |   for ch:='0' to '9' do
      |   ^~~
a.cc:10:4: error: expected unqualified-id before 'if'
   10 |    if pos(st,n)>0 then begin p:=true;writeln('Yes');break; end;
      |    ^~
a.cc:10:45: error: expected constructor, destructor, or type conversion before '(' token
   10 |    if pos(st,n)>0 then begin p:=true;writeln('Yes');break; end;
      |                                             ^
a.cc:10:53: error: expected unqualified-id before 'break'
   10 |    if pos(st,n)>0 then begin p:=true;writeln('Yes');break; end;
      |                                                     ^~~~~
a.cc:10:60: error: 'end' does not name a type
   10 |    if pos(st,n)>0 then begin p:=true;writeln('Yes');break; end;
      |                                                            ^~~
a.cc:11:2: error: 'end' does not name a type
   11 |  end;
      |  ^~~
a.cc:12:3: error: expected unqualified-id before 'if'
   12 |   if p=false then writeln('No');//最后判断p
      |   ^~
a.cc:13:1: error: 'end' does not name a type
   13 | end.
      | ^~~
Language: C

#include <stdio.h>
int maihn(){
int x;
scanf("%d",&x);
int a,b,c,d;
a=1000/x;
b=(1000%x)/100;
c=1000%x%100/10;
d=1000%x%100%10;

if(a==b&&b==c) puts("Yes");
else if(b==c&&c==d) puts("No");
else puts("No");

return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
#include <string>
#include <vector>

using namespace std;
int main(void) {
    string in;
    cin >> in;
    int last = -1;
    unsigned int count = 0;
    unsigned int max = 0;
    for (s : in) {
        if (last == -1) {
            last = s;
            continue;
        }
        if (last == s) {
            count++;
            continue;
        }
        if (max < count) {
            max = count;
        }
            count = 0;
            last = s;
    }

    if (max > 1)
        cout << "Yes" << nedl;
    else
        cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: found ':' in nested-name-specifier, expected '::'
   12 |     for (s : in) {
      |            ^
      |            ::
a.cc:12:10: error: 's' has not been declared
   12 |     for (s : in) {
      |          ^
a.cc:28:5: error: expected primary-expression before 'if'
   28 |     if (max > 1)
      |     ^~
a.cc:26:6: error: expected ';' before 'if'
   26 |     }
      |      ^
      |      ;
   27 | 
   28 |     if (max > 1)
      |     ~~
a.cc:28:5: error: expected primary-expression before 'if'
   28 |     if (max > 1)
      |     ^~
a.cc:26:6: error: expected ')' before 'if'
   26 |     }
      |      ^
      |      )
   27 | 
   28 |     if (max > 1)
      |     ~~
a.cc:12:9: note: to match this '('
   12 |     for (s : in) {
      |         ^
a.cc:29:26: error: 'nedl' was not declared in this scope
   29 |         cout << "Yes" << nedl;
      |                          ^~~~
Language: C++

#include <bits/stdc++.h>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
using namespace std;
//cout << fixed << setprecision(0)
int main() { 
  string n;cin>>n;
  bool c = (n[2]==n[1])&&(n[3]==n[2]||n[1]==n[0])
  cout << (c?"Yes":"No") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: expected ',' or ';' before 'cout'
   13 |   cout << (c?"Yes":"No") << endl;
      |   ^~~~
Language: C++

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

int main() {
  int N, n1, n2, n3, n4;
  cin >> N;
  
  n1 = N / 1000
  n2 = (N - n1 * 1000) /100
  n3 = (N - n1 * 1000 - n2 * 100) /10
  n4 = (N - n1 * 1000 - n2 * 100 - n3 * 10)
    
  if (n1 == n2 && n2 == n3 && n3 == n4) {
    cout << "Yes" <<endl;
  }
  else if (n1 == n2 && n2 == n3) {
    cout << "Yes" <<endl;
  }
  else if (n2 == n3 && n3 == n4) {
    cout << "Yes" <<endl;
  }
  else if (n3 == n4 && n4 == n1) {
    cout << "Yes" <<endl;
  }
  else if (n4 == n1 && n1 == n2) {
    cout << "Yes" <<endl;
  }
  else {
    cout << "No" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before 'n2'
    8 |   n1 = N / 1000
      |                ^
      |                ;
    9 |   n2 = (N - n1 * 1000) /100
      |   ~~            
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else if (n1 == n2 && n2 == n3) {
      |   ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main() {
  string n; cin >> n;
  if(count(n.begin(), n.end(), n[0]) || count(n.begin(), n.end(), n[1])) cout << "Yes" << endl;
  else cout << "No" << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: 'count' was not declared in this scope
    6 |   if(count(n.begin(), n.end(), n[0]) || count(n.begin(), n.end(), n[1])) cout << "Yes" << endl;
      |      ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int N;
	cin >> N;
	int 4kt = N / 1000;
	int 3kt = N / 100 - (4kt * 10);
	int 2kt = N / 10 - (4kt * 100) - (3kt * 10);
	int 1kt = N - (4kt * 1000) - (3kt * 100) - (2kt * 10);
	if(4kt == 3kt == 2kt) cout << "Yes" << endl;
	else if (3kt == 2kt == 1kt) cout << "Yes" << endl;
	else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected unqualified-id before numeric constant
    6 |         int 4kt = N / 1000;
      |             ^~~
a.cc:7:13: error: expected unqualified-id before numeric constant
    7 |         int 3kt = N / 100 - (4kt * 10);
      |             ^~~
a.cc:8:13: error: expected unqualified-id before numeric constant
    8 |         int 2kt = N / 10 - (4kt * 100) - (3kt * 10);
      |             ^~~
a.cc:9:13: error: expected unqualified-id before numeric constant
    9 |         int 1kt = N - (4kt * 1000) - (3kt * 100) - (2kt * 10);
      |             ^~~
a.cc:10:12: error: unable to find numeric literal operator 'operator""kt'
   10 |         if(4kt == 3kt == 2kt) cout << "Yes" << endl;
      |            ^~~
a.cc:10:19: error: unable to find numeric literal operator 'operator""kt'
   10 |         if(4kt == 3kt == 2kt) cout << "Yes" << endl;
      |                   ^~~
a.cc:10:26: error: unable to find numeric literal operator 'operator""kt'
   10 |         if(4kt == 3kt == 2kt) cout << "Yes" << endl;
      |                          ^~~
a.cc:11:18: error: unable to find numeric literal operator 'operator""kt'
   11 |         else if (3kt == 2kt == 1kt) cout << "Yes" << endl;
      |                  ^~~
a.cc:11:25: error: unable to find numeric literal operator 'operator""kt'
   11 |         else if (3kt == 2kt == 1kt) cout << "Yes" << endl;
      |                         ^~~
a.cc:11:32: error: unable to find numeric literal operator 'operator""kt'
   11 |         else if (3kt == 2kt == 1kt) cout << "Yes" << endl;
      |                                ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  if (N / 10) % 111
    cout << "Yes" << endl;
  if (N % 1000) % 111
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before '%' token
    6 |   if (N / 10) % 111
      |               ^
a.cc:8:17: error: expected primary-expression before '%' token
    8 |   if (N % 1000) % 111
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d;
  cin >> a;
  d = a % 10;
  c = (a / 10) % 10;
  b = (a / 100) % 10;
  a = a / 1000;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected '}' at end of input
    9 |   a = a / 1000;
      |                ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
string n;
int main()
{
    cin>>n;
    for(register int i=2;i<n.size();++i)
    {
        if(n[s]==n[s-1]&&n[s]==n[s-2])
        {
            cout<<"Yes\n";
            return 0;
        }
    }
    cout<<"No\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    8 |     for(register int i=2;i<n.size();++i)
      |                      ^
a.cc:10:14: error: 's' was not declared in this scope
   10 |         if(n[s]==n[s-1]&&n[s]==n[s-2])
      |              ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair

int main()
{
	ios::sync_with_stdio(false);
  	cin.tie(0);
	char a[4];
	cin>> a[0] >> a[1] >> a[2] >> a[3];
	if(a[0] == a[1] || a[1] == a[2] || a[2] == a[3])
		cout << "Yes\n";
	else cout << <"No\n";	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: expected primary-expression before '<' token
   16 |         else cout << <"No\n";
      |                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char A;
  char a,b,c,d;
  cin>>A;
  
  A[0]=a;
  A[1]=b;
  A[2]=c;
  A[3]=d;
  
  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:4: error: invalid types 'char[int]' for array subscript
    9 |   A[0]=a;
      |    ^
a.cc:10:4: error: invalid types 'char[int]' for array subscript
   10 |   A[1]=b;
      |    ^
a.cc:11:4: error: invalid types 'char[int]' for array subscript
   11 |   A[2]=c;
      |    ^
a.cc:12:4: error: invalid types 'char[int]' for array subscript
   12 |   A[3]=d;
      |    ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<iomanip>
using namespace std;
#define int long long
#define rep(i,n) for(int i = 0; i < n; i++)
#define INF (long long)(1e18)
#define MOD (int)(1e9+7)
#define MAX_N 103
#define MAX_V 10
#define MAX_M 101
#define yn(f) (f?"Yes":"No")
#define YN(f) (f?"YES":"NO")
#define pro "はいプロ　世界一○○が上手　○○界のtourist　○○時代の終焉を告げる者　実質○○　○○するために生まれてきた男"

signed main(){
	cout<<fixed<<setprecision(7);
	int n = 0, m = 0;
	int a = 0, b = 0, c = 0, d = 0, e = 0;
	bool f = false, flag = true;
	string S
	cin>>S;
	if(S[0] == S[1] &&S[1] == S[2]) f = true;
	if(S[2] == S[3] &&S[1] == S[2]) f = true;
	//cin>>n;
	
	//for(int i = 0; i < n; i++){
	//}
	
	// cout<<yn(f)<<endl;
	cout<<YN(f)<<endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:9: error: expected initializer before 'cin'
   24 |         cin>>S;
      |         ^~~
a.cc:25:12: error: 'S' was not declared in this scope
   25 |         if(S[0] == S[1] &&S[1] == S[2]) f = true;
      |            ^
a.cc:26:12: error: 'S' was not declared in this scope
   26 |         if(S[2] == S[3] &&S[1] == S[2]) f = true;
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: expected primary-expression before '%' token
   10 |   else if (N%100/10 == N%10 %% N%1000/100 == N%100/10) {
      |                              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	char a,b,c,d;
	bool bj=0;
	cin>>a>>b>>c>>d;
	if(b==c)
	{
		if(a==b)
		{
			cout<<"YES\n";
			bj=1;
		}
		if(c==d)
		{
			cout<<"YES\n";
			bj=1;	
		}
	}
	if(bj==0)cout<<<"NO\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:24: error: expected primary-expression before '<' token
   21 |         if(bj==0)cout<<<"NO\n";
      |                        ^
Language: C

#include<iostream>
using namespace std;

int main()
{
    char seq[105];
    int N,i;
    cin>>seq;
    if((seq[0]==seq[1]&&seq[1]==seq[2])||(seq[1]==seq[2]&&seq[2]==seq[3])) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
int main()
{
	int a1[4]
	int l=1,k=0;
	string a;
	cin>>a;
	for(int i=0;i<4;i++)
	{
		a1[i]=a[i]-'0';
	}
	for(int i=0;i<4;i++)
	{
		if(a1[i]==a1[i+1])
		{
			l++;
		}
		else
		{
			l=1;
		}
		if(l>=3)
		{
			k=1;
		}
	}
	if(k==0)
	{
		cout<<"No"<<endl;
	}
	else
	{
		cout<<"Yes"<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected initializer before 'int'
    7 |         int l=1,k=0;
      |         ^~~
a.cc:12:17: error: 'a1' was not declared in this scope; did you mean 'a'?
   12 |                 a1[i]=a[i]-'0';
      |                 ^~
      |                 a
a.cc:16:20: error: 'a1' was not declared in this scope; did you mean 'a'?
   16 |                 if(a1[i]==a1[i+1])
      |                    ^~
      |                    a
a.cc:18:25: error: 'l' was not declared in this scope
   18 |                         l++;
      |                         ^
a.cc:22:25: error: 'l' was not declared in this scope
   22 |                         l=1;
      |                         ^
a.cc:24:20: error: 'l' was not declared in this scope
   24 |                 if(l>=3)
      |                    ^
a.cc:26:25: error: 'k' was not declared in this scope
   26 |                         k=1;
      |                         ^
a.cc:29:12: error: 'k' was not declared in this scope
   29 |         if(k==0)
      |            ^
Language: C++

#include <stdio.h>
#include <bits/stdc++.h>

using namespace std;
using ll=long long;
using ld=long double;
using P=pair<ll,ll>;
#define FOR(i,n,m) for(ll i=n; i<(ll)m;i++)
#define FORr(i,n,m) for(ll i=n; i>(ll)m; i--)
#define FORm(i,m) for(auto i=m.begin();i!=m.end();i++)
#define VEC2(x,a,b) vector<vector<ll>> x = vector<vector<ll>>(a,vector<ll>(b,0))
#define sortAl(v) sort(v.begin(),v.end())
#define sortAlr(v) sort(v.begin(),v.end()); reverse(v.begin(),v.end())
#define cinv(v,n,m) FOR(i,n,m) cin>>v.at(i)
#define coutv(v,n,m) FOR(i,n,m) cout<<v.at(i) <<" "; cout<<endl
#define cout(n) cout<<fixed<<setprecision(n)
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);

  ll N;
  cin>>N;
  ll dig;
  ll flag=0;

  dig=(N/10)%10;
  if(dig!=(N/100)%10) flag--;
  FOR(i,0,4){
    if(N%10==dig)flag++;
    N/=10
  }
  if(flag>=3)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:10: error: expected ';' before '}' token
   30 |     N/=10
      |          ^
      |          ;
   31 |   }
      |   ~
Language: C++

#include<stdio.h>
int main()
{
    int n[5],i;
    for(i=1;i<=4;i++)
    scanf("%1d",&n[i]);
    if(n[1]==n[2]&&n[2]==n[3])
    {printf("Yes\n");
    return 0;}
    if(n[2]==n[3]&&n[3]==n[4])
    {printf("Yes\n");
    return 0;}
    printf("No\n");
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: expected '}' at end of input
   14 |     return 0;
      |              ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    string n;
    bool ok=1;
    cin>>n;
    for (int i=n.size();i>=2;i--)
        if (a[i]==a[i-1]&&a[i-1]==a[i-2]) {cout<<"Yes"<<endl;ok=0;break;}
    if (ok==0) cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'a' was not declared in this scope
    9 |         if (a[i]==a[i-1]&&a[i-1]==a[i-2]) {cout<<"Yes"<<endl;ok=0;break;}
      |             ^
Language: C++

#include <string>
#include <iostream>

using namespace std;

int main() {
  int t; cin >> t;
  int buc[11];
  
  for (int i = 0; i < 11; ++i) {
    buc[i] = 0;
  }
  
  while (t > 0) {
    buc[t % 10]++;
    t /= 10;
  }
  
  int num = 0;
  for (int i = 0; i < 11; ++i) {
    if (num[i] == 3) {
      cout << "Yes" << endl;
    }
  }
  
  cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: invalid types 'int[int]' for array subscript
   21 |     if (num[i] == 3) {
      |            ^
Language: C++

#include <string>
#include <iostream>

int main() {
  int t; cin >> t;
  int buc[11];
  
  for (int i = 0; i < 11; ++i) {
    buc[i] = 0;
  }
  
  while (t > 0) {
    buc[t % 10]++;
    t /= 10;
  }
  
  int num = 0;
  for (int i = 0; i < 11; ++i) {
    if (num[i] == 3) {
      cout << "Yes" << endl;
    }
  }
  
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   int t; cin >> t;
      |          ^~~
      |          std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:19:12: error: invalid types 'int[int]' for array subscript
   19 |     if (num[i] == 3) {
      |            ^
a.cc:20:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |       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:20:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |       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:24:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 |   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:24:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   24 |   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<stdio.h>
#include<string.h>
char s[11];
int main()
{
	string s;
	int i;
	cin>>s;
	for(i=1;i<s.size()-1;i++)
		if(s[i]==s[i-1]&&s[i]==s[i+1])
		{
			cout<<"YES"<<endl;
			return 0;
		}
	cout<<"NO"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
    6 |         string s;
      |         ^~~~~~
      |         stdin
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin>>s;
      |         ^~~
a.cc:9:21: error: request for member 'size' in 's', which is of non-class type 'char [11]'
    9 |         for(i=1;i<s.size()-1;i++)
      |                     ^~~~
a.cc:12:25: error: 'cout' was not declared in this scope
   12 |                         cout<<"YES"<<endl;
      |                         ^~~~
a.cc:12:38: error: 'endl' was not declared in this scope
   12 |                         cout<<"YES"<<endl;
      |                                      ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout<<"NO"<<endl;
      |         ^~~~
a.cc:15:21: error: 'endl' was not declared in this scope
   15 |         cout<<"NO"<<endl;
      |                     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    string a;
    int l=strlen(a);
    cin>>a;
    for(int i=0;i<l-2;i++){
        if(a[i]==a[i+1]&&a[i+1]==a[i+2]){
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    5 |     int l=strlen(a);
      |                  ^
      |                  |
      |                  std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~