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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,i,count=0;
  cin>>n;
  int b[n];
  for(i=0;i<n;i++){
    int a,c;
    cin>>a>>c;
  if(a==c)b[i]=1;
  else b[i]=0;}
  for(i=1;i<n-1;i++){
    if(b[i]==1){
      if(b[i-1]==1&&b[i+1]==1){
        count++;
      break;}}
  if(count>0)cout<<"Yes";
      else cout<<"No";
      return 0;
}

  

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,i,count=0;
  cin>>n;
  int b[n];
  for(i=0;i<n;i++){
    int a,c;
    cin>>a>>c;
  if(a==c)b[i]=1;
  else b[i]=0;}
  for(i=1;i<n-1;i++){
    if(b[i]==1){
      if(b[i-1]==1&&b[i+1]==1){
        count++;
      break;}
  if(count>0)cout<<"Yes";
      else cout<<"No";
      return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,i,count=0;
  cin>>n;
  int b[n];
  for(i=0;i<n;i++){
    int a,c;
    cin>>a>>c;
  if(a==c)b[i]=1;
  else b[i]=0;}
  for(i=1;i<n-1;i++){
    if(b[i]==1){
      if(b[i-1]==1&&b[i+1]==1){
        count++;
      break;}}
  if(count>0)cout<<"Yes";
      else cout<<"No";
      return 0;
}


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

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

#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long int
#define w(t) int t;cin>>t;while(t--)
#define mod 1000000007



int main(){
	
		fast
		int n;
		cin>>n;
		int counter=0;
		int max_count=0;
		for(int i=0;i<n;i++)
		{

			int i,j;
			cin>>i>>j;
			if(i==j)
			{
				c++;
			}
			else if(c>=3)
			{
				max_count=c;
			}
			else{
				c=0;
			}
		}
		if(max_count>=3)
			cout<<"Yes";
		else
			cout<<"No";


	return 0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:21:29: error: redeclaration of 'int i'
   21 |                         int i,j;
      |                             ^
a.cc:18:25: note: 'int i' previously declared here
   18 |                 for(int i=0;i<n;i++)
      |                         ^
a.cc:25:33: error: 'c' was not declared in this scope
   25 |                                 c++;
      |                                 ^
a.cc:27:33: error: 'c' was not declared in this scope
   27 |                         else if(c>=3)
      |                                 ^
Language: C

#include <iostream>
#include <string>
using namespace std;
int main(void)
{
  int N,a;
  string s;
  cin >> N >> s;
  for (int i = 0;i < ;i++)
  {
    if (s[i + 1] == a[i + 2])
    {
      a++;
    }
    else
    {
      a = 0;
    }
    if (a > 3)
    {
      cout << "Yes" << endl;
    }
    else
    {
      cout << "No" << endl;
    }
  }
  }
  

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,a,b,m,i,flag=0;
  int arr[100]={-1};
  cin>>n;
  m=n;
  i=-1;
  while(m--)
  {
  cin>>a>>b;
    if(a==b)
    {
      i++;
     arr[i]=n-m; 
      
    }
  }
  for(m=0;m<=i-2;m++)
  {
    if(a[m+1]==a[m]+1 && a[m+2]==a[m]+2)
    {
      flag=1;
      break;
    }
    
  }
  if(flag==0)
    cout<<"NO"<<endl;
  else
    cout<<"YES"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: invalid types 'int[int]' for array subscript
   22 |     if(a[m+1]==a[m]+1 && a[m+2]==a[m]+2)
      |         ^
a.cc:22:17: error: invalid types 'int[int]' for array subscript
   22 |     if(a[m+1]==a[m]+1 && a[m+2]==a[m]+2)
      |                 ^
a.cc:22:27: error: invalid types 'int[int]' for array subscript
   22 |     if(a[m+1]==a[m]+1 && a[m+2]==a[m]+2)
      |                           ^
a.cc:22:35: error: invalid types 'int[int]' for array subscript
   22 |     if(a[m+1]==a[m]+1 && a[m+2]==a[m]+2)
      |                                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,i,count=0;
  cin>>n;
  int b[n];
  for(i=0;i<n;i++){
    int a,c;
    cin>>a>>c;
  if(a==c)b[i]=1;
  else b[i]=0;}
  for(i=1;i<n-1;i++){
    if(b[i]==1){
      if(b[i-1]==1&&b[i+1]==1){
        count++;
      break;}
  if(count>0)cout<<"Yes";
      else cout<<"No";
      return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:12:21: note: to match this '{'
   12 |   for(i=1;i<n-1;i++){
      |                     ^
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<>

using namespace std;

int d[200][2];

int main()
{
  int n;
  cin >> n;
  
  for(int i=0;i<n;i++)
    for(int j=0;j<2;j++)
      cin >> d[i][j];
 
  int cnt=0;
  for(int i=0;i<n;i++){
    if(d[i][0]==d[i][1]){
      ++cnt;
      if(cnt==3){
        cout << "Yes";
        return 0;
      }
    }
    else if(d[i][0]!=d[i][1])
      cnt=0;
  }
  
  cout << "No";
  return 0;
}

    
  

Compiler output:
a.cc:2:9: error: empty filename in #include
    2 | #include<>
      |         ^~
Language: C++

#include<iostream>
using namespace std;
int main() {
  int N;
  cin >> N;
  int cnt = 0;
  int d1,d2;
  for(i=0;i<N;i++) {
    cin >> d1 >> d2;
    if(d1 == d2) {
      cnt++;
      if(cnt == 3) {
        cout << "Yes" << endl;
        return 0;
      }
    }
    else cnt = 0;
  }
  cout << "No" << endl;
}

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

import java.util.Scanner;
import java.util.Arrays;
 
public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
        int attempt = in.nextInt();
        int[][] diceArr = new int[attempt][2];
        for (int i = 0; i < attempt; i++) {
            diceArr[i][0] = in.nextInt();
            diceArr[i][1] = in.nextInt();
        }
        int counter = 0;
        for (int i = 0; i < attempt; i++) {
            if (diceArr[i+1][0] == diceArr[i+1][1] and diceArr[i][0] == diceArr[i][1]) {
                counter++;
            } else {
            	counter = 0;
            }
        }
        if (counter >= 3) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        in.close();
    }
}

Compiler output:
Main.java:15: error: ')' expected
            if (diceArr[i+1][0] == diceArr[i+1][1] and diceArr[i][0] == diceArr[i][1]) {
                                                  ^
Main.java:15: error: ']' expected
            if (diceArr[i+1][0] == diceArr[i+1][1] and diceArr[i][0] == diceArr[i][1]) {
                                                               ^
Main.java:15: error: variable declaration not allowed here
            if (diceArr[i+1][0] == diceArr[i+1][1] and diceArr[i][0] == diceArr[i][1]) {
                                                       ^
Main.java:15: error: ';' expected
            if (diceArr[i+1][0] == diceArr[i+1][1] and diceArr[i][0] == diceArr[i][1]) {
                                                                ^
Main.java:15: error: not a statement
            if (diceArr[i+1][0] == diceArr[i+1][1] and diceArr[i][0] == diceArr[i][1]) {
                                                                                  ^
Main.java:15: error: ';' expected
            if (diceArr[i+1][0] == diceArr[i+1][1] and diceArr[i][0] == diceArr[i][1]) {
                                                                                     ^
Main.java:17: error: 'else' without 'if'
            } else {
              ^
7 errors
Language: C++

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

int main() {
  
  int N;
  cin >> N;
  vector<vector<int>> vec(N, vector<int>(2));
  
  for(int i=0; i<N; i++){
   for(int j=0; j<2; j++){
     
    cin >> vec.at(i).(j);
     
   }
    
  }
  
  for(int i=0; i<N; i++){
   
     if(vec.at(i).at(0)==vec.at(i).at(1) && vec.at(i+1).at(0)==vec.at(i+1).at(1) && vec.at(i+2).at(0)==vec.at(i+2).at(1)){
       
       cout << "Yes" << endl;
       break;
      }
      
    else{
      continue;
    }
    
    cout << "No" <<endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected unqualified-id before '(' token
   13 |     cin >> vec.at(i).(j);
      |                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
typedef long long ll;
const ll M=1000000007;
//------------------------------------------//

int main(){
    ll N;cin>>N;
    ll D[N][2];
    vector<bool> f[N];
    rep(i,N){
        cin>>D[i][0]>>D[i][1];
        if(D[i][0]==D[i][1]) f[i]=true;
    }

    rep(i,N-2){
        if(f[i]==f[i+1] && f[i+1]==f[i+2]){
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"<<endl;
    return 0;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:35: error: no match for 'operator=' (operand types are 'std::vector<bool>' and 'bool')
   14 |         if(D[i][0]==D[i][1]) f[i]=true;
      |                                   ^~~~
In file included from /usr/include/c++/14/vector:67,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_bvector.h:894:7: note: candidate: 'std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(const std::vector<bool, _Alloc>&) [with _Alloc = std::allocator<bool>]'
  894 |       operator=(const vector& __x)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_bvector.h:894:31: note:   no known conversion for argument 1 from 'bool' to 'const std::vector<bool>&'
  894 |       operator=(const vector& __x)
      |                 ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_bvector.h:926:7: note: candidate: 'std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(std::vector<bool, _Alloc>&&) [with _Alloc = std::allocator<bool>]'
  926 |       operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_bvector.h:926:26: note:   no known conversion for argument 1 from 'bool' to 'std::vector<bool>&&'
  926 |       operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_bvector.h:952:7: note: candidate: 'std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(std::initializer_list<bool>) [with _Alloc = std::allocator<bool>]'
  952 |       operator=(initializer_list<bool> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_bvector.h:952:40: note:   no known conversion for argument 1 from 'bool' to 'std::initializer_list<bool>'
  952 |       operator=(initializer_list<bool> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  vector<int> d(2*N),d1(N),d2(N);
  for (int i; i<2*N; i++){
    cin >> d.at(i);
  }
  for (int i; i<N; i++){
    int y = 2*i -1;
    int z = 2*i;
    d1.at(i) == d.at(y);
    d2.at(i) == d.at(z);
  }
  for (int i; i<N; i++){
    if (d1.at(i) == d2.at(i)){
      if (d1.at(i+1) == d2.at(i+1)){
        if (d1.at(i+2) == d2.at(i+2)){
          cout << "Yes" << endl;
          int x;
          x == 1;
         
          break;
        }
        else continue;
      }
      else continue;
    }
    else continue;
    
    if (x == 0){
      cout << "No" << endl;
    }
      
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:9: error: 'x' was not declared in this scope
   33 |     if (x == 0){
      |         ^
a.cc:39:2: error: expected '}' at end of input
   39 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int n;
  cin >>n;
  int a[n];
  int b[n];
  for(int i=0;i<n;i++)
  {
    	
    	cin >>a[i]>>b[i];
  }
  int f=0;
  for(int i=0;i<n;i++)
  {
    	int c;
    	if(a[i]==b[i])
        {
          c=1;
          for(int i+1;i<n;i++)
          {
            if(a[i]==b[i])
            {
              c++;
            }
            else
            {
              break;
            }
            
          }
          if(c==3)
          {
            f=1;
            break;
            
          }
        }
    if(f==1)
      cout <<"Yes"<<endl;
    else
      cout <<"No"<<endl;
          
    
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:20: error: expected ';' before '+' token
   21 |           for(int i+1;i<n;i++)
      |                    ^
      |                    ;
a.cc:21:26: error: expected ')' before ';' token
   21 |           for(int i+1;i<n;i++)
      |              ~           ^
      |                          )
a.cc:21:30: error: expected ';' before ')' token
   21 |           for(int i+1;i<n;i++)
      |                              ^
      |                              ;
a.cc:49:2: error: expected '}' at end of input
   49 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner s=new Scanner(System.in);
    int n=s.nextInt();
    int arr[][]=new int[n][n];
     for(int i=0;i<n;i++){
        for(int j=0;j<2;j++){
          arr[i][j]=s.nextInt();
        }
    }
    int flag=0;
    for(int i=0;i<=n-3;i++){
        if(arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]){
          flag=1;
    }
    
    if(flag==1)
    System.out.println("yes");
    else
     System.out.println("no");
  }
}


Compiler output:
Main.java:24: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void){
  cin >> N;
  int d1,d2,count=0,flag=0;
  for(int i=0;i<N;i++){
  	cin >> d1 >> d2;
    if(d1==d2){
    	count++;
    }else{
    	count=0;
    }
    if(count>=3){
    	flag++;
    }
  }
  if(flag!=0){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int i,t;
  cin>>t;
  while(t--)
  {
    int count=0;
    int a[2];
    for(i=0;i<2;i++)
    {cin>>a[i];
    }
    for(i=0;i<2;i++)
    {if(a[i]==a[i+1])
      count++;
    }
  }
  if(count>=3)
    cout<<'Yes';
  else
    cout<<'No';
}


Compiler output:
a.cc:19:11: warning: multi-character character constant [-Wmultichar]
   19 |     cout<<'Yes';
      |           ^~~~~
a.cc:21:11: warning: multi-character character constant [-Wmultichar]
   21 |     cout<<'No';
      |           ^~~~
a.cc: In function 'int main()':
a.cc:18:11: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator>='
   18 |   if(count>=3)
      |      ~~~~~^~~
Language: C++

#include<iostream>
 
using namespace std;
 
int D[100][2];
 
int main
{
	int n;
	cin>>n;
    //take input
    for(int  i =0; i < n; i++)
    {
    	cin>>D[i][0];
        cin>>D[i][1];
    }
    //check doublets
    for (int i = 0; i < n-2; i++)
    {
    	if (D[i][0] == D[i][1])
        {
        	if (D[i+1][0] == D[i+1][1])
            {
            	if (D[i+2][0] == D[i+2][1])
                {
                	cout<<"Yes";
                    return 0;
                }
            }
        }
    }
    cout<<"No";
}

Compiler output:
a.cc:7:5: error: cannot declare '::main' to be a global variable
    7 | int main
      |     ^~~~
a.cc:9:9: error: expected primary-expression before 'int'
    9 |         int n;
      |         ^~~
a.cc:9:9: error: expected '}' before 'int'
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
a.cc:10:9: error: 'cin' does not name a type
   10 |         cin>>n;
      |         ^~~
a.cc:12:5: error: expected unqualified-id before 'for'
   12 |     for(int  i =0; i < n; i++)
      |     ^~~
a.cc:12:20: error: 'i' does not name a type
   12 |     for(int  i =0; i < n; i++)
      |                    ^
a.cc:12:27: error: 'i' does not name a type
   12 |     for(int  i =0; i < n; i++)
      |                           ^
a.cc:18:5: error: expected unqualified-id before 'for'
   18 |     for (int i = 0; i < n-2; i++)
      |     ^~~
a.cc:18:21: error: 'i' does not name a type
   18 |     for (int i = 0; i < n-2; i++)
      |                     ^
a.cc:18:30: error: 'i' does not name a type
   18 |     for (int i = 0; i < n-2; i++)
      |                              ^
a.cc:32:5: error: 'cout' does not name a type
   32 |     cout<<"No";
      |     ^~~~
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int i,t;
  cin>>t;
  while(t--)
  {
    count=0;
    int a[2];
    for(i=0;i<2;i++)
    {cin>>a[i];
    }
    for(i=0;i<2;i++)
    {if(a[i]==a[i+1])
      count++;
    }
  }
  if(count>=3)
    cout<<'Yes';
  else
    cout<<'no';
}

Compiler output:
a.cc:19:11: warning: multi-character character constant [-Wmultichar]
   19 |     cout<<'Yes';
      |           ^~~~~
a.cc:21:11: warning: multi-character character constant [-Wmultichar]
   21 |     cout<<'no';
      |           ^~~~
a.cc: In function 'int main()':
a.cc:8:11: error: overloaded function with no contextual type information
    8 |     count=0;
      |           ^
a.cc:15:12: error: no post-increment operator for type
   15 |       count++;
      |            ^~
a.cc:18:11: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator>='
   18 |   if(count>=3)
      |      ~~~~~^~~
Language: C++

#include<iostream>
using namespace std;
 
int main() {
  int n;
  cin >> n;
  int x , y , m=0;
  for(i=0 ; i<n ; i++){
    cin >> x >> y;
    if(x==y) m++;
  }
  if(m==3){ 
    cout << "Yes";
  }else {
    cout << "No";

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=0 ; i<n ; i++){
      |       ^
a.cc:15:18: error: expected '}' at end of input
   15 |     cout << "No";
      |                  ^
a.cc:14:9: note: to match this '{'
   14 |   }else {
      |         ^
a.cc:15:18: error: expected '}' at end of input
   15 |     cout << "No";
      |                  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
#include<iostream>
using namespace std;
 
int main() {
	
	int Number;
	cin>>Number;

	int count = 0;
    int temp1, temp2;
	for(int i = 0; i<Number; i++){
        cin>>temp1;
		cin>>temp2;
		if(temp1 == temp2){
			count++;
		}
		else count = 0;

		if(count == 3){
		cout<<"Yes";
		break;
		}
		
	}

	if(count != 3)cout<<"No";
	return 0


}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:17: error: expected ';' before '}' token
   28 |         return 0
      |                 ^
      |                 ;
......
   31 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, x, y, z;
  x = 0;
  cin >> N;
  vector<int> d(2*N),d1(N),d2(N);
  for (int i; i<2*N; i++){
    cin >> d.at(i);
  }
  for (int i; i<N; i++){
    y == 2*i -1;
    z == 2*i;
    d1.at(i) == d.at(y);
    d2.at(i) == d.at(z);
  }
  for (int i; i<N; i++){
    if (d1.at(i) == d2.at(i)){
      if (d1.at(i+1) == d2.at(i+1)){
        if (d1.at(i+2) == d2.at(i+2)){
          cout << "Yes" << endl;
          x == 1;
          break;
        }
        else continue;
      }
      else continue;
    }
    else continue;
    
    if (x == 0){
      cout << "No" << endl;
    }
      
  
  
}

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

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

int main(){
    bool a1 = false;
    bool a2 = false;
    bool a3 = false;
    bool a = false;
    string ans = "No";

    int N;
    cin >> N;
    int[2][N] D;
    for(int i=0;i<N;i++){
        cin >> D[0][i] >> D[1][i];
    }

    int i = 0;
    while(i < N){
        //ぞろ目なら
        if(D[0][i] == D[1][i]){
            //1回目
            if((a1 == false)&&(a2 == false)&&(a3 == false)){
                a1 = true;
            //2回目
            }else if((a1 == true)&&(a2 == false)&&(a3 == false)){
                a2 = true;
            //3回目
            }else if((a1 == true)&&(a2 == true)&&(a3 == false)){
                a3 = false;
            }
            //3回続けてなら
            if((a1 == true)&&(a2 == true)&&(a3 == true)){
                a = true;
            }

        //ぞろ目でなければ
        }else{
            a1 = false;
            a2 = false;
            a3 = false;
            a = false;
        }
        i++;
    }

    if(a == true){
        ans = "Yes";
    }


    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected identifier before numeric constant
   13 |     int[2][N] D;
      |         ^
a.cc:13:9: error: expected ']' before numeric constant
   13 |     int[2][N] D;
      |         ^
      |         ]
a.cc:13:8: error: structured binding declaration cannot have type 'int'
   13 |     int[2][N] D;
      |        ^
a.cc:13:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:13:8: error: empty structured binding declaration
a.cc:13:11: error: expected initializer before '[' token
   13 |     int[2][N] D;
      |           ^
a.cc:15:16: error: 'D' was not declared in this scope
   15 |         cin >> D[0][i] >> D[1][i];
      |                ^
a.cc:21:12: error: 'D' was not declared in this scope
   21 |         if(D[0][i] == D[1][i]){
      |            ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  int D_1,D_2
  string ans="No";
  for(int i=0;i<N;i++){
    cin >> D_1 >> D_2;
    if(D_1==D_2){
      ans="Yes";
      break;
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected initializer before 'string'
    8 |   string ans="No";
      |   ^~~~~~
a.cc:10:19: error: 'D_2' was not declared in this scope; did you mean 'D_1'?
   10 |     cin >> D_1 >> D_2;
      |                   ^~~
      |                   D_1
a.cc:12:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |       ans="Yes";
      |       ^~~
      |       abs
a.cc:16:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  cin >> n;
  int x , y , m=0;
  for(i=0 ; i<n ; i++){
    cin >> x >> y;
    if(x==y) m++;
  }
  if(m==3){ 
    cout << "Yes";
  }else {
    cout << "No";
  }
  return 0;
}
#include <bits\stdc++.h>
using namespace std;

int main() {
  int n;
  cin >> n;
  int x , y , m=0;
  for(i=0 ; i<n ; i++){
    cin >> x >> y;
    if(x==y) m++;
  }
  if(m==3){ 
    cout << "Yes";
  }else {
    cout << "No";

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

#include <iostream>
#include <string>
using namespace std;
 
   int main()
   {
       int N;
       int count=0;
       cin >> N;
       int n[N];
       int n2[N];
       
       for (int i=0;i<N;i++){
           cin >> n[i] >> n2[i];
       }
       
       
       
       for (int i=0; i<N;i++){
           if (n[i] == n2[i])) count+=1;
       }
       
       if(count >=3){
           cout << "Yes" << endl;
       }
       else{
           cout << "No" << endl;
       }
       
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:20:30: error: expected primary-expression before ')' token
   20 |            if (n[i] == n2[i])) count+=1;
      |                              ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n;
    cin >> n;
    pair<int,int>p[n];
    for(int i=0;i<n;i++)cin>>p[i].first>>p[i].second;
    for(int i=0;i<n-2;i++){
        if(p[i].first==p[i].second&&p[i+1].first==p[i+1].second&&p[i+2].first==p[i+2].second){
            cout<<"Yes\n";
            return;
        }
    }cout<<"No\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   11 |             return;
      |             ^~~~~~
Language: C++

#include<iostream.h>

using namespace std;

int D[100][2];

int main
{
	int n;
	cin>>n;
    //take input
    for(int  i =0; i < n; i++)
    {
    	cin>>D[i][0];
        cin>>D[i][1];
    }
    //check doublets
    for (int i = 0; i < n-2; i++)
    {
    	if (D[i][0] == D[i][1])
        {
        	if (D[i+1][0] == D[i+1][1])
            {
            	if (D[i+2][0] == D[i+2][1])
                {
                	cout<<"Yes";
                    return 0;
                }
            }
        }
    }
    cout<<"No";
}

Compiler output:
a.cc:1:9: fatal error: iostream.h: No such file or directory
    1 | #include<iostream.h>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: Java


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

import static java.lang.Integer.*;

public class B {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st;
        int t = parseInt(in.readLine());
        int cnt = 0;
        for (int i = 0; i < t; i++) {
            st = new StringTokenizer(in.readLine());
            int D1 = parseInt(st.nextToken()), D2 = parseInt(st.nextToken());
            if (D1 == D2) cnt++;
            else if (cnt < 3) cnt = 0;

        }
        if (cnt >= 3) pw.println("Yes");
        else pw.println("No");
        pw.close();
    }

    static void solve() {

    }
}


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

#include<stdio.h>
int main(){
  int n,a,b,count=0;
  scanf("%d",&n);
  for(int i=0;i<n;i++){
    scanf("%d %d"),&a,&b);
    if(a==b)
      count++;
     }
  if(count>=3)
    printf("yes");
  else
    printf("no");
  return 0;
}
   

Compiler output:
main.c: In function 'main':
main.c:6:25: error: expected ';' before ')' token
    6 |     scanf("%d %d"),&a,&b);
      |                         ^
      |                         ;
main.c:6:25: error: expected statement before ')' token
Language: C++

#include <iostream>
using namespace std;
 
int main() {
  int N;
  int counter = 0;
  int D1, D2;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> D1 >> D2;
    if (D1 == D2) {
      counter++;
    } else {
      counter = 0;
    }
    if (counter == 3) {
      cout << "Yes" << endl;
      return;
    }
  }
  cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |       return;
      |       ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n,ans;cin >> n;
  ans=0;
  for (int i=0;i<n;i++) {
    int a,b;cin >> a >> b;
	if (a==b) {ans++;}
	else if (ans<3) {ans=0;}
  }
  if (ans>2) cout << "Yes" << endl;
  else cout << "No" MM endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: expected ';' before 'MM'
   13 |   else cout << "No" MM endl;
      |                    ^~~
      |                    ;
Language: C++

#include<stdio.h>
int main()
{
  int n,flag=0;
  scanf("%d",&n);
  int count=0;
  for(int i=0;i<n;i++)
  {
    scanf("%d %d",&a,&b);
    if(a==b)
    {
      count++;
      if(count>2)
      {
        printf("Yes");
        flag=1;
        break;
      }
    }else{
      count=0;
    }
    
  }
  if(flag==0)
  {
    if(count>2)
    {
      printf("Yes");
    }else{
      printf("No");
    }
  }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'a' was not declared in this scope
    9 |     scanf("%d %d",&a,&b);
      |                    ^
a.cc:9:23: error: 'b' was not declared in this scope
    9 |     scanf("%d %d",&a,&b);
      |                       ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  int counter = 0;
  int D1, D2;
  cin >> N;
  for (int i == 0; i < N; i++) {
    cin >> D1 >> D2;
    if (D1 == D2) {
      counter++;
    } else {
      counter = 0;
    }
    if (counter == 3) 
      cout << "Yes" << endl;
      break;
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected ';' before '==' token
    9 |   for (int i == 0; i < N; i++) {
      |             ^~~
      |             ;
a.cc:9:14: error: expected primary-expression before '==' token
    9 |   for (int i == 0; i < N; i++) {
      |              ^~
a.cc:9:25: error: expected ')' before ';' token
    9 |   for (int i == 0; i < N; i++) {
      |       ~                 ^
      |                         )
a.cc:9:27: error: 'i' was not declared in this scope
    9 |   for (int i == 0; i < N; i++) {
      |                           ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
 int d[100];
 int m[100];
 int n,i,c=0,k=0;
  cin >>n;
  for(i=0;i<n;i++)
  {
    cin >>d[i];
    cin >>m[i];
  }
   for(i=0;i<n;i++)
  {
     if(d[i]==m[i])
     {
       c++;
       if(c>=3)
       {
       cout <<"YES";
       k=1;break;}
     }
     else
       c=0;
   }
   }
  if(k==0)
    cout <<"NO";
}
       

Compiler output:
a.cc:29:3: error: expected unqualified-id before 'if'
   29 |   if(k==0)
      |   ^~
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

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

int main() {
  int n;
  cin >> n;
  int x , y , m=0;
  for(i=0 ; i<n ; i++){
    cin >> x >> y;
    if(x==y) m++;
  }
  if(m==3){ 
    cout << "Yes";
  }else {
    cout << "No";
  }
  return 0;
}

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

import java.util.*;
public class Solution2 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
         int n=sc.nextInt();
         int strike=0;
         for(int i=0;i<n;i++) {
        	 int x=sc.nextInt();
        	 int y=sc.nextInt();
        	 if(x==y)strike++;
        	 else strike=0;
        	 if(strike==3) {
        		 System.out.println("Yes");
        		 return;
        	 }
         }
         System.out.println("No");

	}

}

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

#include<iostream>
#include<functional>
#include<vector>
#include<cstring>
#include<string.h>
#include<algorithm>
#include<stack>
using namespace std;
int main()
{
  int t;
  cin>>t;
  int arr[102][102];
  for(int i=0;i<t;i++)
  {
    for(int j=0;j<2;j++)
    {
      cin>>arr[i][j];
    }
  }//00 01
   //10 11
  int count=0;
  for(int i=0;i<t;i++)
  {
   if(arr[i][0]==arr[i][1])
      {
        count++;
        if(count==3)
        {
          cout<<"Yes";
          return 0;
        }
      }
      else
      {
        count=0;
      }
  }
  cout<<"No";
  return 0;
}
/


Compiler output:
a.cc:42:1: error: expected unqualified-id before '/' token
   42 | /
      | ^
Language: C++

#include<iostream>

using namespace std;

int test(int n)
{
    int [n] arr1,arr2;

    for(int i=0;i<n-3;i++)
    {
        if((*(arr1+i)==*(arr2+i))&&(*(arr1+i+1)==*(arr2+i+1))&&(*(arr1+i+2)==*(arr2+i+2)))
        {
            return 1;
        }
    }
    return 0;
}
}

int main(void)
{
    int n;
    cin>>n;
    if(test(n)==1)
    {
        cout<<"Yes\n";
    }
    else
    {
        cout<<"No\n";
    }
}
    
    

Compiler output:
a.cc: In function 'int test(int)':
a.cc:7:9: error: structured binding declaration cannot have type 'int'
    7 |     int [n] arr1,arr2;
      |         ^~~
a.cc:7:9: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:7:10: error: declaration of 'auto n' shadows a parameter
    7 |     int [n] arr1,arr2;
      |          ^
a.cc:5:14: note: 'int n' previously declared here
    5 | int test(int n)
      |          ~~~~^
a.cc:7:13: error: expected initializer before 'arr1'
    7 |     int [n] arr1,arr2;
      |             ^~~~
a.cc:7:13: error: expected ';' before 'arr1'
a.cc:11:15: error: 'arr1' was not declared in this scope
   11 |         if((*(arr1+i)==*(arr2+i))&&(*(arr1+i+1)==*(arr2+i+1))&&(*(arr1+i+2)==*(arr2+i+2)))
      |               ^~~~
a.cc:11:26: error: 'arr2' was not declared in this scope
   11 |         if((*(arr1+i)==*(arr2+i))&&(*(arr1+i+1)==*(arr2+i+1))&&(*(arr1+i+2)==*(arr2+i+2)))
      |                          ^~~~
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
using i64 = long long;
using f64 = double;

#define FOR(i, s, n) for (size_t i = (s); i < (size_t)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(v) (v).begin(), (v).end()

template <typename T, typename U>
inline bool chmax(T &a, U b) {
  return a < b ? (a = b, true) : false;
}

template <typename T, typename U>
inline bool chmin(T &a, U b) {
  return a > b ? (a = b, true) : false;
}

int main() {
  int n;
  cin >> n;
  auto count = 0;
  int[2] d;
  REP(i, n) {
    REP(j, 2) {
      cin >> d[j];
      if (d[0] == d[1]) {
        count++;
        if (count >= 3) {
          cout << "Yes";
          return 0;
        }
      } else {
        count = 0;
      }
    }
  }

  cout << "No";
  return 0;
}


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

#include<iostream>
using namespace std;
main()
{
  int i,n,c=0;
  cin>>n;
  int d[n][2];
  for(i=0;i<n;i++)
  {
    cin>>d[i][0];
    cin>>d[i][1];
  }
  for(i=0;i<n;i++)
  {
    if(d[i][0]!=d[i][1])
      break;
    
    c++;
  }
  if(c>=3)
  cout<<"Yes";
  else
    cout"No";
  return 0;
}
    

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:23:9: error: expected ';' before string constant
   23 |     cout"No";
      |         ^~~~
      |         ;
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> D1(N), D2(N);
  
  for(int i=0; i<N; i++){
  	cin >> D1(i) >> D2(i);
  }
  
  bool tripl = false;
  int ren = 0;
  
  for(int i=0; i<N; i++){
    if(D1(i) == D2(i)) ren++;
    else ren = 0;
    if(ren == 3){
      tripl = true;
      break;
    }
  }

  if(tripl == true) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: no match for call to '(std::vector<int>) (int&)'
   10 |         cin >> D1(i) >> D2(i);
      |                ~~^~~
a.cc:10:27: error: no match for call to '(std::vector<int>) (int&)'
   10 |         cin >> D1(i) >> D2(i);
      |                         ~~^~~
a.cc:17:10: error: no match for call to '(std::vector<int>) (int&)'
   17 |     if(D1(i) == D2(i)) ren++;
      |        ~~^~~
a.cc:17:19: error: no match for call to '(std::vector<int>) (int&)'
   17 |     if(D1(i) == D2(i)) ren++;
      |                 ~~^~~
Language: Java

import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        int count=0;
        int[] a = new int[2];
        int[] b = new int[2];
        
        for(int i=1;i<t;i++){
             a[i] = sc.nextInt();
             b[i]  = sc.nextInt();
            if(a[i]==b[i]){
                count++;
               
            }

        }if(count>=3){
            System.ot.print("Yes");
        }else{
          System.ot.println("No");
        }

    }
}

Compiler output:
Main.java:19: error: cannot find symbol
            System.ot.print("Yes");
                  ^
  symbol:   variable ot
  location: class System
Main.java:21: error: cannot find symbol
          System.ot.println("No");
                ^
  symbol:   variable ot
  location: class System
2 errors
Language: C++

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

int main() {
  cin >> N;
  vector<int> D1(N), D2(N);
  
  for(int i=0; i<N; i++){
  	cin >> D1(i) >> D2(i);
  }
  
  bool tripl == false;
  int ren = 0;
  
  for(int i=0; i<N; i++){
    if(D1(i) == D2(i)) ren++;
    else ren = 0;
    if(ren == 3){
      tripl = true;
      break;
    }
  }

  if(tripl == true) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N;
      |          ^
a.cc:9:18: error: no match for call to '(std::vector<int>) (int&)'
    9 |         cin >> D1(i) >> D2(i);
      |                ~~^~~
a.cc:9:27: error: no match for call to '(std::vector<int>) (int&)'
    9 |         cin >> D1(i) >> D2(i);
      |                         ~~^~~
a.cc:12:14: error: expected initializer before '==' token
   12 |   bool tripl == false;
      |              ^~
a.cc:16:10: error: no match for call to '(std::vector<int>) (int&)'
   16 |     if(D1(i) == D2(i)) ren++;
      |        ~~^~~
a.cc:16:19: error: no match for call to '(std::vector<int>) (int&)'
   16 |     if(D1(i) == D2(i)) ren++;
      |                 ~~^~~
a.cc:19:7: error: 'tripl' was not declared in this scope
   19 |       tripl = true;
      |       ^~~~~
a.cc:24:6: error: 'tripl' was not declared in this scope
   24 |   if(tripl == true) cout << "Yes" << endl;
      |      ^~~~~
Language: C

#include<stdio.h>
int main() {

	int n, i, d1[100], d2[100], count = 0;
	bool flag = 0;

	scanf("%d", &n);

	for (i = 0; i < n; i++) {
		scanf("%d%d", &d1[i], &d2[i]);

		if (d1[i] == d2[i])
			count++;
		else
			count = 0;

		if (count == 3)
			flag = 1;
	}

	if (flag == 1)
		printf("Yes");
	else
		printf("No");

	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:9: error: unknown type name 'bool'
    5 |         bool flag = 0;
      |         ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | int main() {
Language: C

#include <bits/stdc++.h>
#define ll long long
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define lc "\n"
#define forr(i,a,n)  for(ll i=a;i<n;i++)
using namespace std;

int main()
{
    IOS;
    int n,c=0;
    cin>>n;
    int a[n],b[n];
    forr(i,0,n)
    {
        cin>>a[i]>>b[i];

    }

    forr(i,0,n)
    {
        //cin>>a[i]>>b[i];
        if(a[i]==b[i]){c++;if(c==3){cout<<"Yes";return 0;}}
        else{c=0;}
    }
    cout<<"No";

    return 0;
}


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

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

int main() {
	int t;
  cin>>t;
  while(t--)
  {
    int a,b;
    cin>>a>>b;
    if(a==b)
      c++;
    
  }
  if(c>=3)
    cout<<"Yes\n";
  else
    cout<<"No\n";
	
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'c' was not declared in this scope
   12 |       c++;
      |       ^
a.cc:15:6: error: 'c' was not declared in this scope
   15 |   if(c>=3)
      |      ^
Language: C++

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

int main(){
  ll n, d[2][101], cnt = 0, ans = 0;
  cin >> n;
  for(int i = 0; i < n; i++) cin >> d[0][i] >> d[1][i]
  for(int i = 0; i < n; i++){
    if(d[0][i]==d[1][i]) cnt++;
    if(cnt == 3) ans++;
    else cnt = 0;
  }
  if (cnt) cout <<"Yes" ;
  else cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:55: error: expected ';' before 'for'
    8 |   for(int i = 0; i < n; i++) cin >> d[0][i] >> d[1][i]
      |                                                       ^
      |                                                       ;
    9 |   for(int i = 0; i < n; i++){
      |   ~~~                                                  
a.cc:9:18: error: 'i' was not declared in this scope
    9 |   for(int i = 0; i < n; i++){
      |                  ^
Language: C++

#include<iostream>
#include<vector>
#include<pair>
#include<algorithm>
using namespace std;
typedef long long int ll;
int main()
{
    ll n;
    cin>>n;
    vector<pair<ll,ll> >v;
    for(ll i=0;i<n;i++)
    {
        ll a,b;
        cin>>a>>b;
        v.push_back(make_pair(a,b));
    }
    ll cnt=0;
    for(int i=0;i<n;i++)
    {
       // cout<<v[i].first<<" "<<v[i].second<<"\n";
        if(v[i].first==v[i].second)
            cnt++;
        else
            cnt=0;
           // cout<<cnt<<"\n";
        if(cnt==3)
            break;
    }
    if(cnt==3)
        cout<<"Yes\n";
    else
        cout<<"No\n";
}


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

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define rep(i,n) for(int i(0);i<n;++i)
#define all(v) (v.begin(),v.end())
const int p=31;
const int MOD=1e9+9;

ll hash(string s){
	ll cnt=0;
	ll p_pow=1;
	for(char c : s){
		cnt=(cnt+(c-'a'+1)*p_pow)%MOD;
		p_pow=(p_pow*p)%MOD;
	}
	return cnt;
}

signed main(){
	int n,x,y;
	bool chk=0;
	cin >> n;
	vector<int> v;
	rep(i,n){
		cin >> x >> y;
		v.push_back((x-y));
	}		
	for(int i(0);i<(n-2);++i){
		if(v[i]==0 && v[i+1]==0 && vector[i+2]==0){
			chk=1;
			break;
		}
	}
	cout << (chk ? "Yes" : "No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:50: error: missing template arguments before '[' token
   30 |                 if(v[i]==0 && v[i+1]==0 && vector[i+2]==0){
      |                                                  ^
Language: C++

#include <iostream>

using namespace std;

int main(){
int n;
  cin >> n;
int count = 0;
  for (int i = 0; i < n; ++i){
    int a,b;
    cin >> a >> b;
    if (a==b){
      count +=1;
    } else {count = 0;}
    if (count == 3) {
cout << "Yes";
      return 0;
  }
    
    cout << "No";
    
    return 0;
}

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

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

bool doublet[100];

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    int n; cin >> n;
    for (int i = 0; i < n; i++) {
        int a, b; cin >> a >> b;
        if (a == b) {
            doublet[i] = true;
        }
    }
    
    bool res = false;
    for (int i = 0; i < n - 2; i++) {
        if (doublet[i] && doublet[i+1] && doublet[i+2])
            res = true;
    }
    
    cout << (res ? "Yes" : "No");
    
    return 0;
}

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

#include<iostream>
using namespace std;
typedef long long int ll;
int main()
{
    ll n;
    cin>>n;
    vector<pair<ll,ll> >v;
    for(ll i=0;i<n;i++)
    {
        ll a,b;
        cin>>a>>b;
        v.push_back(make_pair(a,b));
    }
    ll cnt=0;
    for(int i=0;i<n;i++)
    {
       // cout<<v[i].first<<" "<<v[i].second<<"\n";
        if(v[i].first==v[i].second)
            cnt++;
        else
            cnt=0;
           // cout<<cnt<<"\n";
        if(cnt==3)
            break;
    }
    if(cnt==3)
        cout<<"Yes\n";
    else
        cout<<"No\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'vector' was not declared in this scope
    8 |     vector<pair<ll,ll> >v;
      |     ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:24: error: expected primary-expression before '>' token
    8 |     vector<pair<ll,ll> >v;
      |                        ^
a.cc:8:25: error: 'v' was not declared in this scope
    8 |     vector<pair<ll,ll> >v;
      |                         ^
Language: C++

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

int main(){
        int s; cin >> s;
        int result=0;
        bool done=false;
        while(s--){ 
                int f,s; 
                cin >> f >> s;
                if(f==s){
                        result++;
                }
                else{
                        result=0;
                }
                if(result>=3){
                        done=true
                }
        }
        if(result>=3 || done){
                cout << "Yes";
        }
        else{
                cout << "No";
        }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:34: error: expected ';' before '}' token
   19 |                         done=true
      |                                  ^
      |                                  ;
   20 |                 }
      |                 ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
  int a,b;
  flag=false;
int count=0;
while(n--){
  cin>>a>>b;
  if(a==b)count++;
  else count=0;
  if(count==3)flag=true;
}
  if(flag)cout<<"Yes";
  else cout<<"No";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'flag' was not declared in this scope
    7 |   flag=false;
      |   ^~~~