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

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

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

Compiler output:
a.cc:15:3: error: expected unqualified-id before 'else'
   15 |   else{
      |   ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<iostream>
#include<string>
int main() {
	std::string a;
	int b=0,c = 0;>

	std::cin >> a ;
	
	for (int k = 0; k < 2; k++) {
		for (int i = 0; i < 4; i++) {
			if (a[k] == a[i]) {
				c += 1;
			}

		}

		if (c >= 3) {
			std::cout << "Yes" << std::endl;
			break;
		}else {
			c = 0;
			if (k == 1) {
				std::cout << "No" << std::endl;
			}
		}

	}	

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: expected primary-expression before '>' token
    5 |         int b=0,c = 0;>
      |                       ^
Language: C++

#include<string>
int main() {
	std::string a;
	int b=0,c = 0;


	std::cin >> a ;
	
	for (int k = 0; k < 2; k++) {
		for (int i = 0; i < 4; i++) {
			if (a[k] == a[i]) {
				c += 1;
			}

		}

		if (c >= 3) {
			std::cout << "Yes" << std::endl;
			break;
		}else {
			c = 0;
			if (k == 1) {
				std::cout << "No" << std::endl;
			}
		}

	}	

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'cin' is not a member of 'std'
    7 |         std::cin >> a ;
      |              ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<string>
  +++ |+#include <iostream>
    2 | int main() {
a.cc:18:30: error: 'cout' is not a member of 'std'
   18 |                         std::cout << "Yes" << std::endl;
      |                              ^~~~
a.cc:18:30: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:52: error: 'endl' is not a member of 'std'
   18 |                         std::cout << "Yes" << std::endl;
      |                                                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<string>
  +++ |+#include <ostream>
    2 | int main() {
a.cc:23:38: error: 'cout' is not a member of 'std'
   23 |                                 std::cout << "No" << std::endl;
      |                                      ^~~~
a.cc:23:38: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:59: error: 'endl' is not a member of 'std'
   23 |                                 std::cout << "No" << std::endl;
      |                                                           ^~~~
a.cc:23:59: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<string>
int main() {
	std::string a;
	int b=0,c = 0;


	std::cin >> a ;
	
	for (int k = 0; k < 2; k++) {
		for (int i = 0; i < 4; i++) {
			if (a[k] == a[i]) {
				c += 1;
			}

		}

		if (c >= 3) {
			std::cout << "Yes" << std::endl;
		}
		else {
			c = 0;
			if (k == 1) {
				std::cout << "No" << std::endl;
			}
		}

	}
	

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'cin' is not a member of 'std'
    7 |         std::cin >> a ;
      |              ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<string>
  +++ |+#include <iostream>
    2 | int main() {
a.cc:18:30: error: 'cout' is not a member of 'std'
   18 |                         std::cout << "Yes" << std::endl;
      |                              ^~~~
a.cc:18:30: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:52: error: 'endl' is not a member of 'std'
   18 |                         std::cout << "Yes" << std::endl;
      |                                                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<string>
  +++ |+#include <ostream>
    2 | int main() {
a.cc:23:38: error: 'cout' is not a member of 'std'
   23 |                                 std::cout << "No" << std::endl;
      |                                      ^~~~
a.cc:23:38: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:59: error: 'endl' is not a member of 'std'
   23 |                                 std::cout << "No" << std::endl;
      |                                                           ^~~~
a.cc:23:59: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>

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

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

#include<string>
#include<vector>
#include<algorithm>
#include<unordered_map>
#include<stdio.h>
using namespace std;

int main() {
	char N[5];
	cin >> N;
	int A = 0;
	for (int i = 0; i < 2; i++) {
		if (N[i] == N[i + 1]) {
			if (N[i + 1] == N[i + 2]) {
				A++;
			}
		}
	}
	if (A >= 1) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         cin >> N;
      |         ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include<unordered_map>
  +++ |+#include <iostream>
    5 | #include<stdio.h>
a.cc:20:17: error: 'cout' was not declared in this scope
   20 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:20:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:34: error: 'endl' was not declared in this scope
   20 |                 cout << "Yes" << endl;
      |                                  ^~~~
a.cc:5:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    4 | #include<unordered_map>
  +++ |+#include <ostream>
    5 | #include<stdio.h>
a.cc:23:17: error: 'cout' was not declared in this scope
   23 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:23:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:33: error: 'endl' was not declared in this scope
   23 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:23:33: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main() {
  string a;
  cin >> a;
  int count = 0;
  for(int i = 0; i < 3; i++) {
      if (a[i] == a[i+1])
        count += 1;
  }
  if (count >= 2)
    cout << "Yes";
  else
    cout << "No";1
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: expected ';' before '}' token
   16 |     cout << "No";1
      |                   ^
      |                   ;
   17 | }
      | ~
Language: C++

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

int main() {
  string a;
  cin >> a;
  int count;
  for(int i = 0; i < 3; i++) {
      if (a[i] == a[i+1])
        count += 1;
  }
  if (count >= 2)
    cout << "Yes";
  else
    cout << "No";1
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: expected ';' before '}' token
   16 |     cout << "No";1
      |                   ^
      |                   ;
   17 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'sting' was not declared in this scope
    4 |   sting s;
      |   ^~~~~
a.cc:5:8: error: 's' was not declared in this scope
    5 |   cin>>s;
      |        ^
Language: C++

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

int main()
{
  string a;
  cin >> a;
  int count = 0;
  int conut2 = 0;
  for (int i = 0; i < 4;i++){
    if(a[0]==a[i])
      count++;
    if(count>=3)cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  for (int i = 0; i < 4; i++)
  {
    if (a[1] == a[i])
      count2++;
    if (count2 >= 3)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:7: error: 'count2' was not declared in this scope; did you mean 'conut2'?
   20 |       count2++;
      |       ^~~~~~
      |       conut2
a.cc:21:9: error: 'count2' was not declared in this scope; did you mean 'conut2'?
   21 |     if (count2 >= 3)
      |         ^~~~~~
      |         conut2
Language: C++

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

int main()
{
  string a;
  cin >> a;
  int count = 0;
  int conut2 = 0;
  for (int i = 0; i < 4;i++){
    if(a[0]==a[i])
      count++;
    if(count>=3)cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  for (int i = 0; i < 4; i++)
  {
    if (a[1] == a[i])
      count2++;
    if (count2 >= 3)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:7: error: 'count2' was not declared in this scope; did you mean 'conut2'?
   20 |       count2++;
      |       ^~~~~~
      |       conut2
a.cc:21:9: error: 'count2' was not declared in this scope; did you mean 'conut2'?
   21 |     if (count2 >= 3)
      |         ^~~~~~
      |         conut2
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
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:12:29: error: extended character 　 is not valid in an identifier
   12 |   else if (N % 1000 % 111 ==　0) {
      |                             ^
a.cc: In function 'int main()':
a.cc:12:29: error: '\U000030000' was not declared in this scope
   12 |   else if (N % 1000 % 111 ==　0) {
      |                             ^~~
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:12:31: error: extended character 　 is not valid in an identifier
   12 |   else if ((N % 1000) % 111 ==　0) {
      |                               ^
a.cc: In function 'int main()':
a.cc:12:31: error: '\U000030000' was not declared in this scope
   12 |   else if ((N % 1000) % 111 ==　0) {
      |                               ^~~
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:12:31: error: extended character 　 is not valid in an identifier
   12 |   else if ((N % 1000) % 111 ==　0) {
      |                               ^
a.cc: In function 'int main()':
a.cc:8:17: error: expected primary-expression before '<' token
    8 |   if (N % 1110 =< 9) {
      |                 ^
a.cc:12:31: error: '\U000030000' was not declared in this scope
   12 |   else if ((N % 1000) % 111 ==　0) {
      |                               ^~~
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    char n;
    cin>>n;
    if(n[0]==n[1]&&n[1]==n[2]) cout<<"Yes"<<endl;
    else if(n[1]==n[2]&&n[2]==n[3]) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: invalid types 'char[int]' for array subscript
    8 |     if(n[0]==n[1]&&n[1]==n[2]) cout<<"Yes"<<endl;
      |         ^
a.cc:8:15: error: invalid types 'char[int]' for array subscript
    8 |     if(n[0]==n[1]&&n[1]==n[2]) cout<<"Yes"<<endl;
      |               ^
a.cc:8:21: error: invalid types 'char[int]' for array subscript
    8 |     if(n[0]==n[1]&&n[1]==n[2]) cout<<"Yes"<<endl;
      |                     ^
a.cc:8:27: error: invalid types 'char[int]' for array subscript
    8 |     if(n[0]==n[1]&&n[1]==n[2]) cout<<"Yes"<<endl;
      |                           ^
a.cc:9:14: error: invalid types 'char[int]' for array subscript
    9 |     else if(n[1]==n[2]&&n[2]==n[3]) cout<<"Yes"<<endl;
      |              ^
a.cc:9:20: error: invalid types 'char[int]' for array subscript
    9 |     else if(n[1]==n[2]&&n[2]==n[3]) cout<<"Yes"<<endl;
      |                    ^
a.cc:9:26: error: invalid types 'char[int]' for array subscript
    9 |     else if(n[1]==n[2]&&n[2]==n[3]) cout<<"Yes"<<endl;
      |                          ^
a.cc:9:32: error: invalid types 'char[int]' for array subscript
    9 |     else if(n[1]==n[2]&&n[2]==n[3]) cout<<"Yes"<<endl;
      |                                ^
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int n;
    cin>>n;
    if(n[0]==n[1]&&n[1]==n[2]) cout<<"Yes"<<endl;
    else if(n[1]==n[2]&&n[2]==n[3]) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: invalid types 'int[int]' for array subscript
    8 |     if(n[0]==n[1]&&n[1]==n[2]) cout<<"Yes"<<endl;
      |         ^
a.cc:8:15: error: invalid types 'int[int]' for array subscript
    8 |     if(n[0]==n[1]&&n[1]==n[2]) cout<<"Yes"<<endl;
      |               ^
a.cc:8:21: error: invalid types 'int[int]' for array subscript
    8 |     if(n[0]==n[1]&&n[1]==n[2]) cout<<"Yes"<<endl;
      |                     ^
a.cc:8:27: error: invalid types 'int[int]' for array subscript
    8 |     if(n[0]==n[1]&&n[1]==n[2]) cout<<"Yes"<<endl;
      |                           ^
a.cc:9:14: error: invalid types 'int[int]' for array subscript
    9 |     else if(n[1]==n[2]&&n[2]==n[3]) cout<<"Yes"<<endl;
      |              ^
a.cc:9:20: error: invalid types 'int[int]' for array subscript
    9 |     else if(n[1]==n[2]&&n[2]==n[3]) cout<<"Yes"<<endl;
      |                    ^
a.cc:9:26: error: invalid types 'int[int]' for array subscript
    9 |     else if(n[1]==n[2]&&n[2]==n[3]) cout<<"Yes"<<endl;
      |                          ^
a.cc:9:32: error: invalid types 'int[int]' for array subscript
    9 |     else if(n[1]==n[2]&&n[2]==n[3]) cout<<"Yes"<<endl;
      |                                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using int = long long;
signed main(){
  string s;
  cin>>s;
  bool f=0;
  f|=(s[0]==s[1]&&s[1]==s[2]);
  f|=(s[1]==s[2]&&s[2]==s[3]);
  cout<<(f?"Yes":"No")<<endl;
  return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'int'
    3 | using int = long long;
      |       ^~~
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		
		int res = sc.nextInt();
		
		int n = 4;
		int digit[] = new int[n];
		int cnt = 0;
		
		while(res > 0) {
			digit[cnt] = res % 10;
			res /= 10;
			cnt += 1;
		}
		
		if((digit[0] == digit[1] && digit[1] == digit[2] 
				|| (digit[1] == digit[2] && digit[2] == digit[3]))) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

Compiler output:
Main.java:28: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		    String s  = scanner.nextLine();
		    if( s.substring(0, 1) == s.substring(1 , 2) && s.substring(2, 3) == s.substring(1 , 2) )
		    {
		    	System.out.println("Yes");
		    }
		    else 
		    {
		    	if( s.substring(3, 4) == s.substring(1 , 2) && s.substring(2, 3) == s.substring(1 , 2) ) 
		    	{
		    		System.out.println("Yes");
		    	}
		    	else 
		    	{
		    		System.out.println("No");
		    	}
		    }
		    scanner.close(); }
		  }

Compiler output:
Main.java:4: error: cannot find symbol
		    Scanner scanner = new Scanner(System.in);
		    ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		    Scanner scanner = new Scanner(System.in);
		                          ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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

int main() {
  int n, a, b;
  cin >> n;
  a = n / 1000;
  b = n % 1;
  if (
    (n - b) % 111 == 0 ||
  	(n - a*1000) % 111 ==0
  ){
    cout << "Yes"<<endl;
  	else
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected '}' before 'else'
   14 |         else
      |         ^~~~
a.cc:12:4: note: to match this '{'
   12 |   ){
      |    ^
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

int main() {
  int n, a, b;
  cin >> n;
  a = n / 1000
  b = n % 10
  if (
    (n - b) % 111 == 0 ||
  	(n - a*1000) % 111 ==0
  ){
    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 % 10
      |   ~            
a.cc:14:4: error: 'else' without a previous 'if'
   14 |   }else{
      |    ^~~~
Language: C++

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

int main() {
  int n;
  cin >> n;
  a = n / 1000
  b = n % 10
  if (
    (n - b) % 111 == 0 ||
  	(n - a*1000) % 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:15:3: error: 'else' without a previous 'if'
   15 |   else{
      |   ^~~~
Language: C++

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

int main() {
  int n;
  cin >> n;
  a = n / 1000
  b = n % 10
  if (
    (n - b) % 111 == 0 ||
  	(n - a*1000) % 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:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before ':' token
    6 |   cin >> x:
      |           ^
      |           ;
a.cc:8:21: error: 'a' was not declared in this scope
    8 |   int b = x / 100 - a * 10;
      |                     ^
a.cc:15:5: error: 'cour' was not declared in this scope
   15 |     cour << "No" << endl;
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before ':' token
    6 |   cin >> x:
      |           ^
      |           ;
a.cc:8:21: error: 'a' was not declared in this scope
    8 |   int b = x / 100 - a * 10;
      |                     ^
a.cc:15:5: error: 'cour' was not declared in this scope
   15 |     cour << "No" << endl;
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: 's' was not declared in this scope
    7 |     for(int i=2;i<n.size();s++)
      |                            ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int n;
  cin >> n;
  int a, b, c, d;
  a = n / 1000;
  b = n / 100 - a;
  c = n / 10 - a - b;
  d = n - a - b - c;
  
  if (a == b && b == c && c == d) {
    cout << "Yes" << endl;
  }
  else 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:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

#include <stdio.h>
int s;
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");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: invalid types 'int[int]' for array subscript
    6 |     if (s[0]==s[1]&&s[1]==s[2]) puts ("Yes");
      |          ^
a.cc:6:16: error: invalid types 'int[int]' for array subscript
    6 |     if (s[0]==s[1]&&s[1]==s[2]) puts ("Yes");
      |                ^
a.cc:6:22: error: invalid types 'int[int]' for array subscript
    6 |     if (s[0]==s[1]&&s[1]==s[2]) puts ("Yes");
      |                      ^
a.cc:6:28: error: invalid types 'int[int]' for array subscript
    6 |     if (s[0]==s[1]&&s[1]==s[2]) puts ("Yes");
      |                            ^
a.cc:7:15: error: invalid types 'int[int]' for array subscript
    7 |     else if (s[1]==s[2]&&s[2]==s[3]) puts ("Yes");
      |               ^
a.cc:7:21: error: invalid types 'int[int]' for array subscript
    7 |     else if (s[1]==s[2]&&s[2]==s[3]) puts ("Yes");
      |                     ^
a.cc:7:27: error: invalid types 'int[int]' for array subscript
    7 |     else if (s[1]==s[2]&&s[2]==s[3]) puts ("Yes");
      |                           ^
a.cc:7:33: error: invalid types 'int[int]' for array subscript
    7 |     else if (s[1]==s[2]&&s[2]==s[3]) puts ("Yes");
      |                                 ^
Language: C++

#include <stdio.h>
int n;
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");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 's' was not declared in this scope
    5 |     scanf("%s", &s);
      |                  ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <climits>
#include <algorithm>
#include <set>
#include <unordered_map>
#include <queue>
#include <iomanip>
#include <map>

#define rep(i,n) for(int i=0; i<(int)(n); i++)
#define ll long long
#define P pair<int, int>

using namespace std;
int mod = 1000000007;

string s;

int main() {
  cin >> s;

  auto ans;
  if (s.at(0) == s.at(1) && s.at(1) == s.at(2)) {
    ans = true;
  } else if (s.at(1) == s.at(2) && s.at(2) == s.at(3)) {
    ans = true;
  } else {
    ans = false;
  }
  
  cout << (ans ? "Yes" : "No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:3: error: declaration of 'auto ans' has no initializer
   24 |   auto ans;
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
string n;
int y[20];
int main()
{
    cin>>n;
    for(int s=0;s<4;s++)
    {
    	u[n[s]-'0']++;
    }
    for(int s=0;s<10;s++)
    {
        if(u[s]>=3)
        {
            cout<<"Yes"<<endl;
            exit(0);
        }
    }
    cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'u' was not declared in this scope
   10 |         u[n[s]-'0']++;
      |         ^
a.cc:14:12: error: 'u' was not declared in this scope
   14 |         if(u[s]>=3)
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
string n;
int y[20];
int main()
{
	cin>>n;
    for(int s=0;s<4;s++)
    {
    	u[n[s]-'0']++;
	}
	for(int s=0;s<10;s++)
	{
		if(u[s]>=3)
		{
			cout<<"Yes"<<endl;
			exit(0);
		}
	}
	cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'u' was not declared in this scope
   10 |         u[n[s]-'0']++;
      |         ^
a.cc:14:20: error: 'u' was not declared in this scope
   14 |                 if(u[s]>=3)
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected ';' before 'hun'
    6 |   tho = N/1000
      |               ^
      |               ;
    7 |     hun = (N%1000)/100
      |     ~~~        
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if ( hun == ten && ten == one )
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main ()
{
  int N,tho,hun,ten,one,counter;
  tho = N/1000
    hun = (N%1000)/100
    ten = (N%100)/10
    one = N%10
    counter = 0
    if ({tho == hun && hun == ten } || { hun == ten && ten == one })
    {cout << "Yes" << endl;}
  else 
  {cout << "No" << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected ';' before 'hun'
    6 |   tho = N/1000
      |               ^
      |               ;
    7 |     hun = (N%1000)/100
      |     ~~~        
a.cc:11:37: error: expected primary-expression before '||' token
   11 |     if ({tho == hun && hun == ten } || { hun == ten && ten == one })
      |                                     ^~
a.cc:11:40: error: expected primary-expression before '{' token
   11 |     if ({tho == hun && hun == ten } || { hun == ten && ten == one })
      |                                        ^
a.cc:11:68: error: expected primary-expression before ')' token
   11 |     if ({tho == hun && hun == ten } || { hun == ten && ten == one })
      |                                                                    ^
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int s;
    cin>>s;
    if(s[0]==s[1] and s[1]==s[2] or s[1]==s[2] and s[2]==s[3])cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: invalid types 'int[int]' for array subscript
    8 |     if(s[0]==s[1] and s[1]==s[2] or s[1]==s[2] and s[2]==s[3])cout<<"Yes"<<endl;
      |         ^
a.cc:8:15: error: invalid types 'int[int]' for array subscript
    8 |     if(s[0]==s[1] and s[1]==s[2] or s[1]==s[2] and s[2]==s[3])cout<<"Yes"<<endl;
      |               ^
a.cc:8:24: error: invalid types 'int[int]' for array subscript
    8 |     if(s[0]==s[1] and s[1]==s[2] or s[1]==s[2] and s[2]==s[3])cout<<"Yes"<<endl;
      |                        ^
a.cc:8:30: error: invalid types 'int[int]' for array subscript
    8 |     if(s[0]==s[1] and s[1]==s[2] or s[1]==s[2] and s[2]==s[3])cout<<"Yes"<<endl;
      |                              ^
a.cc:8:38: error: invalid types 'int[int]' for array subscript
    8 |     if(s[0]==s[1] and s[1]==s[2] or s[1]==s[2] and s[2]==s[3])cout<<"Yes"<<endl;
      |                                      ^
a.cc:8:44: error: invalid types 'int[int]' for array subscript
    8 |     if(s[0]==s[1] and s[1]==s[2] or s[1]==s[2] and s[2]==s[3])cout<<"Yes"<<endl;
      |                                            ^
a.cc:8:53: error: invalid types 'int[int]' for array subscript
    8 |     if(s[0]==s[1] and s[1]==s[2] or s[1]==s[2] and s[2]==s[3])cout<<"Yes"<<endl;
      |                                                     ^
a.cc:8:59: error: invalid types 'int[int]' for array subscript
    8 |     if(s[0]==s[1] and s[1]==s[2] or s[1]==s[2] and s[2]==s[3])cout<<"Yes"<<endl;
      |                                                           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before ';' token
    6 |   cin >> N >> ;
      |               ^
Language: C++

#define _overload3(_1,_2,_3,name,...) name
#define _rep(i,n) repi(i,0,n)
#define repi(i,a,b) for(int i=int(a);i<int(b);++i)
#define rep(...) _overload3(__VA_ARGS__,repi,_rep,)(__VA_ARGS__)
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;

int main(int argc, char* argv[]){
    int n;
    cin >> n;
    int t = n % 10;
    int c = 0;
    rep(i, 4){
        if(t == (n%10)) c++;
        else t = n%10;
        n
    }
    if(c >= 3) cout << "Yes" << endl;
    else cout << "No" << endl;

}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:17:10: error: expected ';' before '}' token
   17 |         n
      |          ^
      |          ;
   18 |     }
      |     ~
Language: C++

#include<algorithm>
#include <iostream>
#include<cstdio>
#include<cmath>
#include<iomanip>
#include<string>
using namespace std;
int main(){
  
    int n;
    cin>>n;
    
    if(n/1000!=(n%1000)/100 || (n%100)/10)!=n%10{
        cout<<"No"<<endl;
        return 0;
    }else{
        if((n%1000)/100==(n%100)/10){
            cout<<"Yes"<<endl;
        }else{
            cout<<"No"<<endl;
        }
    }
    
    return 0;
}







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

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

int main(){
  string n;
  cin >> n;
  
  else if(n.at(0) == n.at(1) && n.at(1) == n.at(2)){
    cout << "Yes" <<endl;
  }
  else if(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:8:3: error: 'else' without a previous 'if'
    8 |   else if(n.at(0) == n.at(1) && n.at(1) == n.at(2)){
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
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:9:5: error: expected '}' before 'else'
    9 |     else cout << "No" << endl;}
      |     ^~~~
a.cc:7:53: note: to match this '{'
    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,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)
    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:16:26: error: expected '}' at end of input
   16 |     cout << "No" << endl;
      |                          ^
a.cc:4:13: note: to match this '{'
    4 | int main () {
      |             ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(int argc, char const *argv[]) {
  int n;
  cin >> n;
  string snum = to_string(n);
  bool ans = false;
  for (size_t i = 0; i < snum.size(); i++) {
    size_t cnt = count(snum.begin(), snum.end(), snum[i]);
    if (cnt>=3) ans = true;
  }
  if (ans) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:12:18: error: 'count' was not declared in this scope; did you mean 'cnt'?
   12 |     size_t cnt = count(snum.begin(), snum.end(), snum[i]);
      |                  ^~~~~
      |                  cnt
Language: C++

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

int main(){
    int n;
    cin >> n;
    string digits = to_string(n);
    vector <int> counter;
    for(int i = 0; i < digits.size(); i++){
        int c = count(digits.begin(), digits.end(), digits[i]);
        counter.push_back(c);
    }
    int maxelement = *std::max_element(counter.begin(), counter.end());
    if(max == 3) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   14 |     if(max == 3) cout << "Yes" << endl;
      |        ~~~~^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expected ';' before 'c'
   11 |         N -= b*100
      |                   ^
      |                   ;
   12 |         c == N/10;
      |         ~          
a.cc:13:18: error: expected ';' before 'd'
   13 |         N -= c*10
      |                  ^
      |                  ;
   14 |     d == N%10;
      |     ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expected ';' before 'c'
   11 |         N -= b*100
      |                   ^
      |                   ;
   12 |         c = N/10;
      |         ~          
a.cc:13:18: error: expected ';' before 'd'
   13 |         N -= c*10
      |                  ^
      |                  ;
   14 |     d = N%10;
      |     ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expected ';' before 'c'
   11 |         N -= b*100
      |                   ^
      |                   ;
   12 |         c = N/10;
      |         ~          
a.cc:13:18: error: expected ';' before 'd'
   13 |         N -= c*10
      |                  ^
      |                  ;
   14 |     d = N%10;
      |     ~
Language: C++

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

int main(){
	int a;
  	cin >> a;
  if()
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected primary-expression before ')' token
    7 |   if()
      |      ^
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
	int a[4]; char s[4];
	for(int i=0;i<n;i++){
		cin>>s[i]; a[i]=s[i]-'0';
		s[i]='+';
	}
	if(a[0]+a[1]+a[2]-a[3]==7) s[2]='-';
	else if(a[0]+a[1]-a[2]+a[3]==7) s[1]='-';
	else if(a[0]+a[1]-a[2]-a[3]==7){s[1]='-'; s[2]='-';}
	else if(a[0]-a[1]+a[2]+a[3]==7) s[0]='-';
	else if(a[0]-a[1]+a[2]-a[3]==7){s[0]='-'; s[2]='-';}
	else if(a[0]-a[1]-a[2]+a[3]==7){s[0]='-'; s[1]='-';}
	else if(a[0]-a[1]-a[2]-a[3]==7){s[0]='-'; s[1]='-'; s[2]='-';}

	cout<<a[0]<<s[0]<<a[1]<<s[1]<<a[2]<<s[2]<<a[3]<<"=7"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: 'n' was not declared in this scope
    7 |         for(int i=0;i<n;i++){
      |                       ^
Language: Java

import java.io.IOException;
import java.io.InputStream;
import java.util.NoSuchElementException;

public class Main2 {
	public static void main(String[] args) {
		FastScanner sc = new FastScanner();
		String input = sc.next();

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

class FastScanner {
	private final InputStream in = System.in;
	private final byte[] buffer = new byte[1024];
	private int ptr = 0;
	private int buflen = 0;

	private boolean hasNextByte() {
		if (ptr < buflen) {
			return true;
		} else {
			ptr = 0;
			try {
				buflen = in.read(buffer);
			} catch (IOException e) {
				e.printStackTrace();
			}
			if (buflen <= 0) {
				return false;
			}
		}
		return true;
	}

	private int readByte() {
		if (hasNextByte())
			return buffer[ptr++];
		else
			return -1;
	}

	private static boolean isPrintableChar(int c) {
		return 33 <= c && c <= 126;
	}

	private void skipUnprintable() {
		while (hasNextByte() && !isPrintableChar(buffer[ptr]))
			ptr++;
	}

	public boolean hasNext() {
		skipUnprintable();
		return hasNextByte();
	}

	public String next() {
		if (!hasNext())
			throw new NoSuchElementException();
		StringBuilder sb = new StringBuilder();
		int b = readByte();
		while (isPrintableChar(b)) {
			sb.appendCodePoint(b);
			b = readByte();
		}
		return sb.toString();
	}

	public long nextLong() {
		if (!hasNext())
			throw new NoSuchElementException();
		long n = 0;
		boolean minus = false;
		int b = readByte();
		if (b == '-') {
			minus = true;
			b = readByte();
		}
		if (b < '0' || '9' < b) {
			throw new NumberFormatException();
		}
		while (true) {
			if ('0' <= b && b <= '9') {
				n *= 10;
				n += b - '0';
			} else if (b == -1 || !isPrintableChar(b)) {
				return minus ? -n : n;
			} else {
				throw new NumberFormatException();
			}
			b = readByte();
		}
	}

	public int nextInt() {
		long nl = nextLong();
		if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)
			throw new NumberFormatException();
		return (int) nl;
	}

	public double nextDouble() {
		return Double.parseDouble(next());
	}

}


Compiler output:
Main.java:5: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: C++

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

int main() {
  int A, B, C, D;
  cin >> ABCD;
  if(A = B = C) {
    cout << "Yes" << endl;
  }
  if(B = C = D){
    cout << "Yes" << endl;
  }
  if(A = B = D){
    cout << "Yes" << endl;
  }
  if(A = C = D){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

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

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

int main() {
  int A, B, C, D;
  cin >> ABCD;
  if(A = B = C) {
    cout << "Yes" << endl;
  }
  else if(B = C = D){
    cout << "Yes" << endl;
  }
  else if(A = B = D){
    cout << "Yes" << endl;
  }
  else if(A = C = D){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'ABCD' was not declared in this scope
    6 |   cin >> ABCD;
      |          ^~~~
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||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:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <libc++.h>
using namespace std;

int lucas(int i) {
  if (i==0) 
    return 2;
  else if (i==1)
    return 1;
  else
    return lucas(i-1) + lucas(i-2);
}

int main() {
  int N;
  cin >> N;
  cout << lucas(N) << endl;
}

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

#include<iostream>
using namespace std;

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

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

  string ans;

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

  cout<<ans<<endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:25: error: expected ';' before 'ans'
   22 |       else(b!=c && b!=d)
      |                         ^
      |                         ;
   23 |       ans="No";
      |       ~~~                
a.cc:24:9: error: 'else' without a previous 'if'
   24 |         else
      |         ^~~~
Language: C++

#include<iostream>
using namespace std;

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

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

  string ans;

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

  cout<<ans<<endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:25: error: expected ';' before 'ans'
   22 |       else(b!=c && b!=d)
      |                         ^
      |                         ;
   23 |       ans="No"
      |       ~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  strings 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:4:3: error: 'strings' was not declared in this scope; did you mean 'stdin'?
    4 |   strings N;
      |   ^~~~~~~
      |   stdin
a.cc:5:6: error: 'N' was not declared in this scope
    5 |   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() {
  int N;
  cin >> N;
  int n1 = N/1000, n2 = N/100 - n1*10, n3 = N/10 - n1*100 - n2*10,n4 = N%10;
  if ( (n1 == n2 && n2 = n3) || (n2 = n3 && n3 = n4) ) cout << "Yes";
  else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: lvalue required as left operand of assignment
    8 |   if ( (n1 == n2 && n2 = n3) || (n2 = n3 && n3 = n4) ) cout << "Yes";
      |         ~~~~~~~~~^~~~~
a.cc:8:42: error: lvalue required as left operand of assignment
    8 |   if ( (n1 == n2 && n2 = n3) || (n2 = n3 && n3 = n4) ) cout << "Yes";
      |                                       ~~~^~~~~
Language: C++

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

int main(){
	int a,an,b,c,d,i=0;
  cin>>an;
  b=an%10;
  an=an/10;
  c=an%10;
  an=an/10;
  d=an%10;
  an=an\10;
  a=an%10;
  if(a==b) i++;
  else if(b==c) i++;
  else if(c==d) i++;
  else if(a==d) i++;
  if(i>2)	cout<<"Yes"<<endl;
  else		cout<<"No"<<endl;
  
  return 0;
}

Compiler output:
a.cc:12:8: error: stray '\' in program
   12 |   an=an\10;
      |        ^
a.cc: In function 'int main()':
a.cc:12:8: error: expected ';' before numeric constant
   12 |   an=an\10;
      |        ^~~
      |        ;
Language: C++

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

int main(){
	int an,b,c,d,i=0;
  cin>>an;
  b=an%10;
  an=an/10;
  c=an%10;
  an=an/10;
  d=an%10;
  if(a==b) i++;
  else if(b==c) i++;
  else if(c==d) i++;
  else if(a==d) i++;
  if(i>2)	cout<<"Yes"<<endl;
  else		cout<<"No"<<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: 'a' was not declared in this scope
   12 |   if(a==b) i++;
      |      ^
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:7:13: error: expected ';' before 'b'
    7 |   a = n%1000
      |             ^
      |             ;
    8 |   b = (n-a*1000)%100
      |   ~          
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else cout << "No" << endl;
      |   ^~~~
Language: C++

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

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

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

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

main(n){scanf("%d",&n);puts(n%1000%111&&n%1110>9?"No":"Yes");}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(n){scanf("%d",&n);puts(n%1000%111&&n%1110>9?"No":"Yes");}
      |     ^
Language: C++

      #include <iostream>
      using namespace std;
      main(){
        string s;
        cin >> s;
        if s[0]==s[1]&&s[1]==s[2] cout << "Yes" << endl;
        if s[3]==s[2]&&s[1]==s[2] cout << "Yes" << endl;
        else cout << "No" << endl;
      }

Compiler output:
a.cc:3:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 |       main(){
      |       ^~~~
a.cc: In function 'int main()':
a.cc:6:12: error: expected '(' before 's'
    6 |         if s[0]==s[1]&&s[1]==s[2] cout << "Yes" << endl;
      |            ^
      |            (
a.cc:7:12: error: expected '(' before 's'
    7 |         if s[3]==s[2]&&s[1]==s[2] cout << "Yes" << endl;
      |            ^
      |            (
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else cout << "No" << endl;
      |         ^~~~