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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'thousands_place' was not declared in this scope
    8 |         thousands_place = n / 1000
      |         ^~~~~~~~~~~~~~~
a.cc:16:9: error: 'else' without a previous 'if'
   16 |         else if (hundreds_place == tens_place and tens_place == units_digit) {
      |         ^~~~
a.cc:16:18: error: 'hundreds_place' was not declared in this scope
   16 |         else if (hundreds_place == tens_place and tens_place == units_digit) {
      |                  ^~~~~~~~~~~~~~
a.cc:16:36: error: 'tens_place' was not declared in this scope
   16 |         else if (hundreds_place == tens_place and tens_place == units_digit) {
      |                                    ^~~~~~~~~~
a.cc:16:65: error: 'units_digit' was not declared in this scope; did you mean 'isxdigit'?
   16 |         else if (hundreds_place == tens_place and tens_place == units_digit) {
      |                                                                 ^~~~~~~~~~~
      |                                                                 isxdigit
Language: C++

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

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:1:10: fatal error: bits.stdc++.h: No such file or directory
    1 | #include <bits.stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'string' was not declared in this scope
    6 | string s;
      | ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>s;
      |   ^~~
a.cc:7:8: error: 's' was not declared in this scope
    7 |   cin>>s;
      |        ^
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |   }else cout<<"No"<<endl;
      |         ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope
   10 |   }else cout<<"No"<<endl;
      |                     ^~~~
Language: C++

include<iostream>
using namespace std;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string s;
      | ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>s;
      |   ^~~
a.cc:6:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |   }else cout<<"No"<<endl;
      |         ^~~~
a.cc:9:21: error: 'endl' was not declared in this scope
    9 |   }else cout<<"No"<<endl;
      |                     ^~~~
Language: C++

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

