criyle/codenet-compile-errors huggingface dataset:
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;
  }
  
}  
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: lvalue required as left operand of assignment
    8 |   if (N[0] = N[1] && N[1] = N[2]) {
a.cc:12:24: error: lvalue required as left operand of assignment
   12 |   else if (N[1] = N[2] && 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[1] = N[2]) {
    cout << "Yes" << endl;
  }
  
  else if (N[1] = N[2] && N[2] = N[3]) {
    cout << "No" << endl;
  }
  
}  
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: invalid types 'int[int]' for array subscript
    8 |   if (N[0] = N[1] && N[1] = N[2]) {
      |        ^
a.cc:8:15: error: invalid types 'int[int]' for array subscript
    8 |   if (N[0] = N[1] && N[1] = N[2]) {
      |               ^
a.cc:8:23: error: invalid types 'int[int]' for array subscript
    8 |   if (N[0] = N[1] && N[1] = N[2]) {
      |                       ^
a.cc:8:30: error: invalid types 'int[int]' for array subscript
    8 |   if (N[0] = N[1] && N[1] = N[2]) {
      |                              ^
a.cc:12:13: error: invalid types 'int[int]' for array subscript
   12 |   else if (N[1] = N[2] && N[2] = N[3]) {
      |             ^
a.cc:12:20: error: invalid types 'int[int]' for array subscript
   12 |   else if (N[1] = N[2] && N[2] = N[3]) {
      |                    ^
a.cc:12:28: error: invalid types 'int[int]' for array subscript
   12 |   else if (N[1] = N[2] && N[2] = N[3]) {
      |                            ^
a.cc:12:35: error: invalid types 'int[int]' for array subscript
   12 |   else if (N[1] = N[2] && N[2] = N[3]) {
      |                                   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:28:5: error: expected '}' before 'else'
   28 |     else {
      |     ^~~~
a.cc:19:23: note: to match this '{'
   19 |     if (N[1] == N[2]) {
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    string N;
    cin >> N;
    
    if((N[0] == N[1] $$ N[1] == N[2]) || (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:8:21: error: expected ')' before '$$'
    8 |     if((N[0] == N[1] $$ N[1] == N[2]) || (N[1] == N[2] $$ N[2] == N[3])){
      |        ~            ^~~
      |                     )
a.cc:10:6: error: expected ')' before 'else'
   10 |     }else {
      |      ^~~~
      |      )
a.cc:8:7: note: to match this '('
    8 |     if((N[0] == N[1] $$ N[1] == N[2]) || (N[1] == N[2] $$ N[2] == N[3])){
      |       ^
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  
  int N;
  cin >> N;
  
  int a, b, c, d; //一，十，百，千の位
  
  a = N % 10;
  N /= 10;
  b = N % 10;
  N /= 10;
  c = N % 10;
  N /= 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:20:15: error: lvalue required as left operand of assignment
   20 |   if ((a == b && b = c) || (b == c && c == d)) {
      |        ~~~~~~~^~~~
Language: C++

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

int main()
{
    string s;
    cin >> s;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:42: error: expected primary-expression before 'if'
    9 |     if((s[0] == s[1] && s[1] == s[2]) || if(s[2] == s[3] && s[1] == s[2]))
      |                                          ^~
a.cc:9:41: error: expected ')' before 'if'
    9 |     if((s[0] == s[1] && s[1] == s[2]) || if(s[2] == s[3] && s[1] == s[2]))
      |       ~                                 ^~~
      |                                         )
Language: C++

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
using ll = long long;
using P = pair<int, int>;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(), v.end()
#define sz(x) ((int) x.size())
#define pb push_back
#define mp make_pair
#define F first
#define S second
typedef vector<ll> vi;
const int MOD = 1000000007;
template<class T> void print(const T& t){ cout << t << endl; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

int main(){
  ll n;
  cin >> n;
  ll a = n / 1000;
  ll b = n % 1000 / 100;
  ll c = n % 100 / 10;
  ll d = n % 10;
  if(a==b&&b==c){
    print("Yes");
  }
  else if(b==c&&c==d){
    print("Yes");
  }
  else{
    print("No");
  }

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: invalid types 'int[int]' for array subscript
    7 |     if(n[0]==n[1]==n[2] ||n[1]==n[2]==n[3]) {
      |         ^
a.cc:7:15: error: invalid types 'int[int]' for array subscript
    7 |     if(n[0]==n[1]==n[2] ||n[1]==n[2]==n[3]) {
      |               ^
a.cc:7:21: error: invalid types 'int[int]' for array subscript
    7 |     if(n[0]==n[1]==n[2] ||n[1]==n[2]==n[3]) {
      |                     ^
a.cc:7:28: error: invalid types 'int[int]' for array subscript
    7 |     if(n[0]==n[1]==n[2] ||n[1]==n[2]==n[3]) {
      |                            ^
a.cc:7:34: error: invalid types 'int[int]' for array subscript
    7 |     if(n[0]==n[1]==n[2] ||n[1]==n[2]==n[3]) {
      |                                  ^
a.cc:7:40: error: invalid types 'int[int]' for array subscript
    7 |     if(n[0]==n[1]==n[2] ||n[1]==n[2]==n[3]) {
      |                                        ^
Language: C++

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

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

int main() {
  int N ,x;
  cin >> N;
  x = N/10
  if ( x%111 == 0) {
    cout << "Yes" << endl;
  }
   else if ( N%111 == 0 ) {
    cout << "Yes" << endl;
  }
  else if ( (N-1000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-2000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-3000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-4000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-5000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-6000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-7000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-8000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-9000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
  else {
  cout << "No" << endl;
  }
}
 


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   14 | int main() {
      |         ^~
a.cc:14:9: note: remove parentheses to default-initialize a variable
   14 | int main() {
      |         ^~
      |         --
a.cc:14:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:14:12: error: a function-definition is not allowed here before '{' token
   14 | int main() {
      |            ^
a.cc:54:2: error: expected '}' at end of input
   54 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int N ,x;
  cin >> N;
  x = N/10
  if ( x%111 == 0) {
    cout << "Yes" << endl;
  }
  else if ( (N-1000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-2000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-3000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-4000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-5000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-6000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-7000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-8000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
   else if ( (N-9000)%111 == 0 ) {
    cout << "Yes" << endl;
  }
  else {
  cout << "No" << endl;
  }
}
 


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'if'
    7 |   x = N/10
      |           ^
      |           ;
    8 |   if ( x%111 == 0) {
      |   ~~       
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if ( (N-1000)%111 == 0 ) {
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected '}' before 'else'
    8 |   else if((N%111)<=9){cout << "Yes" << endl;}
      |   ^~~~
a.cc:7:17: note: to match this '{'
    7 |   if (N%1111==0){cout << "Yes" << endl;
      |                 ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected '}' before 'else'
    8 |   else if(N%111<=9){cout << "Yes" << endl;}
      |   ^~~~
a.cc:7:17: note: to match this '{'
    7 |   if (N%1111==0){cout << "Yes" << endl;
      |                 ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected ';' before 'b'
   10 |   a=N/1000
      |           ^
      |           ;
   11 |   b=(N-1000*a)/100
      |   ~        
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else if((N-111*b)%1000 == 0 ){
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int N;
  cin >> N;
  if(N[0]==N[1]&&N[0]==N[2]){
  	cout << "Yes" << endl;
  } else if(N[1]==N[2]&&N[1]==N[3]){
  	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[0]==N[2]){
      |       ^
a.cc:7:13: error: invalid types 'int[int]' for array subscript
    7 |   if(N[0]==N[1]&&N[0]==N[2]){
      |             ^
a.cc:7:19: error: invalid types 'int[int]' for array subscript
    7 |   if(N[0]==N[1]&&N[0]==N[2]){
      |                   ^
a.cc:7:25: error: invalid types 'int[int]' for array subscript
    7 |   if(N[0]==N[1]&&N[0]==N[2]){
      |                         ^
a.cc:9:14: error: invalid types 'int[int]' for array subscript
    9 |   } else if(N[1]==N[2]&&N[1]==N[3]){
      |              ^
a.cc:9:20: error: invalid types 'int[int]' for array subscript
    9 |   } else if(N[1]==N[2]&&N[1]==N[3]){
      |                    ^
a.cc:9:26: error: invalid types 'int[int]' for array subscript
    9 |   } else if(N[1]==N[2]&&N[1]==N[3]){
      |                          ^
a.cc:9:32: error: invalid types 'int[int]' for array subscript
    9 |   } else if(N[1]==N[2]&&N[1]==N[3]){
      |                                ^
Language: C++

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

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

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

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

Compiler output:
a.cc:14:1: error: 'p' does not name a type
   14 | p
      | ^
Language: C++

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

int main()
{
  char n;
  cin >> n;
  
  if( n[0] == n[1] == n[2] || 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 'char[int]' for array subscript
    9 |   if( n[0] == n[1] == n[2] || n[1] == n[2] == n[3])
      |        ^
a.cc:9:16: error: invalid types 'char[int]' for array subscript
    9 |   if( n[0] == n[1] == n[2] || n[1] == n[2] == n[3])
      |                ^
a.cc:9:24: error: invalid types 'char[int]' for array subscript
    9 |   if( n[0] == n[1] == n[2] || n[1] == n[2] == n[3])
      |                        ^
a.cc:9:32: error: invalid types 'char[int]' for array subscript
    9 |   if( n[0] == n[1] == n[2] || n[1] == n[2] == n[3])
      |                                ^
a.cc:9:40: error: invalid types 'char[int]' for array subscript
    9 |   if( n[0] == n[1] == n[2] || n[1] == n[2] == n[3])
      |                                        ^
a.cc:9:48: error: invalid types 'char[int]' for array subscript
    9 |   if( n[0] == n[1] == n[2] || 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] || 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] || n[1] == n[2] == n[3])
      |        ^
a.cc:9:16: error: invalid types 'int[int]' for array subscript
    9 |   if( n[0] == n[1] == n[2] || n[1] == n[2] == n[3])
      |                ^
a.cc:9:24: error: invalid types 'int[int]' for array subscript
    9 |   if( n[0] == n[1] == n[2] || n[1] == n[2] == n[3])
      |                        ^
a.cc:9:32: error: invalid types 'int[int]' for array subscript
    9 |   if( n[0] == n[1] == n[2] || n[1] == n[2] == n[3])
      |                                ^
a.cc:9:40: error: invalid types 'int[int]' for array subscript
    9 |   if( n[0] == n[1] == n[2] || n[1] == n[2] == n[3])
      |                                        ^
a.cc:9:48: error: invalid types 'int[int]' for array subscript
    9 |   if( n[0] == n[1] == n[2] || n[1] == n[2] == n[3])
      |                                                ^
Language: C


#pragma warning(disable:4996)

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>

#pragma region 定義
#define i_cin(X) scanf("%d", &X)
#define i_cin2(X,Y) scanf("%d %d",&X,&Y)
#define i_cin3(X,Y,Z) scanf("%d %d %d",&X,&Y,&Z)
#define l_cin(X) scanf("%ld",&X)
#define f_cin(X) scanf("%f",&X)
#define l_cin2(X,Y) scanf("%ld %ld",&X,&Y)
#define s_cin(X) scanf("%s",&X)

#define  i_cout(X) printf("%d\n",X)
#define  f_cout(X) printf("%g\n",X)
#define  i_cout2(X,Y) printf("%d %d\n",X,Y)
#define  l_cout(X) printf("%ld\n",X)
#define  s_cout(X) printf("%s\n",X)
#define  ll_cout(X) printf("%lld\n",X)

typedef long long  ll;
#define rept(x, s, n) for (int x = s; x < n; x++)

#define Yes_RTN s_cout("Yes");return 0
#define No_RTN  s_cout("No");return 0
#define YES_RTN s_cout("YES");return 0
#define NO_RTN  s_cout("NO");return 0

#define _itoa(A,N) sprintf(A, "%d", N);

int i_cins(int n, int* A);
int l_cins2(int n, long* A, long* B);
int s_dsort(const void* a, const void* b);
int s_asort(const void* a, const void* b);

int  _gcd(int a, int b);
int  _swp(int* a, int* b);

int s_asorts(const void* a, const void* b);

//昇順
int s_asorts(const void* a, const void* b) {
	return(strcmp((char*)a, (char*)b));
}
int s_dsort(const void* a, const void* b) {
	return(*(int*)b - *(int*)a);
}
int s_asort(const void* a, const void* b) {
	return(*(int*)a - *(int*)b);
}
int l_cins2(int n, long* a, long* b) {
	int i;
	rept(i, 0, n) {
		l_cin2(*(a + i), *(b + i));
	}
	return 0;
}
int i_cins(int n, int* a) {
	int i;
	for (i = 0; i < n; i++) {
		i_cin(*(a + i));
	}

	return 0;
}
int _gcd(int a, int b) {
	int r, tmp;
	if (a < b) { tmp = a; a = b; b = tmp; }
	r = a % b;
	while (r) {
		if (!r) break;
		a = b; b = r;
		r = a % b;
	}
	return(b);
}

long _max(long a, long b) {
	return a > b ? a : b;
}
long _min(long a, long b) {
	return a < b ? a : b;
}
int _swp(int* a, int* b)
{
	int tmp;
	tmp = *b; *b = *a; *a = tmp;
	return 0;
}

#pragma endregion


int main(void) {
	int N;
	char n[5];

	i_cin(N);

	itoa(n, N,10);

	if (n[1] != n[2]) { No_RTN; }
	if (n[0] == n[1] || n[2] == n[3]) { Yes_RTN; }
	No_RTN;
}



Compiler output:
main.c: In function 'main':
main.c:105:9: error: implicit declaration of function 'itoa'; did you mean '_itoa'? [-Wimplicit-function-declaration]
  105 |         itoa(n, N,10);
      |         ^~~~
      |         _itoa
Language: C++


#pragma warning(disable:4996)

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>

#pragma region 定義
#define i_cin(X) scanf("%d", &X)
#define i_cin2(X,Y) scanf("%d %d",&X,&Y)
#define i_cin3(X,Y,Z) scanf("%d %d %d",&X,&Y,&Z)
#define l_cin(X) scanf("%ld",&X)
#define f_cin(X) scanf("%f",&X)
#define l_cin2(X,Y) scanf("%ld %ld",&X,&Y)
#define s_cin(X) scanf("%s",&X)

#define  i_cout(X) printf("%d\n",X)
#define  f_cout(X) printf("%g\n",X)
#define  i_cout2(X,Y) printf("%d %d\n",X,Y)
#define  l_cout(X) printf("%ld\n",X)
#define  s_cout(X) printf("%s\n",X)
#define  ll_cout(X) printf("%lld\n",X)

typedef long long  ll;
#define rept(x, s, n) for (int x = s; x < n; x++)

#define Yes_RTN s_cout("Yes");return 0
#define No_RTN  s_cout("No");return 0
#define YES_RTN s_cout("YES");return 0
#define NO_RTN  s_cout("NO");return 0


int i_cins(int n, int* A);
int l_cins2(int n, long* A, long* B);
int s_dsort(const void* a, const void* b);
int s_asort(const void* a, const void* b);

int  _gcd(int a, int b);
int  _swp(int* a, int* b);

int s_asorts(const void* a, const void* b);

//昇順
int s_asorts(const void* a, const void* b) {
	return(strcmp((char*)a, (char*)b));
}
int s_dsort(const void* a, const void* b) {
	return(*(int*)b - *(int*)a);
}
int s_asort(const void* a, const void* b) {
	return(*(int*)a - *(int*)b);
}
int l_cins2(int n, long* a, long* b) {
	int i;
	rept(i, 0, n) {
		l_cin2(*(a + i), *(b + i));
	}
	return 0;
}
int i_cins(int n, int* a) {
	int i;
	for (i = 0; i < n; i++) {
		i_cin(*(a + i));
	}

	return 0;
}
int _gcd(int a, int b) {
	int r, tmp;
	if (a < b) { tmp = a; a = b; b = tmp; }
	r = a % b;
	while (r) {
		if (!r) break;
		a = b; b = r;
		r = a % b;
	}
	return(b);
}

long _max(long a, long b) {
	return a > b ? a : b;
}
long _min(long a, long b) {
	return a < b ? a : b;
}
int _swp(int* a, int* b)
{
	int tmp;
	tmp = *b; *b = *a; *a = tmp;
	return 0;
}

#pragma endregion



int main(void) {
	int N;
	char n[5];

	i_cin(N);

	itoa(N, n,10);

	if (n[1] != n[2]) { No_RTN; }
	if (n[0] == n[1] || n[2] == n[3]) { Yes_RTN; }
	No_RTN;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:105:9: error: 'itoa' was not declared in this scope
  105 |         itoa(N, n,10);
      |         ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 's' was not declared in this scope
    7 |   if(s[0]==s[1]&&s[0]==s[2]) cout<<"Yes"<<endl;
      |      ^
Language: C++

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

Compiler output:
a.cc:4:7: error: expected unqualified-id before numeric constant
    4 |   int 1<=a<=9;
      |       ^
a.cc: In function 'int main()':
a.cc:7:9: error: 'a' was not declared in this scope
    7 |   if((N-a)%111=0){
      |         ^
a.cc:10:9: error: 'a' was not declared in this scope
   10 |   if((N-a*1000)%111=0){
      |         ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: expected ';' before '{' token
   11 |   else (a!=c || b !=d || b!=c){
      |                               ^
      |                               ;
Language: C++

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

int main() {
  string a;
  cin >> a;
  
  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:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: lvalue required as left operand of assignment
    6 |   if((N[0]=N[1] && N[1]=N[2]) ||(N[1]=N[2] && N[2]=N[3]))
a.cc:6:44: error: lvalue required as left operand of assignment
    6 |   if((N[0]=N[1] && N[1]=N[2]) ||(N[1]=N[2] && N[2]=N[3]))
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 == c || b == c == d) {
    cout << "Yes" << endl;
  else {
    cout << "No" << endl;
  }
  }
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected ';' before 'b'
    6 |   a = N / 1000
      |               ^
      |               ;
    7 |   b = (N - a * 1000) / 100
      |   ~
Language: C++

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


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

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

int main() {
  int N;
  cin >> N;
  vector<int> a(4);
  for(int i=0;i<4;i++)
    a.at(i) = N/pow(10, i+1)%(int)pow(10, i);
  if(a.at(1) == a.at(2) && (a.at(0) == 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:9:29: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
    9 |     a.at(i) = N/pow(10, i+1)%(int)pow(10, i);
      |               ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
      |                |             |
      |                |             int
      |                __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> a(4);
  for(int i=0;i<4;i++)
    a.at(i) = N/pow(10, i+1)%pow(10, i);
  if(a.at(1) == a.at(2) && (a.at(0) == 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:9:29: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
    9 |     a.at(i) = N/pow(10, i+1)%pow(10, i);
      |               ~~~~~~~~~~~~~~^~~~~~~~~~~
      |                |                |
      |                |                __gnu_cxx::__promote<double>::__type {aka double}
      |                __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

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

int main() {
  int N;
  cin >> N;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected '}' before 'else'
   11 |   else{
      |   ^~~~
a.cc:8:83: note: to match this '{'
    8 |   if (N/1000==N%1000/100==N%1000%100/10||N%1000/100==N%1000%100/10==N%1000%100%10){ {
      |                                                                                   ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected ';' before 'if'
   10 |   d=e-1000*a-100*b-10*c
      |                        ^
      |                        ;
   11 |   if (a==b==c||b==c==d) {
      |   ~~                    
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   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 << "Yes" << endl;
  else
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'String' was not declared in this scope
    6 |   String N;
      |   ^~~~~~
a.cc:7:10: error: 'N' was not declared in this scope
    7 |   cin >> N;
      |          ^
Language: C++

import java.util.*;
import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		char arr[] = sc.nextLine().toCharArray(); 
		if(arr[0] == arr[1] && arr[1] == arr[2])
			System.out.println("Yes"); 
		else if(arr[1] == arr[2] && arr[2] == arr[3])
			System.out.println("Yes");
		else
			System.out.println("No");
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>
#ifdef LOKO
#include<Joeon>
#define rep(i, l, r) for(register int i = l; i < r; i++)
#define hrp(i, l, r) for(register int i = l; i <= r; i++)
#define rev(i, r, l) for(register int i = r; i >= l; i--)
#define D(x) cout<<"D: "<<#x<<'='<<x<<endl;
#define R(x, l) cout<<"R: Array "<<#x<<endl; rep(i, 0, l) cout<<' '<<i<<':'<<*(x+i)<<endl;
#else
#define D(x)
#define R(x, l)
#endif
#define pb push_back
#define int ll
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
template<typename tn> inline tn next(void);
template<typename tn> inline ostream& operator << (ostream& os, const vector<tn>& v);
signed main(void)
{
	#ifdef LOKO
//		freopen("C:\\Users\\Joeon\\Desktop\\IN.txt", "r", stdin);
//		freopen("C:\\Users\\Joeon\\Desktop\\OUT.txt", "w", stdout);
	#endif
	ios::sync_with_stdio(false);
	cin.tie(0);
	string str;
	cin>>str;
	if (str[0] == str[1] && str[1] == str[2]) puts("Yes");
	else if (str[1] == str[2] && str[2] == str[3]) puts("Yes");
	else puts("No");
	return 0;
}
template<typename tn> inline tn next(void)
{
	tn k;
	cin>>k;
	return k;
}
template<typename tn> inline ostream& operator << (ostream& os, const vector<tn>& v)
{
	rep(i, 0, v.size()) os<<v[i]<<' ';
	return os;
}


Compiler output:
a.cc: In function 'std::ostream& operator<<(std::ostream&, const std::vector<_Tp>&)':
a.cc:43:13: error: 'i' was not declared in this scope
   43 |         rep(i, 0, v.size()) os<<v[i]<<' ';
      |             ^
a.cc:43:28: error: expected ';' before 'os'
   43 |         rep(i, 0, v.size()) os<<v[i]<<' ';
      |                            ^~~
      |                            ;
Language: C++

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

int main() {
  stirng num;
  cin >> num;
  
  if (num.at(0) == num.at(1) && num.at(0) == num.at(2)) {
    cout << "yes" << endl;
  }
 
  else if (num.at(1) == num.at(2) && num.at(1) == num.at(3)){
    cout << "yes" << endl;
  }
           
  else {
    cout << "no" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng num;
      |   ^~~~~~
a.cc:6:10: error: 'num' was not declared in this scope; did you mean 'enum'?
    6 |   cin >> num;
      |          ^~~
      |          enum
Language: C++

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

int main() {
  stirng num;
  cin << num;
  
  if (num.at(0) == num.at(1) && num.at(0) == num.at(2)) {
    cout << "yes" << endl;
  }
 
  else if (num.at(1) == num.at(2) && num.at(1) == num.at(3)){
    cout << "yes" << endl;
  }
           
  else {
    cout << "no" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng num;
      |   ^~~~~~
a.cc:6:10: error: 'num' was not declared in this scope; did you mean 'enum'?
    6 |   cin << num;
      |          ^~~
      |          enum
Language: C++

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

int main() {
  int num;
  cin >> num;
  
  if (num.at(0) == num.at(1) && num.at(0) == num.at(2) {
    cout << "yes" << endl;
  }
 
  else if (num.at(1) == num.at(2) && num.at(1) == num.at(3) {
    cout << "yes" << endl;
  }
           
  else {
    cout << "no" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: request for member 'at' in 'num', which is of non-class type 'int'
    8 |   if (num.at(0) == num.at(1) && num.at(0) == num.at(2) {
      |           ^~
a.cc:8:24: error: request for member 'at' in 'num', which is of non-class type 'int'
    8 |   if (num.at(0) == num.at(1) && num.at(0) == num.at(2) {
      |                        ^~
a.cc:8:37: error: request for member 'at' in 'num', which is of non-class type 'int'
    8 |   if (num.at(0) == num.at(1) && num.at(0) == num.at(2) {
      |                                     ^~
a.cc:8:50: error: request for member 'at' in 'num', which is of non-class type 'int'
    8 |   if (num.at(0) == num.at(1) && num.at(0) == num.at(2) {
      |                                                  ^~
a.cc:8:55: error: expected ')' before '{' token
    8 |   if (num.at(0) == num.at(1) && num.at(0) == num.at(2) {
      |      ~                                                ^~
      |                                                       )
a.cc:19:1: error: expected primary-expression before '}' token
   19 | }
      | ^
Language: C++

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

int main() {
  int num;
  
  if (num.at(0) == num.at(1) && num.at(0) == num.at(2) {
    cout << "yes" << endl;
  }
 
  else if (num.at(1) == num.at(2) && num.at(1) == num.at(3) {
    cout << "yes" << endl;
  }
           
  else {
    cout << "no" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: request for member 'at' in 'num', which is of non-class type 'int'
    7 |   if (num.at(0) == num.at(1) && num.at(0) == num.at(2) {
      |           ^~
a.cc:7:24: error: request for member 'at' in 'num', which is of non-class type 'int'
    7 |   if (num.at(0) == num.at(1) && num.at(0) == num.at(2) {
      |                        ^~
a.cc:7:37: error: request for member 'at' in 'num', which is of non-class type 'int'
    7 |   if (num.at(0) == num.at(1) && num.at(0) == num.at(2) {
      |                                     ^~
a.cc:7:50: error: request for member 'at' in 'num', which is of non-class type 'int'
    7 |   if (num.at(0) == num.at(1) && num.at(0) == num.at(2) {
      |                                                  ^~
a.cc:7:55: error: expected ')' before '{' token
    7 |   if (num.at(0) == num.at(1) && num.at(0) == num.at(2) {
      |      ~                                                ^~
      |                                                       )
a.cc:18:1: error: expected primary-expression before '}' token
   18 | }
      | ^
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:10:12: error: lvalue required as left operand of assignment
   10 |   if ((a=b && b=c)||(b=c && c=d)){
      |          ~~^~~~
a.cc:10:26: error: lvalue required as left operand of assignment
   10 |   if ((a=b && b=c)||(b=c && c=d)){
      |                        ~~^~~~
Language: Java

public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
	  String n = sc.next();
      String a = "a";
      int goodCount;
      for(int i=0; i<4; i++){
        //一緒だったらカウントする
      	if(i > 0 && a == n.substring(i,i+1)) goodCount++;
        //文字確認する値を一つズラす
        String a = n.substring(i,i+1);
      }
      if(goodCount >= 3){
        System.out.plintln("Yes");
      }else{
        System.out.println("No");
      }
    }     
}


Compiler output:
Main.java:4: error: cannot find symbol
      Scanner sc = new Scanner(System.in);
      ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
      Scanner sc = new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class Main
Main.java:12: error: variable a is already defined in method main(String[])
        String a = n.substring(i,i+1);
               ^
Main.java:15: error: cannot find symbol
        System.out.plintln("Yes");
                  ^
  symbol:   method plintln(String)
  location: variable out of type PrintStream
4 errors
Language: Java

public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
	  String n = sc.next();
      String a = "a";
      int goodCount;
      for(int i=0; i<4; i++){
        //一緒だったらカウントする
      	if(i > 0 && a == n.substring(i,i+1)) goodCount++;
        //文字確認する値を一つズラす
        String a = n.substring(i,i+1);
      }
      if(goodCount >= 3){
        System.out.plintln("Yes");
      }else{
        System.out.println("No);
      }
    }     
}


Compiler output:
Main.java:17: error: unclosed string literal
        System.out.println("No);
                           ^
1 error
Language: C++

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: lvalue required as left operand of assignment
    9 |   if(A%111==0||B%111=0)
      |      ~~~~~~~~^~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before 'if'
    8 |   B=N-(N%10)
      |             ^
      |             ;
    9 |   if(A%111==0||B%111=0)
      |   ~~         
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   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 - (A * 1000)) / 100)
  C = ((N - (A * 1000 + B * 100)) / 10)
  D = (N - (A * 1000 + B * 100 + C * 10))

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

  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before 'B'
    8 |   A = (N / 1000)
      |                 ^
      |                 ;
    9 |   B = ((N - (A * 1000)) / 100)
      |   ~              
a.cc:17:3: 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 - (A * 1000)) / 100)
  C == ((N - (A * 1000 + B * 100)) / 10)
  D == (N - (A * 1000 + B * 100 + C * 10))

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

  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before 'B'
   10 |   A == (N / 1000)
      |                  ^
      |                  ;
   11 |   B == ((N - (A * 1000)) / 100)
      |   ~               
a.cc:19:3: error: 'else' without a previous 'if'
   19 |   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 - (A * 1000)) / 100)
  C == ((N - (A * 1000 + B * 100)) / 100)
  D == (N - (A * 1000 + B * 100 + C * 10))

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

  else {
    cout << "No" << endl;
  }
}

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

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

int main(){
  int N;
  int tho;
  int hun;
  int ten;
  int one;
  cin >> N;
  tho = N/1000;
  hun = (N - tho*1000)/100;
  ten = (N - tho*1000 - hun*100)/10;
  one = (N - tho*1000 - hun*100 - ten*10)
  
  if(hun == ten){
    if (tho == hun || ten == one){
      cout << "Yes" << endl;
    }
    else {
      cout << "No" << endl;
    }
  }
  
  else{
    cout << "No" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:42: error: expected ';' before 'if'
   14 |   one = (N - tho*1000 - hun*100 - ten*10)
      |                                          ^
      |                                          ;
   15 | 
   16 |   if(hun == ten){
      |   ~~                                      
a.cc:25:3: error: 'else' without a previous 'if'
   25 |   else{
      |   ^~~~
Language: C++

n = sorted(list(input()))
print('Yes' if n[0] == n[2] else 'No')

Compiler output:
a.cc:2:7: warning: multi-character character constant [-Wmultichar]
    2 | print('Yes' if n[0] == n[2] else 'No')
      |       ^~~~~
a.cc:2:34: warning: multi-character character constant [-Wmultichar]
    2 | print('Yes' if n[0] == n[2] else 'No')
      |                                  ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = sorted(list(input()))
      | ^
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*a)/100;
  c = (N-1000a-100*b)/10;
  d = N-1000*a-100*b-10*c;
    if((a==b==c||b==c==d)||(a==b==d||a==c==d)){
    cout<<"Yes"<<endl;
   }else{
    cout<<"No"<<endl;
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: unable to find numeric literal operator 'operator""a'
    9 |   c = (N-1000a-100*b)/10;
      |          ^~~~~
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*a)/100;
  c = (N-1000a-100*b)/10;
  d = N-1000*a-100*b-10*c;
    if(a==b==c||b==c==d||a==b==d||a==c==d){
    cout<<"Yes"<<endl;
   }else{
    cout<<"No"<<endl;
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: unable to find numeric literal operator 'operator""a'
    9 |   c = (N-1000a-100*b)/10;
      |          ^~~~~
Language: C++

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


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


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

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

int main() {
  stirng x;
  cin >> x;

  if (x[1]!=x[2]) {
    cout << "No" << endl;
  }else if(x[0]!=x[1] && x[2]!=x[3]){
    cout << "No" << endl;
  }else{cout << "Yes" << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng x;
      |   ^~~~~~
a.cc:6:10: error: 'x' was not declared in this scope
    6 |   cin >> x;
      |          ^
Language: C++

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

int main() {
  int N;
  cin >> N;

  if (N％1111==0 || N%1110<=9 || N%1000%111==0) {
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'N\U0000ff051111' was not declared in this scope
    8 |   if (N％1111==0 || N%1110<=9 || N%1000%111==0) {
      |       ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N,H,X; /*入力*/
  cin >> N;
  H = N%1111;
  X = N/10;
   Y = X%100;
    Z = (N - X)%100;
  //いい整数かどうかを判定する
  if (H==0||Y==0||Z==0){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: 'Y' was not declared in this scope
    8 |    Y = X%100;
      |    ^
a.cc:9:5: error: 'Z' was not declared in this scope
    9 |     Z = (N - X)%100;
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N,H,X; /*入力*/
  cin >> N;
  H = N%1111
  X = N/10
   Y = X%100
    Z = (N - X)%100
  //いい整数かどうかを判定する
  if (H==0||Y==0||Z==0){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected ';' before 'X'
    6 |   H = N%1111
      |             ^
      |             ;
    7 |   X = N/10
      |   ~          
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: lvalue required as left operand of assignment
   15 |   if(s1000 = s100 && s100 = s10)
      |              ~~~~~^~~~~~~
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%1000)%100)/10 && ((N%1000)%100)/10==(((N%1000)%100)%10) 
      {
    cout << "Yes" <<endl;
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:107: error: expected ')' before '{' token
    7 |   if( (N/1000 == (N%1000)/100 && (N%1000)/100==((N%1000)%100)/10 && ((N%1000)%100)/10==(((N%1000)%100)%10)
      |       ~                                                                                                   ^
      |                                                                                                           )
    8 |       {
      |       ~                                                                                                    
a.cc:10:4: error: expected ')' before 'else'
   10 |   }
      |    ^
      |    )
   11 |   else{
      |   ~~~~
a.cc:7:5: note: to match this '('
    7 |   if( (N/1000 == (N%1000)/100 && (N%1000)/100==((N%1000)%100)/10 && ((N%1000)%100)/10==(((N%1000)%100)%10)
      |     ^
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^