criyle/codenet-compile-errors huggingface dataset:
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)%10) ||
      (N/1000 == (N%1000)/100 == ((N%1000)%100)/10 != (((N%1000)%100)%10) ||
        (N/1000 == (N%1000)/100  == (((N%1000)%100)%10 != ((N%1000)%100)/10) ||
          (N/1000  == ((N%1000)%100)/10 == ((N%1000)%100)%10 != (N%1000)/100) ||
              ( ((N%1000)%100)/10 == ((N%1000)%100)%10 == (N%1000)/100 ==N/1000 ) )
      {
    cout << "Yes" <<endl;
  }
  else{
    cout << "No" << endl;
  }
}


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

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

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

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


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

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

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

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


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

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

int main() 
{
  char N;
  cin>>N;
  
  for(int i = 0; i < 2; i++) {
    if(N.at(i) == N.at(i+1) == N.at(i+2)) {
      cout<<"Yes"<<endl; 
    }
    
    else{
      cout<<"No"<<endl;
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: request for member 'at' in 'N', which is of non-class type 'char'
   10 |     if(N.at(i) == N.at(i+1) == N.at(i+2)) {
      |          ^~
a.cc:10:21: error: request for member 'at' in 'N', which is of non-class type 'char'
   10 |     if(N.at(i) == N.at(i+1) == N.at(i+2)) {
      |                     ^~
a.cc:10:34: error: request for member 'at' in 'N', which is of non-class type 'char'
   10 |     if(N.at(i) == N.at(i+1) == N.at(i+2)) {
      |                                  ^~
Language: C++

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

int main() 
{
  int N;
  cin>>N;
  
  for(int i = 0; i < 2; i++) {
    if(N.at(i) == N.at(i+1) == N.at(i+2)) {
      cout<<"Yes"<<endl; 
    }
    
    else{
      cout<<"No"<<endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   10 |     if(N.at(i) == N.at(i+1) == N.at(i+2)) {
      |          ^~
a.cc:10:21: error: request for member 'at' in 'N', which is of non-class type 'int'
   10 |     if(N.at(i) == N.at(i+1) == N.at(i+2)) {
      |                     ^~
a.cc:10:34: error: request for member 'at' in 'N', which is of non-class type 'int'
   10 |     if(N.at(i) == N.at(i+1) == N.at(i+2)) {
      |                                  ^~
Language: C++

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

int main() {
  int N,d0,d1,d2,d3;
  cin >> N ;
  
  d3 = N / 1000;
  d2 = (N - d3*1000) / 100;
  d1 = (N - d3*1000 - d2*100) / 10;
  d0 = N % 10
  if( 
    (d3 == d2 && d2 == d1)
    ||
    (d2 == d1 && d1 == d0)
    )
  {cout << "Yes"<<endl;}
  
  else cout << "No" << endl;
      
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'if'
   11 |   d0 = N % 10
      |              ^
      |              ;
   12 |   if(
      |   ~~          
a.cc:19:3: error: 'else' without a previous 'if'
   19 |   else cout << "No" << endl;
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:53: error: expected ';' before '{' token
   10 |   } else (n/100==n/10-10*(n/100)&&n/10==n-10*(n/10)){
      |                                                     ^
      |                                                     ;
a.cc:12:5: error: 'else' without a previous 'if'
   12 |   } 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||a=c=d||b=c=d)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: lvalue required as left operand of assignment
   10 |   if(a=b=c||a=c=d||b=c=d)cout<<"Yes"<<endl;
      |                 ~^~~
Language: C++

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

int main(){
	int N,C,S,M;
	bool flag=true;
	C = 0;
	M = -1;
	cint >> N;
	
	for(i=N;i>0;){
		S = N&10;

		if(S==M){
			C++;
		}
		else{
			C=1;
			M=S;
		}
		N=N/10;
		
		if(C>2){
			break;
		}
	}

	if(C>2)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cint' was not declared in this scope; did you mean 'uint'?
    9 |         cint >> N;
      |         ^~~~
      |         uint
a.cc:11:13: error: 'i' was not declared in this scope
   11 |         for(i=N;i>0;){
      |             ^
Language: C++

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

int main() {
  int N, a, b, c, d;
  cin >> N;
  name a = N / 1000;
  name b = (N - a * 1000) / 100;
  name c = (N - a * 1000 - b * 100) / 10;
  name 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:7:3: error: 'name' was not declared in this scope; did you mean 'tzname'?
    7 |   name a = N / 1000;
      |   ^~~~
      |   tzname
a.cc:8:7: error: expected ';' before 'b'
    8 |   name b = (N - a * 1000) / 100;
      |       ^~
      |       ;
a.cc:9:7: error: expected ';' before 'c'
    9 |   name c = (N - a * 1000 - b * 100) / 10;
      |       ^~
      |       ;
a.cc:10:7: error: expected ';' before 'd'
   10 |   name d = N - a * 1000 - b * 100 - c * 10;
      |       ^~
      |       ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected ';' before 'if'
    7 |   A=N%111
      |          ^
      |          ;
    8 |     if(A<=9){
      |     ~~    
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;
  cin>>N;
  a=N%111;
  if(a<=9){
    cout<<Yes<<endl;
  }
  else{
    cout<<No<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'Yes' was not declared in this scope
    9 |     cout<<Yes<<endl;
      |           ^~~
a.cc:12:11: error: 'No' was not declared in this scope; did you mean 'N'?
   12 |     cout<<No<<endl;
      |           ^~
      |           N
Language: C++

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

int main() {
  char a,b,c,d;
  string x;
  cin >> x;
  
  a=x[0],b=x[1],c=x[2],d=x[3];
  
  if(a==b&&b==c){
      cout << Yes << endl;
  }else if(b==c&&c==d){
   cout << "Yes" << endl;
  }
  else{
  cout << "No" << endl;
  }



Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'Yes' was not declared in this scope
   12 |       cout << Yes << endl;
      |               ^~~
a.cc:18:4: error: expected '}' at end of input
   18 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  char a,b,c,d;
  string x;
  cin >> x ;
  
  a=x[0],b=x[1],c=x[2],d=x[3],
  
  if(a==b&&b==c){
      cout << Yes << endl;
  }else if(b==c&&c==d){
   cout << "Yes" << endl;
  }
  else{
  cout << "No" << endl;
  }



Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected primary-expression before 'if'
   11 |   if(a==b&&b==c){
      |   ^~
a.cc:13:4: error: 'else' without a previous 'if'
   13 |   }else if(b==c&&c==d){
      |    ^~~~
a.cc:18:4: error: expected '}' at end of input
   18 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main(){
  vector<int> vec(4);
  
  for(int i=0;i<4;i++)
    cin >> vec.at(i);
  
  if(vec.at(0)==vec.at(1) && vec.at(1)==vecat.at(2))
    cout << "Yes" << endl;
  else if(vec.at(1)==vec.at(2) && vec.at(2)==vec.at(3))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:41: error: 'vecat' was not declared in this scope; did you mean 'vec'?
   10 |   if(vec.at(0)==vec.at(1) && vec.at(1)==vecat.at(2))
      |                                         ^~~~~
      |                                         vec
Language: C++

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

int main() {
  int n;
  cin >> n;
  int a, b, c, d;
  d = n % 10;
  c = (n/10) % 10;
  b = (n/100) % 10;
  a = (n/1000);

  if ((a == b && b == c) || (b == c && c == d)){
    cout << "Yes" << emdl;
  }else{
    cout << "No" << emdl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: 'emdl' was not declared in this scope
   14 |     cout << "Yes" << emdl;
      |                      ^~~~
a.cc:16:21: error: 'emdl' was not declared in this scope
   16 |     cout << "No" << emdl;
      |                     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected primary-expression before ')' token
   12 |   if (a==b && b==c;){cout<<"Yes"<<endl;}
      |                    ^
a.cc:13:25: error: expected primary-expression before ')' token
   13 |   else if (b==c && c==d;){cout<<"Yes"<<endl;}
      |                         ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: lvalue required as left operand of assignment
   12 |   if (a=b && b=c;){cout<<"Yes"<<endl;}
      |         ~~^~~~
a.cc:12:18: error: expected primary-expression before ')' token
   12 |   if (a=b && b=c;){cout<<"Yes"<<endl;}
      |                  ^
a.cc:13:16: error: lvalue required as left operand of assignment
   13 |   else if (b=c && c=d;){cout<<"Yes"<<endl;}
      |              ~~^~~~
a.cc:13:23: error: expected primary-expression before ')' token
   13 |   else if (b=c && c=d;){cout<<"Yes"<<endl;}
      |                       ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: lvalue required as left operand of assignment
   12 |   if (a=b && b=c){cout<<"Yes"<<endl;}
      |         ~~^~~~
a.cc:13:16: error: lvalue required as left operand of assignment
   13 |   else if (b=c && c=d){cout<<"Yes"<<endl;}
      |              ~~^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,sen,hyaku ,jyu,ichi;
  cin >> N;
  sen = N/1000;
  hyaku = (N-sen*1000)/100;
  jyu=(N-sen*1000-hyaku*100)/10;
  ichi=N-sen*1000-hyaku*100-jyu*10;
  if ((sen == hyaku && hyaku ==jyu )||(jyu == ichi && hyaku ==jyu)) {
  	cout << "Yes" <<;
  }
  else{
  	cout<<"No"<<;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: expected primary-expression before ';' token
   12 |         cout << "Yes" <<;
      |                         ^
a.cc:15:21: error: expected primary-expression before ';' token
   15 |         cout<<"No"<<;
      |                     ^
Language: C++

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

int main() {
  int a;
  cin >> a;
  if(a/1000 || (a/100)%2 && (a/10)%2 && a%2)
    cout << "Yes" << endl;
  else if(a/1000 && (a/100)%2 || (a/10)%2 && a%2)
    cout <<"Yes" << ensl;
  else if(a/1000 && (a/100)%2 && (a/10)%2 || a%2)
    cout << "Yes" << endl;
  else cout << "No" << endl;
  // ここにプログラムを追記
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'ensl' was not declared in this scope
   10 |     cout <<"Yes" << ensl;
      |                     ^~~~
Language: C++


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

int main() {
  int x;
  cin >> x ;
  int sen , syaku, ju, ichi;
  sen = x / 1000
  x = x % 1000
  syaku = x / 100
  x = x % 100
  ju = x / 10
  ichi = x / 1
  if (sen == syaku && syaku == ju) || (syaku == ju && ichi)
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before 'x'
    9 |   sen = x / 1000
      |                 ^
      |                 ;
   10 |   x = x % 1000
      |   ~              
a.cc: At global scope:
a.cc:18:3: error: expected unqualified-id before 'else'
   18 |   else {
      |   ^~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main()
{
  string s;
  cin >> s;
  int check = 0;
  for(int i = 0; i < 4; ++i){
    check = max(check, (count(s.begin(), s.end(), s[i])));  
  }
  if(3 <= check){
  cout << "Yes" << endl;
  }else{
  cout << "No" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: no matching function for call to 'max(int&, std::__iterator_traits<__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >, void>::difference_type)'
   12 |     check = max(check, (count(s.begin(), s.end(), s[i])));
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:12:16: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'std::__iterator_traits<__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >, void>::difference_type' {aka 'long int'})
   12 |     check = max(check, (count(s.begin(), s.end(), s[i])));
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:12:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   12 |     check = max(check, (count(s.begin(), s.end(), s[i])));
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main()
{
  string s;
  cin >> s;
  int check = 0;
  for(int i = 0; i < 4; ++i){
    check = max(check, count(s.begin(), s.end(), s[i]));  
  }
  if(3 <= check){
  cout << "Yes" << endl;
  }else{
  cout << "No" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: no matching function for call to 'max(int&, std::__iterator_traits<__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >, void>::difference_type)'
   12 |     check = max(check, count(s.begin(), s.end(), s[i]));
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:12:16: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'std::__iterator_traits<__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >, void>::difference_type' {aka 'long int'})
   12 |     check = max(check, count(s.begin(), s.end(), s[i]));
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:12:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   12 |     check = max(check, count(s.begin(), s.end(), s[i]));
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main()
{
  string s;
  cin >> s;
  int check = 0;
  for(int i = 0; i < 4; ++i){
    check = max(check, count(s.begin(), s.end(), s[i]);  
  }
  if(3 <= check){
  cout << "Yes" << endl;
  }else{
  cout << "No" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:55: error: expected ')' before ';' token
   12 |     check = max(check, count(s.begin(), s.end(), s[i]);
      |                ~                                      ^
      |                                                       )
Language: C++

int main() {
  int N;
  cin>>N;
  if (N % 1111 == 0 || (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:3:3: error: 'cin' was not declared in this scope
    3 |   cin>>N;
      |   ^~~
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:5:22: error: 'endl' was not declared in this scope
    5 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "No" << endl;
      |     ^~~~
a.cc:11:21: error: 'endl' was not declared in this scope
   11 |     cout << "No" << endl;
      |                     ^~~~
Language: C++

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

int main(){
  int n,a,b,c,d;
  cin >> n;
  a = n / 1000;
  b = n / 100 % 10;
  c = n / 10 % 10;
  d = n % 10;
  if(a == b == c)
    cout << "yes" << endl;
  if(a == b == d)
    cout << "yes" << endl;
  if(a == c == d)
    cout << "yes" << endl;
  if(b == c == d)
    cout << "yes" << endl;
  else
    cout << "no" << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:20:26: error: expected '}' at end of input
   20 |     cout << "no" << endl;
      |                          ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main() {
  int n,a,b;
  cin>>n,a,b;
  if(n==aaab||baaa){
    cout<<"yes"<<endl;
  }
  else{
    cout<<"no"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'aaab' was not declared in this scope
    7 |   if(n==aaab||baaa){
      |         ^~~~
a.cc:7:15: error: 'baaa' was not declared in this scope
    7 |   if(n==aaab||baaa){
      |               ^~~~
Language: C++

#include <iostream>
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"b <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: 'n' was not declared in this scope
    9 |   if(N/1000==N%1000/100==n%1000%100/10||N%1000/100==N%1000%100/10==N%1000%100%10){
      |                          ^
a.cc:14:13: error: unable to find string literal operator 'operator""b' with 'const char [3]', 'long unsigned int' arguments
   14 |     cout << "No"b <<endl;
      |             ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
 char 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:5: error: invalid types 'char[int]' for array subscript
    6 | if(N[0]==N[1]&&N[1]==N[2]){
      |     ^
a.cc:6:11: error: invalid types 'char[int]' for array subscript
    6 | if(N[0]==N[1]&&N[1]==N[2]){
      |           ^
a.cc:6:17: error: invalid types 'char[int]' for array subscript
    6 | if(N[0]==N[1]&&N[1]==N[2]){
      |                 ^
a.cc:6:23: error: invalid types 'char[int]' for array subscript
    6 | if(N[0]==N[1]&&N[1]==N[2]){
      |                       ^
a.cc:9:12: error: invalid types 'char[int]' for array subscript
    9 |   else if(N[1]==N[2]&&N[2]==N[3]){
      |            ^
a.cc:9:18: error: invalid types 'char[int]' for array subscript
    9 |   else if(N[1]==N[2]&&N[2]==N[3]){
      |                  ^
a.cc:9:24: error: invalid types 'char[int]' for array subscript
    9 |   else if(N[1]==N[2]&&N[2]==N[3]){
      |                        ^
a.cc:9:30: error: invalid types 'char[int]' for array subscript
    9 |   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;
  vector<char>vec(4)
if(vec[0]==vec[1]&&vec[1]==vec[2]){
cout<<"Yes"<<endl;
}
  else if(vec[1]==vec[2]&&vec[2]==vec[3]){
  cout<<"Yes"<<endl;}
  else{
  
  cout<<"No"<<endl;}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: expected ',' or ';' before 'if'
    7 | if(vec[0]==vec[1]&&vec[1]==vec[2]){
      | ^~
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else if(vec[1]==vec[2]&&vec[2]==vec[3]){
      |   ^~~~
Language: C++

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

int main() {
	int a,b,c,d,e;
  	cin>>a;
  b=a%1000,c=a%100-b*10,d=a%10-b*100-c*10,e=a-b*1000-c*100-d*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:7:64: error: expected ';' before 'if'
    7 |   b=a%1000,c=a%100-b*10,d=a%10-b*100-c*10,e=a-b*1000-c*100-d*10
      |                                                                ^
      |                                                                ;
    8 |     if(a==b==c||b==c==d){
      |     ~~                                                          
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
Language: C++

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

int main() {
	int a;
  	cin>>a;
  b=a%1000,c=a%100-b*10,d=a%10-b*100-c*10,e=a-b*1000-c*100-d*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:7:3: error: 'b' was not declared in this scope
    7 |   b=a%1000,c=a%100-b*10,d=a%10-b*100-c*10,e=a-b*1000-c*100-d*10
      |   ^
a.cc:7:12: error: 'c' was not declared in this scope
    7 |   b=a%1000,c=a%100-b*10,d=a%10-b*100-c*10,e=a-b*1000-c*100-d*10
      |            ^
a.cc:7:25: error: 'd' was not declared in this scope
    7 |   b=a%1000,c=a%100-b*10,d=a%10-b*100-c*10,e=a-b*1000-c*100-d*10
      |                         ^
a.cc:7:43: error: 'e' was not declared in this scope
    7 |   b=a%1000,c=a%100-b*10,d=a%10-b*100-c*10,e=a-b*1000-c*100-d*10
      |                                           ^
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
Language: C++

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

int main() {
	int a;
  	cin>>a;
  b=a%1000,c=a%100-b*10,d=a%10-b*100-c*10,e=a-b*1000-c*100-d*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:7:3: error: 'b' was not declared in this scope
    7 |   b=a%1000,c=a%100-b*10,d=a%10-b*100-c*10,e=a-b*1000-c*100-d*10
      |   ^
a.cc:7:12: error: 'c' was not declared in this scope
    7 |   b=a%1000,c=a%100-b*10,d=a%10-b*100-c*10,e=a-b*1000-c*100-d*10
      |            ^
a.cc:7:25: error: 'd' was not declared in this scope
    7 |   b=a%1000,c=a%100-b*10,d=a%10-b*100-c*10,e=a-b*1000-c*100-d*10
      |                         ^
a.cc:7:43: error: 'e' was not declared in this scope
    7 |   b=a%1000,c=a%100-b*10,d=a%10-b*100-c*10,e=a-b*1000-c*100-d*10
      |                                           ^
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: invalid types 'int[int]' for array subscript
    6 | if(N[0]==N[1]&&N[1]==N[2]){
      |     ^
a.cc:6:11: error: invalid types 'int[int]' for array subscript
    6 | if(N[0]==N[1]&&N[1]==N[2]){
      |           ^
a.cc:6:17: error: invalid types 'int[int]' for array subscript
    6 | if(N[0]==N[1]&&N[1]==N[2]){
      |                 ^
a.cc:6:23: error: invalid types 'int[int]' for array subscript
    6 | if(N[0]==N[1]&&N[1]==N[2]){
      |                       ^
a.cc:9:12: error: invalid types 'int[int]' for array subscript
    9 |   else if(N[1]==N[2]&&N[2]==N[3]){
      |            ^
a.cc:9:18: error: invalid types 'int[int]' for array subscript
    9 |   else if(N[1]==N[2]&&N[2]==N[3]){
      |                  ^
a.cc:9:24: error: invalid types 'int[int]' for array subscript
    9 |   else if(N[1]==N[2]&&N[2]==N[3]){
      |                        ^
a.cc:9:30: error: invalid types 'int[int]' for array subscript
    9 |   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;
  
  int a = N / 1000, b = N / 100 % 10, c = N / 10 % 10, d % 10;
  
  if(a == b == c || a == b == d || a == c == d || b == c == d)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:58: error: expected initializer before '%' token
    8 |   int a = N / 1000, b = N / 100 % 10, c = N / 10 % 10, d % 10;
      |                                                          ^
a.cc:10:31: error: 'd' was not declared in this scope
   10 |   if(a == b == c || a == b == d || a == c == d || b == c == d)
      |                               ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'i' was not declared in this scope
    8 |   else if(s[i]==s[2]&&s[2]==s[3])
      |             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'i' was not declared in this scope
    8 |   else if(s[i]==s[2]$$s[2]==s[3])
      |             ^
a.cc:8:21: error: expected ')' before '$$s'
    8 |   else if(s[i]==s[2]$$s[2]==s[3])
      |          ~          ^~~
      |                     )
Language: C++

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

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

Compiler output:
a.cc:11:12: error: extended character 　 is not valid in an identifier
   11 |   if (b == c　&& c == d){
      |            ^
a.cc: In function 'int main()':
a.cc:11:12: error: 'c\U00003000' was not declared in this scope
   11 |   if (b == c　&& c == d){
      |            ^~~
Language: C++

int main() {
  int N;
  cin >> N;
 
  if (N % 1110 <= 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:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> N;
      |   ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:6:22: error: 'endl' was not declared in this scope
    6 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << "No" << endl;
      |     ^~~~
a.cc:14:21: error: 'endl' was not declared in this scope
   14 |     cout << "No" << endl;
      |                     ^~~~
Language: C++

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

Compiler output:
a.cc:4:4: error: structured binding declaration cannot have type 'int'
    4 | int[] a ;
      |    ^~
a.cc:4:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:4:4: error: empty structured binding declaration
a.cc:4:7: error: expected initializer before 'a'
    4 | int[] a ;
      |       ^
a.cc: In function 'int main()':
a.cc:6:16: error: 'a' was not declared in this scope
    6 |         cin >> a;
      |                ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: invalid types 'int[int]' for array subscript
    7 |         if(a[0]==a[1]&&a[1]==a[2]&&a[2]==a[3])
      |             ^
a.cc:7:19: error: invalid types 'int[int]' for array subscript
    7 |         if(a[0]==a[1]&&a[1]==a[2]&&a[2]==a[3])
      |                   ^
a.cc:7:25: error: invalid types 'int[int]' for array subscript
    7 |         if(a[0]==a[1]&&a[1]==a[2]&&a[2]==a[3])
      |                         ^
a.cc:7:31: error: invalid types 'int[int]' for array subscript
    7 |         if(a[0]==a[1]&&a[1]==a[2]&&a[2]==a[3])
      |                               ^
a.cc:7:37: error: invalid types 'int[int]' for array subscript
    7 |         if(a[0]==a[1]&&a[1]==a[2]&&a[2]==a[3])
      |                                     ^
a.cc:7:43: error: invalid types 'int[int]' for array subscript
    7 |         if(a[0]==a[1]&&a[1]==a[2]&&a[2]==a[3])
      |                                           ^
a.cc:9:18: error: invalid types 'int[int]' for array subscript
    9 |         else if(a[1]==a[2]&&a[2]==a[3]&&a[3]==a[4])
      |                  ^
a.cc:9:24: error: invalid types 'int[int]' for array subscript
    9 |         else if(a[1]==a[2]&&a[2]==a[3]&&a[3]==a[4])
      |                        ^
a.cc:9:30: error: invalid types 'int[int]' for array subscript
    9 |         else if(a[1]==a[2]&&a[2]==a[3]&&a[3]==a[4])
      |                              ^
a.cc:9:36: error: invalid types 'int[int]' for array subscript
    9 |         else if(a[1]==a[2]&&a[2]==a[3]&&a[3]==a[4])
      |                                    ^
a.cc:9:42: error: invalid types 'int[int]' for array subscript
    9 |         else if(a[1]==a[2]&&a[2]==a[3]&&a[3]==a[4])
      |                                          ^
a.cc:9:48: error: invalid types 'int[int]' for array subscript
    9 |         else if(a[1]==a[2]&&a[2]==a[3]&&a[3]==a[4])
      |                                                ^
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
int main() {
int N,a1,a2,a3,a4;
cin >>N;
a1 = (N-N%1000)/1000;
a2 = (N-1000*a1-N%100)/100;
a3 = (N-1000*a1-100*a2-N%10)/10;
a4 = N-1000*a1-100*a2-10*a3;
if(((a1==a2)&&(a2==a3))||((a2==a3)&&(a3==a4))){
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:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int N,a1,a2,a3,a4;
cin >>N;
a1 = (N-N%1000)/1000
a2 = (N-1000*a1-N%100)/100
a3 = (N-1000*a1-100*a2-N%10)/10
a4 = N-1000*a1-100*a2-10*a3
if(((a1==a2)&&(a2==a3))||((a1==a3)&&(a3==a4))||((a2==a3)&&(a3==a4)){
cout<< "Yes" <<endl;
}

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ';' before 'a2'
    6 | a1 = (N-N%1000)/1000
      |                     ^
      |                     ;
    7 | a2 = (N-1000*a1-N%100)/100
      | ~~                   
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else{
      | ^~~~
Language: C++

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

int main() {

  int a;
  cin >> a ;
  if (a%1111==0){
    cout << "Yes" ;
  }
  else if (a%111%1000==0){
    cout << "Yes";
  }
  else if (a%1110==0){
    cout << "Yes";
  }
  else {
    cout << "No";
}


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

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

int main() {

  int a;
  cin >> a ;
  if (a%1111==0){
    cout << "Yes" ;
  }
  else if (a%111%1000==0){
    cout << "Yes";
  }
  else if (a%1110==0){
    cout << "Yes"
  }
  else {
    cout << "No"
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: expected ';' before '}' token
   15 |     cout << "Yes"
      |                  ^
      |                  ;
   16 |   }
      |   ~               
a.cc:18:17: error: expected ';' before '}' token
   18 |     cout << "No"
      |                 ^
      |                 ;
   19 | }
      | ~                
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1e18;
const ll MOD = 1e9 + 7;
#define all(v) v.begin(), v.end()
#define repi(i, n, init) for (ll i = init; i < (n); i++)
#define repd(i, n, init) for (ll i = (n); i >= init; i--)
#define repm(i, m) for (auto i = m.begin(); i != m.end(); i++)

int main()
{
    ll N;
    cin >> N;
    string n;
    n = to_string(N);
    repi(i, n.lenght(), 0)
    {
        ll cnt = 0;
        repi(j, n.length(), 0)
        {
            if (i == j)
            {
                continue;
            }
            else if (n.at(i) == n.at(j))
            {
                cnt++;
            }
        }
        if (cnt >= 3)
        {
            puts("Yes");
            return 0;
        }
    }
    puts("No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'lenght'; did you mean 'length'?
   17 |     repi(i, n.lenght(), 0)
      |               ^~~~~~
a.cc:7:49: note: in definition of macro 'repi'
    7 | #define repi(i, n, init) for (ll i = init; i < (n); i++)
      |                                                 ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:6: error: expected '(' before 'else'
   15 |   if else(b==c==d){
      |      ^~~~
      |      (
a.cc:18:3: error: 'else' without a previous 'if'
   18 |   else{
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: redeclaration of 'int N'
    6 |   int N=1000*a+100*b+10*c+d;
      |       ^
a.cc:5:7: note: 'int N' previously declared here
    5 |   int N,a,b,c,d;
      |       ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '==' token
    6 |   int N==1000*a+100*b+10*c+d;
      |        ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '==' token
    6 |   int N==1000*a+100*b+10*c+d;
      |        ^~
a.cc:8:6: error: 'a' was not declared in this scope
    8 |   if(a==b==c||a==b==d||a==c==d||b==c==d){
      |      ^
a.cc:8:9: error: 'b' was not declared in this scope
    8 |   if(a==b==c||a==b==d||a==c==d||b==c==d){
      |         ^
a.cc:8:12: error: 'c' was not declared in this scope
    8 |   if(a==b==c||a==b==d||a==c==d||b==c==d){
      |            ^
a.cc:8:21: error: 'd' was not declared in this scope
    8 |   if(a==b==c||a==b==d||a==c==d||b==c==d){
      |                     ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '==' token
    5 |   int N==1000*a+100*b+10*c+d;
      |        ^~
a.cc:6:8: error: 'N' was not declared in this scope
    6 |   cin>>N;
      |        ^
a.cc:7:6: error: 'a' was not declared in this scope
    7 |   if(a==b==c||a==b==d||a==c==d||b==c==d){
      |      ^
a.cc:7:9: error: 'b' was not declared in this scope
    7 |   if(a==b==c||a==b==d||a==c==d||b==c==d){
      |         ^
a.cc:7:12: error: 'c' was not declared in this scope
    7 |   if(a==b==c||a==b==d||a==c==d||b==c==d){
      |            ^
a.cc:7:21: error: 'd' was not declared in this scope
    7 |   if(a==b==c||a==b==d||a==c==d||b==c==d){
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  string s = n + "";
  int c = 1;
  for(int i = 1; i <= s.Length; i++)
    if(s[i] == s[i - 1])
      c++;
  return c >= 3;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'Length'; did you mean 'length'?
    8 |   for(int i = 1; i <= s.Length; i++)
      |                         ^~~~~~
      |                         length
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  string s = n + "";
  int c = 1;
  for(int i = 1; i <= s.length; i++)
    if(s[i] == s[i - 1])
      c++;
  return c >= 3;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    8 |   for(int i = 1; i <= s.length; i++)
      |                       ~~^~~~~~
      |                               ()
Language: C++

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

}

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

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


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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'N' was not declared in this scope; did you mean 'N2'?
    6 |   cin >> N >> A >> B;
      |          ^
      |          N2
a.cc:6:15: error: 'A' was not declared in this scope
    6 |   cin >> N >> A >> B;
      |               ^
a.cc:6:20: error: 'B' was not declared in this scope
    6 |   cin >> N >> A >> B;
      |                    ^