criyle/codenet-compile-errors huggingface dataset:
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 -100 * b) / 10;
  d = N % 10;
  if (((a == b) && (b == c)) || ((b == c) && (c == d)) ) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;a
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:27: error: expected ';' before '}' token
   15 |     cout << "No" << endl;a
      |                           ^
      |                           ;
   16 | }
      | ~
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 -100 * b) / 10;
  d = N % 10;
  if (((a == b) && (b == c)) || ((b == c) && (c == d)) ) {
    count << "Yes" << endl;
  }
  else {
    count << "No" << endl;a
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [4]' to binary 'operator<<'
   12 |     count << "Yes" << endl;
      |     ~~~~~~^~~~~~~~
a.cc:15:11: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [3]' to binary 'operator<<'
   15 |     count << "No" << endl;a
      |     ~~~~~~^~~~~~~
a.cc:15:28: error: expected ';' before '}' token
   15 |     count << "No" << endl;a
      |                            ^
      |                            ;
   16 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: unable to find numeric literal operator 'operator""a'
    8 |   b = (N - 1000a) / 100;
      |            ^~~~~
a.cc:9:12: error: unable to find numeric literal operator 'operator""a'
    9 |   c = (N - 1000a -100b) / 10;
      |            ^~~~~
a.cc:9:19: error: unable to find numeric literal operator 'operator""b'
    9 |   c = (N - 1000a -100b) / 10;
      |                   ^~~~
a.cc:12:11: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [4]' to binary 'operator<<'
   12 |     count << "Yes" << endl;
      |     ~~~~~~^~~~~~~~
a.cc:15:11: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [3]' to binary 'operator<<'
   15 |     count << "No" << endl;a
      |     ~~~~~~^~~~~~~
a.cc:15:28: error: expected ';' before '}' token
   15 |     count << "No" << endl;a
      |                            ^
      |                            ;
   16 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> N;
      |   ^~~
a.cc:8:12: error: unable to find numeric literal operator 'operator""a'
    8 |   b = (N - 1000a) / 100;
      |            ^~~~~
a.cc:9:12: error: unable to find numeric literal operator 'operator""a'
    9 |   c = (N - 1000a -100b) / 10;
      |            ^~~~~
a.cc:9:19: error: unable to find numeric literal operator 'operator""b'
    9 |   c = (N - 1000a -100b) / 10;
      |                   ^~~~
a.cc:10:3: error: 'd' was not declared in this scope
   10 |   d = N % 10;
      |   ^
a.cc:12:11: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [4]' to binary 'operator<<'
   12 |     count << "Yes" << endl;
      |     ~~~~~~^~~~~~~~
a.cc:15:11: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [3]' to binary 'operator<<'
   15 |     count << "No" << endl;a
      |     ~~~~~~^~~~~~~
a.cc:15:28: error: expected ';' before '}' token
   15 |     count << "No" << endl;a
      |                            ^
      |                            ;
   16 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> N;
      |   ^~~
a.cc:8:12: error: unable to find numeric literal operator 'operator""a'
    8 |   b = (N - 1000a) / 100;
      |            ^~~~~
a.cc:9:12: error: unable to find numeric literal operator 'operator""a'
    9 |   c = (N - 1000a -100b) / 10;
      |            ^~~~~
a.cc:9:19: error: unable to find numeric literal operator 'operator""b'
    9 |   c = (N - 1000a -100b) / 10;
      |                   ^~~~
a.cc:10:3: error: 'd' was not declared in this scope
   10 |   d = N % 10;
      |   ^
a.cc:12:11: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [4]' to binary 'operator<<'
   12 |     count << "Yes" << endl;
      |     ~~~~~~^~~~~~~~
a.cc:15:11: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [3]' to binary 'operator<<'
   15 |     count << "No" << endl;a
      |     ~~~~~~^~~~~~~
a.cc:15:28: error: expected ';' before '}' token
   15 |     count << "No" << endl;a
      |                            ^
      |                            ;
   16 | }
      | ~                           
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 a, b, c, d;
  1 <= a <= 9
  0 <= b, c, d <= 9
  int N = 1000*a + 100*b + 10*c + d;
  1000 <= N <= 9999;
  
  cin >> N ;

  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:6:14: error: expected ';' before numeric constant
    6 |   1 <= a <= 9
      |              ^
      |              ;
    7 |   0 <= b, c, d <= 9
      |   ~           