int main() {
  int N, a, b1, b2 c1, c2, d;
  cin >> N;
  
  a = N / 1000;
  b1 = N / 100; b2 = b1 % 10;
  c1 = N / 10;  c2 = c1 % 100;
  d = N % 10;
  
  if ( a == b2){
    if ( b2 == c2 ){
      cout << "Yes";
    }
    
    else{
      cout << "No";
    }
  }
  
  else if ( b2 == c2){
    if( c2 == d ){
      cout << "Yes";
    }
    
    else{
      cout << "No";
    }
  }

  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: expected initializer before 'c1'
    5 |   int N, a, b1, b2 c1, c2, d;
      |                    ^~
a.cc:9:17: error: 'b2' was not declared in this scope; did you mean 'b1'?
    9 |   b1 = N / 100; b2 = b1 % 10;
      |                 ^~
      |                 b1
a.cc:10:3: error: 'c1' was not declared in this scope; did you mean 'b1'?
   10 |   c1 = N / 10;  c2 = c1 % 100;
      |   ^~
      |   b1
a.cc:10:17: error: 'c2' was not declared in this scope
   10 |   c1 = N / 10;  c2 = c1 % 100;
      |                 ^~
a.cc:11:3: error: 'd' was not declared in this scope
   11 |   d = N % 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 - 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:12:15: error: lvalue required as left operand of assignment
   12 |   if (a==b==c || b=c=d) {
      |       ~~~~~~~~^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1) && n.at(1)==n.at(2) || n.at(1)==n.at(2) && n.at(2)==n.at(3)){
      |        ^~
a.cc:6:17: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1) && n.at(1)==n.at(2) || n.at(1)==n.at(2) && n.at(2)==n.at(3)){
      |                 ^~
a.cc:6:28: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1) && n.at(1)==n.at(2) || n.at(1)==n.at(2) && n.at(2)==n.at(3)){
      |                            ^~
a.cc:6:37: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1) && n.at(1)==n.at(2) || n.at(1)==n.at(2) && n.at(2)==n.at(3)){
      |                                     ^~
a.cc:6:48: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1) && n.at(1)==n.at(2) || n.at(1)==n.at(2) && n.at(2)==n.at(3)){
      |                                                ^~
a.cc:6:57: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1) && n.at(1)==n.at(2) || n.at(1)==n.at(2) && n.at(2)==n.at(3)){
      |                                                         ^~
a.cc:6:68: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1) && n.at(1)==n.at(2) || n.at(1)==n.at(2) && n.at(2)==n.at(3)){
      |                                                                    ^~
a.cc:6:77: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1) && n.at(1)==n.at(2) || n.at(1)==n.at(2) && n.at(2)==n.at(3)){
      |                                                                             ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1)==n.at(2) || n.at(1)==n.at(2)==n.at(3)){
      |        ^~
a.cc:6:17: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1)==n.at(2) || n.at(1)==n.at(2)==n.at(3)){
      |                 ^~
a.cc:6:26: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1)==n.at(2) || n.at(1)==n.at(2)==n.at(3)){
      |                          ^~
a.cc:6:37: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1)==n.at(2) || n.at(1)==n.at(2)==n.at(3)){
      |                                     ^~
a.cc:6:46: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1)==n.at(2) || n.at(1)==n.at(2)==n.at(3)){
      |                                              ^~
a.cc:6:55: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if(n.at(0)==n.at(1)==n.at(2) || n.at(1)==n.at(2)==n.at(3)){
      |                                                       ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: 'x' was not declared in this scope
    8 |   if(X / 10 % 111 == 0 || x % 1000 % 111 == 0){
      |                           ^
Language: C++

#include<iostream>
using namespace std;
int main(void){
  
  int n, count, beforeNumber;
  
  cin >> n;
  
  before = n%10;
  while(n < 0){
    n /= 10;
    if(before == n){
      count++;
      if(count >= 3){
        break;
      }
    }else{
      count = 0;
    }
    before = n%10;
  }
  
  if(count >= 3){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'before' was not declared in this scope
    9 |   before = n%10;
      |   ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, n0, n1, n2, n3, c;
  cin >> N;
  c = 1;
  n0 = N % 10;
  N = N /10;
  n1 = N % 10;
  N = N /10;
  n2 = N % 10;
  N = N /10;
  n3 = N % 10;
  if (n0 == n1) {
    c = c + 1;
  } else {
    c = 1;
  }
  if (n1 == n2) {
    c = c + 1;
  } else {
    c = 1;
  }
  if (n2 == n3) {
    c = c + 1;
  } else {
    c = 1;
  }
  if (c >= 3) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, n0, n1, n2, n3, c;
  cin >> N
  c = 1;
  n0 = N % 10;
  N = N /10;
  n1 = N % 10;
  N = N /10;
  n2 = N % 10;
  N = N /10;
  n3 = N % 10;
  if (n0 == n1) {
    c = c + 1
  } else {
    c = 1
  }
  if (n1 == n2) {
    c = c + 1
  } else {
    c = 1
  }
  if (n2 == n3) {
    c = c + 1
  } else {
    c = 1
  }
  if (c >= 3) {
    cout << "Yes"
  } else {
    cout << "No"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected ';' before 'c'
    5 |   cin >> N
      |           ^
      |           ;
    6 |   c = 1;
      |   ~        
a.cc:15:14: error: expected ';' before '}' token
   15 |     c = c + 1
      |              ^
      |              ;
   16 |   } else {
      |   ~           
a.cc:17:10: error: expected ';' before '}' token
   17 |     c = 1
      |          ^
      |          ;
   18 |   }
      |   ~       
a.cc:20:14: error: expected ';' before '}' token
   20 |     c = c + 1
      |              ^
      |              ;
   21 |   } else {
      |   ~           
a.cc:22:10: error: expected ';' before '}' token
   22 |     c = 1
      |          ^
      |          ;
   23 |   }
      |   ~       
a.cc:25:14: error: expected ';' before '}' token
   25 |     c = c + 1
      |              ^
      |              ;
   26 |   } else {
      |   ~           
a.cc:27:10: error: expected ';' before '}' token
   27 |     c = 1
      |          ^
      |          ;
   28 |   }
      |   ~       
a.cc:30:18: error: expected ';' before '}' token
   30 |     cout << "Yes"
      |                  ^
      |                  ;
   31 |   } else {
      |   ~               
a.cc:32:17: error: expected ';' before '}' token
   32 |     cout << "No"
      |                 ^
      |                 ;
   33 | }
      | ~                
a.cc:33:2: error: expected '}' at end of input
   33 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  int N,thou,hund,ten,one;
  
  cin>>N;
  
  thou=(N-N%1000)/1000;
  hund=(N%1000-N%100)/100;
  ten=(N%100-N%10)/10;
  one=N%10;
    
  if(thou==hund && hund==ten){
    cout<<"Yes"<<endl;
  }
  
  else if (thou==hund && hund==one){
    cout<<"Yes"<<endl;
  }
  
  else if (thou==ten && ten==one){
    cout<<"Yes"<<endl;
  }
  
  else if (hund==ten && ten==one){
    cout<<"Yes"<<endl;
  }

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  int N,thou,hund,ten,one;
  
  cin>>N;
  
  thou=(N-N%1000)/1000;
  hund=(N%1000-N%100)/100;
  ten=(N%100-N%10)/10;
  one=N%10;
    
  if(thou==hund && hund==ten){
    cout<<"Yes"<<endl;
  }
  
  else if (thou==hund && hund==one){
    cout<<"Yes"<<endl;
  }
  
  else if (thou==ten && ten==one){
    cout<<"Yes"<<endl;
  }

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

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

int main() {
  int n;
  cin >> n;
  int array[4];
  for(int i = 0; i > 3; i++){
  	array[0] = n.substr(i, 1)
  }
  
  int bef;
  int count = 0;
  for(int i = 0; i > 3; i++){
  	if(i == 0){
    	bef = array[0];
    }
    else{
    	if(bef == array[i]){
        	count++;
    	}
      bef = array[i];
    }
  }
  
  if (count >= 2) {
    cout << "Yes" << endl;
  }
  else{
  cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: request for member 'substr' in 'n', which is of non-class type 'int'
    9 |         array[0] = n.substr(i, 1)
      |                      ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace 
  std;
 
int main() {
  int A;
  cin >> A;
  
  if(A.at(0)==A.at(1)==A.at(2)){
    cout << "Yes" << endl;
  }
  else if(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:8: error: request for member 'at' in 'A', which is of non-class type 'int'
    9 |   if(A.at(0)==A.at(1)==A.at(2)){
      |        ^~
a.cc:9:17: error: request for member 'at' in 'A', which is of non-class type 'int'
    9 |   if(A.at(0)==A.at(1)==A.at(2)){
      |                 ^~
a.cc:9:26: error: request for member 'at' in 'A', which is of non-class type 'int'
    9 |   if(A.at(0)==A.at(1)==A.at(2)){
      |                          ^~
a.cc:12:13: error: request for member 'at' in 'A', which is of non-class type 'int'
   12 |   else if(A.at(1)==A.at(2)==A.at(3)){
      |             ^~
a.cc:12:22: error: request for member 'at' in 'A', which is of non-class type 'int'
   12 |   else if(A.at(1)==A.at(2)==A.at(3)){
      |                      ^~
a.cc:12:31: error: request for member 'at' in 'A', which is of non-class type 'int'
   12 |   else if(A.at(1)==A.at(2)==A.at(3)){
      |                               ^~
Language: C++

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

int main()
{
  int N, A, S[];
  cin >> N;
  A = 1;
  
  for (int i = 0; i < 4; i++)
  {
    int a = A;
    A *= 10;
    S[i] = N % A / a;
    N = N - S[i] * a;
  }
  
  if (S[0] == S[1] && S[1] == S[2])
  {
    cout << "Yes" << endl;
  } else if (S[2] == S[3] && S[1] == S[2])
  {
    cout << "Yes" << endl;
  } else
  {
    cout << "No" << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: storage size of 'S' isn't known
    6 |   int N, A, S[];
      |             ^
Language: C++

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

int main() {
  string n;  cin>>n;
  int a[10]={};
  for(int i=0; i<n.size(); i++) {
    n[i]=to_int(n[i]);
  	a[n[i]]]++;
  }
  bool falg=false;
  for(int i=0; i<10; i++) {
  	if(a[i]==3 || a[i]==4) {
      flag=true;
      break;
    }
  }
  flag? cout<<"Yes"<<endl: cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'to_int' was not declared in this scope; did you mean 'u_int'?
    8 |     n[i]=to_int(n[i]);
      |          ^~~~~~
      |          u_int
a.cc:9:16: error: expected ';' before ']' token
    9 |         a[n[i]]]++;
      |                ^
      |                ;
a.cc:14:7: error: 'flag' was not declared in this scope; did you mean 'falg'?
   14 |       flag=true;
      |       ^~~~
      |       falg
a.cc:18:3: error: 'flag' was not declared in this scope; did you mean 'falg'?
   18 |   flag? cout<<"Yes"<<endl: cout<<"No"<<endl;
      |   ^~~~
      |   falg
Language: C++

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

int main() {
  string n;  cin>>n;
  int a[10]={};
  for(int i=0; i<n.size(); i++) {
    string[i]=to_int(string[i]);
  	a[string[i]]]++;
  }
  bool falg=false;
  for(int i=0; i<10; i++) {
  	if(a[i]==3 || a[i]==4) {
      flag=true;
      break;
    }
  }
  flag? cout<<"Yes"<<endl: cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: structured binding declaration cannot have type 'std::string' {aka 'std::__cxx11::basic_string<char>'}
    8 |     string[i]=to_int(string[i]);
      |           ^~~
a.cc:8:11: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:12: error: redeclaration of 'auto i'
    8 |     string[i]=to_int(string[i]);
      |            ^
a.cc:7:11: note: 'int i' previously declared here
    7 |   for(int i=0; i<n.size(); i++) {
      |           ^
a.cc:8:28: error: expected primary-expression before '[' token
    8 |     string[i]=to_int(string[i]);
      |                            ^
a.cc:8:29: error: use of 'i' before deduction of 'auto'
    8 |     string[i]=to_int(string[i]);
      |                             ^
a.cc:8:15: error: 'to_int' was not declared in this scope; did you mean 'u_int'?
    8 |     string[i]=to_int(string[i]);
      |               ^~~~~~
      |               u_int
a.cc:9:17: error: expected primary-expression before '[' token
    9 |         a[string[i]]]++;
      |                 ^
a.cc:14:7: error: 'flag' was not declared in this scope; did you mean 'falg'?
   14 |       flag=true;
      |       ^~~~
      |       falg
a.cc:18:3: error: 'flag' was not declared in this scope; did you mean 'falg'?
   18 |   flag? cout<<"Yes"<<endl: cout<<"No"<<endl;
      |   ^~~~
      |   falg
Language: C++

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

int main() {
  string n;  cin>>n;
  int a[10]={};
  for(int i=0; i<n.size(); i++) {
  	a[string[i]]]++;
  }
  bool falg=false;
  for(int i=0; i<10; i++) {
  	if(a[i]==3 || a[i]==4) {
      flag=true;
      break;
    }
  }
  flag? cout<<"Yes"<<endl: cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected primary-expression before '[' token
    8 |         a[string[i]]]++;
      |                 ^
a.cc:13:7: error: 'flag' was not declared in this scope; did you mean 'falg'?
   13 |       flag=true;
      |       ^~~~
      |       falg
a.cc:17:3: error: 'flag' was not declared in this scope; did you mean 'falg'?
   17 |   flag? cout<<"Yes"<<endl: cout<<"No"<<endl;
      |   ^~~~
      |   falg
Language: C++

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

int main() {
  char x[3];
  cin >> x;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: lvalue required as left operand of assignment
    8 |   if (x[0]=x[1] && x[1]=x[2]) {
      |            ~~~~~^~~~~~~
a.cc:11:21: error: lvalue required as left operand of assignment
   11 |   else if(x[1]=x[2] && x[2]=x[3]){
      |                ~~~~~^~~~~~~
Language: C++

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

int main() {
  char x[3];
  cin >> x;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: lvalue required as left operand of assignment
    8 |   if (x[0]=x[1]=x[2] || x[1]=x[2]=x[3]) {
      |                 ~~~~~^~~~~~~
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 - 1000 * a) / 100;
    c = (N - 1000 * a - b * 100) / 10;
    d = (N - 1000 * a - b * 100) % 10;

    count = 0;
    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:14:13: error: overloaded function with no contextual type information
   14 |     count = 0;
      |             ^
Language: C++

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

int main() {
  int X, a, b, c, d;
  cin >> X;
  
  a = X / 1000;
  b = (X - 1000 * a) / 100;
  c = (X - 1000 * a - 100 * b) / 10;
  d = X - 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:13:16: error: lvalue required as left operand of assignment
   13 |   if(a = b = c || b = c = d){
      |              ~~^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'String' was not declared in this scope
    5 |         String str; cin >> str ;
      |         ^~~~~~
a.cc:5:28: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |         String str; cin >> str ;
      |                            ^~~
      |                            std
Language: C++

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

int main() {
  string s;
  cin >> s;
  int count = 0;
  for(int i = 0; i < 3; i++){
    if(s.at(i) == s.at(i + 1)){
      count++;
    }
  if(count >= 3){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:2: 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() {
  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:8:18: error: expected primary-expression before '=' token
    8 |   if (N % 1110 <== 9) {
      |                  ^
Language: C++

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

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:8:18: error: expected primary-expression before '=' token
    8 |   if (N % 1110 <== 9) {
      |                  ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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:8:18: error: expected primary-expression before '=' token
    8 |   if (N % 1110 <== 9) {
      |                  ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

  if((n[0]==n[1] && n[1]==n[2]) || 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:8: error: invalid types 'int[int]' for array subscript
    8 |   if((n[0]==n[1] && n[1]==n[2]) || n[1]==n[2] && n[2]==n[3]){
      |        ^
a.cc:8:14: error: invalid types 'int[int]' for array subscript
    8 |   if((n[0]==n[1] && n[1]==n[2]) || n[1]==n[2] && n[2]==n[3]){
      |              ^
a.cc:8:22: error: invalid types 'int[int]' for array subscript
    8 |   if((n[0]==n[1] && n[1]==n[2]) || n[1]==n[2] && n[2]==n[3]){
      |                      ^
a.cc:8:28: error: invalid types 'int[int]' for array subscript
    8 |   if((n[0]==n[1] && n[1]==n[2]) || n[1]==n[2] && n[2]==n[3]){
      |                            ^
a.cc:8:37: error: invalid types 'int[int]' for array subscript
    8 |   if((n[0]==n[1] && n[1]==n[2]) || n[1]==n[2] && n[2]==n[3]){
      |                                     ^
a.cc:8:43: error: invalid types 'int[int]' for array subscript
    8 |   if((n[0]==n[1] && n[1]==n[2]) || n[1]==n[2] && n[2]==n[3]){
      |                                           ^
a.cc:8:51: error: invalid types 'int[int]' for array subscript
    8 |   if((n[0]==n[1] && n[1]==n[2]) || n[1]==n[2] && n[2]==n[3]){
      |                                                   ^
a.cc:8:57: error: invalid types 'int[int]' for array subscript
    8 |   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 x,a,b,c,d;
  cin >> x;
  a = x%10;
  b = (x/10)%10;
  c= (x/100)%10;
  d = x/1000;
  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:11:19: error: expected primary-expression before '||' token
   11 |   if (a == b == c)||(a == b == d)||(a== c== d)||(b== c== d){
      |                   ^~
Language: C++

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

int main(void) {
  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:7:70: error: expected ';' before 'cout'
    7 |   if((N[0] == N[1] && N[1] == N[2]) || (N[1] == N[2] && N[2] == N[3]) cout << "Yes" << endl;
      |                                                                      ^~~~~
      |                                                                      ;
a.cc:8:3: error: expected primary-expression before 'else'
    8 |   else cout << "No" << endl;
      |   ^~~~
a.cc:7:93: error: expected ')' before 'else'
    7 |   if((N[0] == N[1] && N[1] == N[2]) || (N[1] == N[2] && N[2] == N[3]) cout << "Yes" << endl;
      |     ~                                                                                       ^
      |                                                                                             )
    8 |   else cout << "No" << endl;
      |   ~~~~
Language: C++

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:40: error: expected ')' before '{' token
    8 |   if(a.at(3)==a.at(2)&&a.at(2)==a.at(1){
      |     ~                                  ^
      |                                        )
a.cc:17:3: error: expected primary-expression before '}' token
   17 |   }
      |   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before 'd'
    8 |   c = ((a-b)/10)%10
      |                    ^
      |                    ;
    9 |   d = ((a-a%100)/100)%10
      |   ~                 
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else if (b == c || b == d){
      |   ^~~~
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(system.in);
      int n = sc.nextInt();
      int[] array = new int[4];
      int i = 0;
      while(n >= 1){
      	array[i] = n%10;
        i++;
        n = n/10;
      }
      if( (array[0]==array[1]&&array[1]==array[2])||(array[1]==array[2]&&array[2]==array[3]) ){
      	System.out.println("Yes");
      }else{
      	System.out.println("No");
      }
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
    	Scanner sc = new Scanner(system.in);
    	                         ^
  symbol:   variable system
  location: class Main
1 error
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:7:22: error: lvalue required as left operand of assignment
    7 |   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() {
  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:7:20: error: lvalue required as left operand of assignment
    7 |   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 d = n%10;
      int c = (n%100 - d)/10;
      int b = (n%1000 - 10*c - d)/100;
      int a = n/1000
      
      if( a==b==c){
        cout << "Yes" << endl;
      }
      
      else if( b==c==d){
        cout << "Yes" << endl;
      }
      
      else {
        cout << "No" << endl;
      }
      // ここにプログラムを追記
    }

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

    #include <bits/stdc++.h>
    using namespace std;
     
    int main() {
      int n;
      cin >> n;
      int d = n%10;
      int c = (n%100 - d)/10;
      int b = (n%1000 - 10*c - d)/100;
      int a = n/1000
      
      if(( a==b==c) || ( b==c==d)){
        cout << "Yes" << endl;
      }
      
      else if( b==c==d){
        cout << "Yes" << endl;
      }
      
      else {
        cout << "No" << endl;
      }
      // ここにプログラムを追記
    }

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

import java.util.* ;
class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
	int A = scan.nextInt();
    String s = Integer.toString(A);
    char ch[] = s.toCharArray();
    ArrayList<Character> a = new ArrayList<>();
    for(int i = 0 ; i < ch.length; i++){
      if(!a.contains(ch[i])){
        a.add(ch[i]);
      }
    }
    if(a.size()<= 2){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }

  }
}


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.* ;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.* ;
      |            ^
main.c:2:1: error: unknown type name 'class'
    2 | class Main {
      | ^~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | class Main {
      |            ^
Language: C++

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

int main() {
  string N;
  cin >> N;
  
  int A = N.at(0);
  int B = N.at(1);
  int C = N.at(2);
  int D = N.at(3);
  
  if (A == B == C || B == C == D) {
    cout << Yes << endl;
  }
  else {
    cout << No << endl;
  }
}
    

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

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

int main(){
  stirng 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:8:13: warning: multi-character character constant [-Wmultichar]
    8 |     cout << 'yes' << endl;
      |             ^~~~~
a.cc:10:16: warning: multi-character character constant [-Wmultichar]
   10 |   else cout << 'No' << endl;
      |                ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng N;
      |   ^~~~~~
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N;
      |          ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:27:5: error: expected '}' before 'else'
   27 |     else {
      |     ^~~~
a.cc:25:47: note: to match this '{'
   25 |     if (order2 == order3 && order3 == order4) {
      |                                               ^
Language: C++


	return a;
}

typedef pair<int, int> pai;


//ここまでライブラリ
//ここから本文

int main() {
	string s;
	cin >> s;
	char a = s.at(0);
	int cnt = 1;
	for (int i = 1; i < 4; i++) {
		if (s.at(i) == a) cnt++;
		else {
			cnt = 0;
		}
		if (cnt == 3) {
			dump("Yes")
				return 0;
		}
		a = s.at(i);
	}
	dump("No");
}


Compiler output:
a.cc:2:9: error: expected unqualified-id before 'return'
    2 |         return a;
      |         ^~~~~~
a.cc:3:1: error: expected declaration before '}' token
    3 | }
      | ^
a.cc:5:9: error: 'pair' does not name a type
    5 | typedef pair<int, int> pai;
      |         ^~~~
a.cc: In function 'int main()':
a.cc:12:9: error: 'string' was not declared in this scope
   12 |         string s;
      |         ^~~~~~
a.cc:13:9: error: 'cin' was not declared in this scope
   13 |         cin >> s;
      |         ^~~
a.cc:13:16: error: 's' was not declared in this scope
   13 |         cin >> s;
      |                ^
a.cc:22:25: error: 'dump' was not declared in this scope
   22 |                         dump("Yes")
      |                         ^~~~
a.cc:27:9: error: 'dump' was not declared in this scope
   27 |         dump("No");
      |         ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected '(' before '{' token
    6 |   if {S.at(1) == S.at(2) && (S.at(0) == S.at(1) || S.at(2) == S.at(3)}{
      |      ^
      |      (
a.cc:8:4: error: 'else' without a previous 'if'
    8 |   }else{
      |    ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:71: error: expected ')' before '{' token
    6 |   if (S.at(1) == S.at(2) && (S.at(0) == S.at(1) || S.at(2) == S.at(3)){
      |      ~                                                                ^
      |                                                                       )
a.cc:11:1: error: expected primary-expression before '}' token
   11 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 |   if(N.at(0)==N.at(1)==N.at(2) || N.at(1)==N.at(2)==N.at(3)){
      |        ^~
a.cc:7:17: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 |   if(N.at(0)==N.at(1)==N.at(2) || N.at(1)==N.at(2)==N.at(3)){
      |                 ^~
a.cc:7:26: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 |   if(N.at(0)==N.at(1)==N.at(2) || N.at(1)==N.at(2)==N.at(3)){
      |                          ^~
a.cc:7:37: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 |   if(N.at(0)==N.at(1)==N.at(2) || N.at(1)==N.at(2)==N.at(3)){
      |                                     ^~
a.cc:7:46: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 |   if(N.at(0)==N.at(1)==N.at(2) || N.at(1)==N.at(2)==N.at(3)){
      |                                              ^~
a.cc:7:55: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 |   if(N.at(0)==N.at(1)==N.at(2) || N.at(1)==N.at(2)==N.at(3)){
      |                                                       ^~
Language: C++

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

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

Compiler output:
a.cc:4:5: error: extended character 　 is not valid in an identifier
    4 | int 　main(){
      |     ^
a.cc: In function 'int \U00003000main()':
a.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  cin >> n;
  a = n % 1000;
  b = 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:7:3: error: 'a' was not declared in this scope
    7 |   a = n % 1000;
      |   ^
a.cc:8:3: error: 'b' was not declared in this scope
    8 |   b = n / 10;
      |   ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:56: error: expected primary-expression before ')' token
   12 |   if (((b == c) and (c == d)) or (c == d) and (d == e))){
      |                                                        ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected '}' before 'else'
   14 |   else {
      |   ^~~~
a.cc:12:38: note: to match this '{'
   12 |   if ((b == c == d) or (c == d == e)){
      |                                      ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:37: error: expected ')' before '{' token
   12 |   if ((b == c == d) or (c == d == e){
      |      ~                              ^
      |                                     )
a.cc:17:2: error: expected statement at end of input
   17 | }
      |  ^
a.cc:17:2: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
int a,b,c,d;
int kazu;
cin >> kazu;
int iti, zyuu, hyaku, sen;
  iti = kazu % 10;
  zyuu = kazu % 100 - iti;
  hyaku = kazu % 1000 - zyuu - iti;
  sen = kazu - hyaku - zyuu - iti;
  
  
	if (sen == hyaku == zyuu || sen == hyaku == iti || sen == zyuu == iti || hayku == zyuu == iti){
      cout << "Yse" << endl;
    }
  	else {
      cout << "No" << endl;

    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:82: error: 'hayku' was not declared in this scope; did you mean 'hyaku'?
   15 |         if (sen == hyaku == zyuu || sen == hyaku == iti || sen == zyuu == iti || hayku == zyuu == iti){
      |                                                                                  ^~~~~
      |                                                                                  hyaku
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 - 1000*a - b*100 ) / 10 ;
  d = N - 1000*a - 100*b - 10*c;
  e = ( 100*a +10*b + c ) % 3;
  f = ( 100*b +10*c + d ) % 3;
  if( e == 0 || f == 0){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'e' was not declared in this scope
   11 |   e = ( 100*a +10*b + c ) % 3;
      |   ^
a.cc:12:3: error: 'f' was not declared in this scope
   12 |   f = ( 100*b +10*c + d ) % 3;
      |   ^
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 - 1000*a - b*100 ) / 10 ;
  d = N - 1000*a - 100*b - 10*c;
  e = ( 100*a +10*b + c ) % 3
  f = ( 100*b +10*c + d ) % 3
  if( e == 0 || f == 0){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'e' was not declared in this scope
   11 |   e = ( 100*a +10*b + c ) % 3
      |   ^
a.cc:15:4: error: 'else' without a previous 'if'
   15 |   }else{
      |    ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'brake' was not declared in this scope; did you mean 'brk'?
   16 |     brake;
      |     ^~~~~
      |     brk
Language: C++

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

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


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

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

int main() {
  int x;
  cin >> x;
  a=x/1000;
  b=x%1000/100;
  c=x%100/10;
  d=x%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: 'a' was not declared in this scope
    7 |   a=x/1000;
      |   ^
a.cc:8:3: error: 'b' was not declared in this scope
    8 |   b=x%1000/100;
      |   ^
a.cc:9:3: error: 'c' was not declared in this scope
    9 |   c=x%100/10;
      |   ^
a.cc:10:3: error: 'd' was not declared in this scope
   10 |   d=x%10;
      |   ^
Language: C++

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

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

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

int main() {
  int x;
  cin >> x;
  a=x//1000
  b=x%1000/100
  c=x%100/10
  d=x%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: 'a' was not declared in this scope
    7 |   a=x//1000
      |   ^
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, 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:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int N, a, b, c, d;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> N;
      |   ^~~
a.cc:7:3: error: 'a' does not name a type
    7 |   a = N / 1000;
      |   ^
a.cc:8:3: error: 'b' does not name a type
    8 |   b = (N % 1000) / 100;
      |   ^
a.cc:9:3: error: 'c' does not name a type
    9 |   c = (N % 100) / 10;
      |   ^
a.cc:10:3: error: 'd' does not name a type
   10 |   d = N % 10;
      |   ^
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if (((a == b) && (b == c)) || (b == c) && (c == d)) {
      |   ^~
a.cc:14:3: error: expected unqualified-id before 'else'
   14 |   else {
      |   ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^