a.cc:9:11: error: 'N' was not declared in this scope
    9 |   1000 <= N <= 9999;
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'na' was not declared in this scope; did you mean 'n'?
    7 |   na = n % 1000
      |   ^~
      |   n
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if ((n - n%10)%1110 == 0){
      |   ^~~~
Language: C++

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

int main(){
  
  int n,count = 0;
  cin >> n;
  n4 = n / 1000;
  n3 = n % 1000 / 100;
  n2 = n % 100 / 10;
  n1 = n % 10;
  
  if(n1 == n2){
    count++;
  }
  
  if(n2 == n3){
    count++;
  }
  
  if(n3 == n4){
    count++;
  }
  
  if(n4 == n1){
    count++;
  }
  
  if(count >= 2){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'n4' was not declared in this scope; did you mean 'n'?
    8 |   n4 = n / 1000;
      |   ^~
      |   n
a.cc:9:3: error: 'n3' was not declared in this scope; did you mean 'n'?
    9 |   n3 = n % 1000 / 100;
      |   ^~
      |   n
a.cc:10:3: error: 'n2' was not declared in this scope; did you mean 'n'?
   10 |   n2 = n % 100 / 10;
      |   ^~
      |   n
a.cc:11:3: error: 'n1' was not declared in this scope; did you mean 'n'?
   11 |   n1 = n % 10;
      |   ^~
      |   n
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 || a == b == d)
    cout << "Yes" << endl;
  
  else if (a == c == d || b == c == d)
    cout << "Yes" << endl;
  
  else
    cout << "No" << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  
  int a = N & 10;
  int b =( (N & 100) - (N & 10) )/10;
  int c =( (N & 1000) - (N & 100) )/100;
  int d =( N - (N & 1000) )/1000;
  
  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:17:3: error: expected '}' before 'else'
   17 |   else if(b == c && c == d ){
      |   ^~~~
a.cc:13:24: note: to match this '{'
   13 |   if(a == b && b == c ){
      |                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  
  int a = N & 10;
  int b =( (N & 100) - (N & 10) )/10;
  int c =( (N & 1000) - (N & 100) )/100;
  int d =( N - (N & 1000) )/1000;
  
  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:17:3: error: expected '}' before 'else'
   17 |   else if(b == c && c == d ){
      |   ^~~~
a.cc:13:24: note: to match this '{'
   13 |   if(a == b && b == c ){
      |                        ^
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
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 a = N & 10;
  int b =( N & 100 - N & 10)/10;
  int c =( N & 1000 - N & 100)/100;
  int d =( N - N & 1000)/1000;
  
  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:17:3: error: expected '}' before 'else'
   17 |   else if(b == c && c == d ){
      |   ^~~~
a.cc:13:24: note: to match this '{'
   13 |   if(a == b && b == c ){
      |                        ^
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
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 a = N & 10;
  int b =( N & 100 - a)/10;
  int c =( N & 1000 - b)/100;
  int d =( N - c)/1000;
  
  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:17:3: error: expected '}' before 'else'
   17 |   else if(b == c && c == d ){
      |   ^~~~
a.cc:13:24: note: to match this '{'
   13 |   if(a == b && b == c ){
      |                        ^
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
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 a, b, c, d;
  a = N%10;
  b = (N%100 - N%10)/10;
  c = (N%1000 - N%100)/100;
  d = (N - N%1000)/1000;
  
  if(a == b&&b == c)){
    cout << "Yes" << endl;
  }
  
  else{
    cout << "No" << endl;
  }
  
  
  if(b == c&&c == d){
    cout << "Yes" << endl;
  }
  
  
  else{
    cout << "No" << endl;
  }
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected primary-expression before ')' token
   14 |   if(a == b&&b == c)){
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  
  int a, b, c, d;
  a = N%10;
  b = (N%100 - N%10)/10;
  c = (N%1000 - N%100)/100;
  d = (N - N%1000)/1000;
  
  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:21: error: expected primary-expression before ')' token
   14 |   if(a == b&&b == c)){
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  
  int a, b, c, d;
  a = N%10;
  b = (N%100 - N%10)/10;
  c = (N%1000 - N%100)/100;
  d = (N - N%1000)/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:14:18: error: expected primary-expression before ')' token
   14 |   if(a == b == c)){
      |                  ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:44: error: expected ')' before '{' token
   13 |   if(((a = b)&&(b = c))||((b = c)&&(c = d)){
      |     ~                                      ^
      |                                            )
a.cc:22:1: error: expected primary-expression before '}' token
   22 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:44: error: expected ')' before '{' token
   13 |   if(((a = b)&&(b = c))||((b = c)&&(c = d)){
      |     ~                                      ^
      |                                            )
a.cc:22:1: error: expected primary-expression before '}' token
   22 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, a, b, c, d;
  cin >> N;
  
  a = N%10;
  b = N%100 - a;
  c = N%1000 - b;
  d = N - 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:27: error: expected ';' before '{' token
   13 |   if(a = b = c)(b = c = d){
      |                           ^
      |                           ;
Language: C++

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

Compiler output:
a.cc:8:19: error: extended character 　 is not valid in an identifier
    8 |   B = N % 100 - A;　/* 2桁目 */
      |                   ^
a.cc: In function 'int main()':
a.cc:8:19: error: '\U00003000' was not declared in this scope
    8 |   B = N % 100 - A;　/* 2桁目 */
      |                   ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: invalid types 'int[int]' for array subscript
    6 |   if(N[0] == N[1] == N[2] == N[3])
      |       ^
a.cc:6:15: error: invalid types 'int[int]' for array subscript
    6 |   if(N[0] == N[1] == N[2] == N[3])
      |               ^
a.cc:6:23: error: invalid types 'int[int]' for array subscript
    6 |   if(N[0] == N[1] == N[2] == N[3])
      |                       ^
a.cc:6:31: error: invalid types 'int[int]' for array subscript
    6 |   if(N[0] == N[1] == N[2] == N[3])
      |                               ^
a.cc:10:12: error: invalid types 'int[int]' for array subscript
   10 |   else if(N[0] == N[1] == N[2])
      |            ^
a.cc:10:20: error: invalid types 'int[int]' for array subscript
   10 |   else if(N[0] == N[1] == N[2])
      |                    ^
a.cc:10:28: error: invalid types 'int[int]' for array subscript
   10 |   else if(N[0] == N[1] == N[2])
      |                            ^
a.cc:14:12: error: invalid types 'int[int]' for array subscript
   14 |   else if(N[1] == N[2] == N[3])
      |            ^
a.cc:14:20: error: invalid types 'int[int]' for array subscript
   14 |   else if(N[1] == N[2] == N[3])
      |                    ^
a.cc:14:28: error: invalid types 'int[int]' for array subscript
   14 |   else if(N[1] == 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]) || (s[1] == s[2] && s[2] == s[3])) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:48: error: 's' was not declared in this scope
   10 |         if ((n[0] == n[1] && n[1] == n[2]) || (s[1] == s[2] && s[2] == s[3])) {
      |                                                ^
Language: C++

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

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

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includs; did you mean #include?
    1 | #includs<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #includs<bits/stdc++.h>
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> s;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includs<bits/stdc++.h>
a.cc:6:10: 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:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #includs<bits/stdc++.h>
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout << "No" << endl;
      |        ^~~~
a.cc:9:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:24: error: 'endl' was not declared in this scope
    9 |   else cout << "No" << endl;
      |                        ^~~~
a.cc:9:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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

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

 int main(){
   
    int a, b, c, d;
    string N=abcd;
    cin >> N;

     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:14: error: 'abcd' was not declared in this scope
    7 |     string N=abcd;
      |              ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: invalid types 'int[int]' for array subscript
    7 |   if ( N[1]=N[2] ) & ( N[0]=N[1] || N[2]=N[3]){cout << "Yes"<< endl;}
      |         ^
a.cc:7:14: error: invalid types 'int[int]' for array subscript
    7 |   if ( N[1]=N[2] ) & ( N[0]=N[1] || N[2]=N[3]){cout << "Yes"<< endl;}
      |              ^
a.cc:7:25: error: invalid types 'int[int]' for array subscript
    7 |   if ( N[1]=N[2] ) & ( N[0]=N[1] || N[2]=N[3]){cout << "Yes"<< endl;}
      |                         ^
a.cc:7:30: error: invalid types 'int[int]' for array subscript
    7 |   if ( N[1]=N[2] ) & ( N[0]=N[1] || N[2]=N[3]){cout << "Yes"<< endl;}
      |                              ^
a.cc:7:38: error: invalid types 'int[int]' for array subscript
    7 |   if ( N[1]=N[2] ) & ( N[0]=N[1] || N[2]=N[3]){cout << "Yes"<< endl;}
      |                                      ^
a.cc:7:43: error: invalid types 'int[int]' for array subscript
    7 |   if ( N[1]=N[2] ) & ( N[0]=N[1] || N[2]=N[3]){cout << "Yes"<< endl;}
      |                                           ^
a.cc:8:31: error: expected '}' at end of input
    8 |   else {cout << "No" << endl;}
      |                               ^
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[0]==a[1]&&a[1]==a[2]||a[3]==a[1]&&a[1]==a[2])
    cout << "Yes" <<endl;
  else cout << "No" <<endl;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: invalid types 'int[int]' for array subscript
    6 |   if(a[0]==a[1]==a[2]||a[3]==a[1]==a[2])
      |       ^
a.cc:6:13: error: invalid types 'int[int]' for array subscript
    6 |   if(a[0]==a[1]==a[2]||a[3]==a[1]==a[2])
      |             ^
a.cc:6:19: error: invalid types 'int[int]' for array subscript
    6 |   if(a[0]==a[1]==a[2]||a[3]==a[1]==a[2])
      |                   ^
a.cc:6:25: error: invalid types 'int[int]' for array subscript
    6 |   if(a[0]==a[1]==a[2]||a[3]==a[1]==a[2])
      |                         ^
a.cc:6:31: error: invalid types 'int[int]' for array subscript
    6 |   if(a[0]==a[1]==a[2]||a[3]==a[1]==a[2])
      |                               ^
a.cc:6:37: error: invalid types 'int[int]' for array subscript
    6 |   if(a[0]==a[1]==a[2]||a[3]==a[1]==a[2])
      |                                     ^
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)||a.at(3)==a.at(1)==a.at(2))
    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 'a', which is of non-class type 'int'
    6 |   if(a.at(0)==a.at(1)==a.at(2)||a.at(3)==a.at(1)==a.at(2))
      |        ^~
a.cc:6:17: error: request for member 'at' in 'a', which is of non-class type 'int'
    6 |   if(a.at(0)==a.at(1)==a.at(2)||a.at(3)==a.at(1)==a.at(2))
      |                 ^~
a.cc:6:26: error: request for member 'at' in 'a', which is of non-class type 'int'
    6 |   if(a.at(0)==a.at(1)==a.at(2)||a.at(3)==a.at(1)==a.at(2))
      |                          ^~
a.cc:6:35: error: request for member 'at' in 'a', which is of non-class type 'int'
    6 |   if(a.at(0)==a.at(1)==a.at(2)||a.at(3)==a.at(1)==a.at(2))
      |                                   ^~
a.cc:6:44: error: request for member 'at' in 'a', which is of non-class type 'int'
    6 |   if(a.at(0)==a.at(1)==a.at(2)||a.at(3)==a.at(1)==a.at(2))
      |                                            ^~
a.cc:6:53: error: request for member 'at' in 'a', which is of non-class type 'int'
    6 |   if(a.at(0)==a.at(1)==a.at(2)||a.at(3)==a.at(1)==a.at(2))
      |                                                     ^~
Language: C++

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

int main() {
  int n << cin;
  if (n % 111 < 10) cout << 'Yes' << endl;
  else cout << 'No' << endl;
}

Compiler output:
a.cc:6:29: warning: multi-character character constant [-Wmultichar]
    6 |   if (n % 111 < 10) cout << 'Yes' << endl;
      |                             ^~~~~
a.cc:7:16: warning: multi-character character constant [-Wmultichar]
    7 |   else cout << 'No' << endl;
      |                ^~~~
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before '<<' token
    5 |   int n << cin;
      |         ^~
a.cc:6:7: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   if (n % 111 < 10) cout << 'Yes' << endl;
      |       ^
      |       yn
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int N;
  int th,h,te,o;
  th=N/1000;
  h=(N%1000)/100;
  te=((N%1000)%100)/10;
  o=N-1000*t-100*h-10*t;
  if(th==h && th==te && th==0)
    cout << "Yes" << endl;
  else if(th==h && th==te)
    cout << "Yes" << endl;
  else if(h==te && h==o)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 't' was not declared in this scope
   10 |   o=N-1000*t-100*h-10*t;
      |            ^
Language: C++

#include <cstdio>

int main() {
 	char s[5];
  	scanf(" %s", s);
  	int a[10];
  	for (int i = 0; i < 4; i++) {
     	a[int(s(i))] += 1; 
    }
  
  	int b = 10;
  	for (int i = 0; i < 4; i++) {
     	if (a[i] >= 3) {
         	b = i;
          	break;
        }
    }
  
  	if (b == 10) {
     	printf("No\n"); 
    } else {
      	printf("Yes\n");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 's' cannot be used as a function
    8 |         a[int(s(i))] += 1;
      |               ~^~~
Language: C++

#include <cstdio>

int main() {
 	char s[5];
  	scanf(" %s", s);
  	int a[10];
  	for (int i = 0; i < 4; i++) {
     	a[i] += 1; 
    }
  
  	int b = 10;
  	for (int i = 0; i < 4; i++) {
     	if (a[i] == 4) {
         	b = i;
          	break;
        }
    }
  
  	if (b == 10) {
     	printf("No\n"); 
    } else {
      	printf(""Yes\n"");
    }
}

Compiler output:
a.cc:22:21: error: stray '\' in program
   22 |         printf(""Yes\n"");
      |                     ^
a.cc: In function 'int main()':
a.cc:22:16: error: unable to find string literal operator 'operator""Yes' with 'const char [1]', 'long unsigned int' arguments
   22 |         printf(""Yes\n"");
      |                ^~~~~
Language: C++

#include <cstdio>
#include <vector>

int main() {
 	char s[5];
  	scanf(" %s", s);
  	std::vector<int> v[10];
  	for (int i = 0; i < 4; i++) {
     	v[i] += 1; 
    }
  
  	int b = 10;
  	for (int i = 0; i < 4; i++) {
     	if (a[i] == 4) {
         	b = i;
          	break;
        }
    }
  
  	if (b == 10) {
     	printf("No\n"); 
    } else {
      	printf(""Yes\n"");
    }
}

Compiler output:
a.cc:23:21: error: stray '\' in program
   23 |         printf(""Yes\n"");
      |                     ^
a.cc: In function 'int main()':
a.cc:9:14: error: no match for 'operator+=' (operand types are 'std::vector<int>' and 'int')
    9 |         v[i] += 1;
      |         ~~~~~^~~~
a.cc:14:13: error: 'a' was not declared in this scope
   14 |         if (a[i] == 4) {
      |             ^
a.cc:23:16: error: unable to find string literal operator 'operator""Yes' with 'const char [1]', 'long unsigned int' arguments
   23 |         printf(""Yes\n"");
      |                ^~~~~
Language: C++

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


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

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ll long long int

struct edge
{
  int to, cost;
};
typedef std::vector<std::vector<edge>> graph;
const ll MOD = 1000000007;
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:70: error: expected ';' before '{' token
   18 |   if((s[0] == s[1] && s[1] == s[2]) || (s[1] == s[2] && s[2] == s[3]) {
      |                                                                      ^~
      |                                                                      ;
a.cc:20:5: error: expected primary-expression before 'else'
   20 |   } else {
      |     ^~~~
a.cc:20:4: error: expected ')' before 'else'
   20 |   } else {
      |    ^~~~~
      |    )
a.cc:18:5: note: to match this '('
   18 |   if((s[0] == s[1] && s[1] == s[2]) || (s[1] == s[2] && s[2] == s[3]) {
      |     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'B' was not declared in this scope
   13 |     cout << B << endl;
      |             ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(){
  string s;
  cin >> s;
  char prev = s[0];
  int cnt = 0;
  int maxc = 0;
  for(int i = 1; i < s.size(); i++){
    if(s[i] != prev){
      cnt = 0;
      continue;
    }
    prev = s[i];
    cnt++;
    maxc = cnt(maxc,cnt);
  }
  maxc++;
  if(maxc > 2) cout << "Yes";
  else cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:15: error: 'cnt' cannot be used as a function
   19 |     maxc = cnt(maxc,cnt);
      |            ~~~^~~~~~~~~~
Language: C++

#include <iotstream>
#include <vector>

using namespace std;

int main(){
  string s;
  cin >> s;
  char prev = s[0];
  int cnt = 0;
  for(int i = 1; i < s.size(); i++){
    if(s[i] != prev) cnt = 0;
    cnt++;
  }
  if(cnt > 2) cout << "Yes";
  else cout << "No";
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  String N;
  cin >> N;
  if ((N[0] == N[1] && N[1]== N[2]) || (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:5:3: error: 'String' was not declared in this scope
    5 |   String 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() {
  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:5:3: error: extended character 　 is not valid in an identifier
    5 |   string　N;
      |   ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'string\U00003000N' was not declared in this scope
    5 |   string　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;
  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:5:3: error: extended character 　 is not valid in an identifier
    5 |   int　N;
      |   ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'int\U00003000N' was not declared in this scope
    5 |   int　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() {
string N;
  cin >>N;
  if((N[0]==N[1] &&N[1]==N[2]) || N[1]==N[2] &&N[2]==N[3]){
    cotu <<"Yes";
  }
  else{
    cout <<"No";
    
  }
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, a, b, c, d, am, bm, cm;
  cin >> N;

  a = N / 1000;
  am = 1000 * a;

  b = (N - am) / 100;
  bm = 100 * b;

  c = (N - am - bm) / 10;
  cm = 10 * c;

  d = N - am - bm - cm;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:47: error: expected ')' before '{' token
   19 |   if ((a == b && b == c) || (b == c && c == d){
      |      ~                                        ^
      |                                               )
a.cc:25:1: error: expected primary-expression before '}' token
   25 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, a, b, c, d, am, bm, cm;
  cin >> N;

  a = N / 1000;
  am = 1000 * a;

  b = (N - am) / 100;
  bm = 100 * b;

  c = (N - am - bm) / 10;
  cm = 10 * c;

  d = (N - am - bm - cm)

  if (a == b == c) || (b == c == d){
      cout << "Yes" << endl;
  }
  else {
      cout << "No" << endl;
  } 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: expected ';' before 'if'
   17 |   d = (N - am - bm - cm)
      |                         ^
      |                         ;
   18 | 
   19 |   if (a == b == c) || (b == c == d){
      |   ~~                     
a.cc:22:3: error: 'else' without a previous 'if'
   22 |   else {
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected primary-expression before 'int'
    5 |   fpr(int i=1;i<4;i++){
      |       ^~~
a.cc:5:15: error: 'i' was not declared in this scope
    5 |   fpr(int i=1;i<4;i++){
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef unsigned long long int ll;
const int INF = 1<<30;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:54: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout<<((n/10)%111==0 || (n%1000)%111==0)?"Yes":"No"<<endl;
      |                                                  ~~~~^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a[3]:

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected initializer before ':' token
    6 |         int a[3]:
      |                 ^
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else
      |         ^~~~
a.cc:16:17: error: expected ';' before ':' token
   16 |         return 0:
      |                 ^
      |                 ;
a.cc:16:17: error: expected primary-expression before ':' token
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:45: error: expected ')' before ';' token
    9 |   int p =  N - ( m * 1000 + k * 100 + l * 10 ;
      |                ~                            ^~
      |                                             )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:48: error: expected ')' before ';' token
    9 |   int p = ( N - ( m * 1000 + k * 100 + l * 10 ) ;
      |           ~                                    ^~
      |                                                )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'int'
    9 |   int p = ( N - ( m * 1000 + k * 100 + l * 10 )
      |   ^~~
a.cc:12:5: error: 'else' without a previous 'if'
   12 |   } else if ( k == l == p ) {
      |     ^~~~
a.cc:12:25: error: 'p' was not declared in this scope
   12 |   } else if ( k == l == p ) {
      |                         ^
Language: C++

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:44: error: expected ';' before '{' token
   12 |   else ((N - (N / 1000) * 1000) % 111 == 0) {
      |                                            ^~
      |                                            ;
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else (((N / 10) * 10) % 1110 == 0) {
      |   ^~~~
a.cc:15:37: error: expected ';' before '{' token
   15 |   else (((N / 10) * 10) % 1110 == 0) {
      |                                     ^~
      |                                     ;
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;
  
 
  cin >> N;
 
  if (N % 1111 == 0) {
    cout << "Yes" << endl;
  }
  if ((N - (N / 1000) * 1000) % 111 == 0) {
    cout << "Yes" << endl;
  }
  if (((N / 10) * 10) % 1110 = 0) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:15:23: error: lvalue required as left operand of assignment
   15 |   if (((N / 10) * 10) % 1110 = 0) {
      |       ~~~~~~~~~~~~~~~~^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before numeric constant
    5 |   int 0 < a <= 9;
      |       ^
a.cc:6:7: error: expected unqualified-id before numeric constant
    6 |   int 0 <= b <= 9;
      |       ^
a.cc:9:19: error: 'a' was not declared in this scope
    9 |   if (N == 1110 * a + b) {
      |                   ^
a.cc:9:23: error: 'b' was not declared in this scope
    9 |   if (N == 1110 * a + b) {
      |                       ^
a.cc:12:19: error: 'a' was not declared in this scope
   12 |   if (N == 1000 * a + 111 * b) {
      |                   ^
a.cc:12:29: error: 'b' was not declared in this scope
   12 |   if (N == 1000 * a + 111 * b) {
      |                             ^
a.cc:15:19: error: 'a' was not declared in this scope
   15 |   if (N == 1111 * a) {
      |                   ^
Language: C++

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

int main (){
  int n;
  int s1, s2, s3, s4;
  
  s1 = n / 1000;
  s2 = n / 100 % 10;
  s3 = n / 10 % 10;
  s4 = n % 10;

  if ((s1 == s2 && s2 == s3) || (s1 == s2 && s2 == s4) || (s1 == s3 && s3 == s4) || (s2 == s3 && s3 ==s4)) {
    cout << "Yes" << endl;
  }else if (a == 0){
    cout << "No" << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: 'a' was not declared in this scope
   15 |   }else if (a == 0){
      |             ^
Language: C++

#include<iostream>
using namespace std;

int main (){
  int n;
  int s1, s2, s3, s4;
  
  s1 = n / 1000;
  s2 = n / 100 % 10;
  s3 = n / 10 % 10;
  s4 = n % 10;

  if ((s1 == s2 && s2 == s3) || (s1 == s2 && s2 == s4) || (s1 == s3 && s3 == s4) || (s2 == s3 && s3 ==s4)) {
    cout << "Yes" << endl;
  }else if (a == 0){
    cout << "No" << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: 'a' was not declared in this scope
   15 |   }else if (a == 0){
      |             ^
Language: C++

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





Compiler output:
a.cc: In function 'int main()':
a.cc:13:60: error: expected ')' before '{' token
   13 |   if((A==B&&B==C)||(A==B&&B==D)||(B==C&&C==D)||(A==C&&C==D){
      |     ~                                                      ^
      |                                                            )
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: expected '}' at end of input
   16 |     cout<<"No"<<endl;}
      |                       ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    int cnt =1;
    bool flag = 0;
    cin>>s;
    for(int i=0; i<3; i++)
    {
        if(s[i] == s[i+1])
        {
            cnt++;
        }
        else
        {
            cnt =1;
        }
        if(cnt == 3)
        {
            flag = 1;
            break;
        }
    }
    if(flag) cout<<"Yes\n";
    else cout<<"No\n";

}


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