criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 0;
        
        for(int i = 0; i < N; i++){
            int a = sc.nextInt();
            int b = sc.nextInt();
            if(cout >= 3){
                if(a == b){
                    count++;
                }else{
                    count = 0;
                }  
                System.out.print("Yes");
            }else{
                System.out.print("No");
            }

       }
   }
}



Compiler output:
Main.java:14: error: cannot find symbol
            if(cout >= 3){
               ^
  symbol:   variable cout
  location: class Main
1 error
Language: C++

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

using ll = long long;

#define pb push_back
#define ff first
#define ss second
#define all(a) a.begin(), a.end()
#define sz(a) (int)(a.size())
#define clr(a, b) memset(a, b, sizeof(a))
#define REP(i, a, b) for(int i=(int)(a); i<(int)(b); ++i)
#define REPD(i, a, b) for(int i=(int)(a)-1; i>=(int)(b); --i)

template<typename T> inline bool chkmin(T &a, const T &b) { return a > b ? a = b, 1 : 0; }
template<typename T> inline bool chkmax(T &a, const T &b) { return a < b ? a = b, 1 : 0; }

mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

int x[123456], y[123456];

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int N;
    cin >> N;
    int res = 0;
    REP(i, 0, N) {
    	cin >> x[i] >> y[i];
    }
    int res = 0;
    REP(i, 0, N-2) {
    	if(x[i] == y[i] && x[i+1] == y[i+1] && x[i+2] == y[i+2]) ++res;
    }
    if(res)
    	cout << "Yes\n";
    else
    	cout << "No\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:9: error: redeclaration of 'int res'
   31 |     int res = 0;
      |         ^~~
a.cc:27:9: note: 'int res' previously declared here
   27 |     int res = 0;
      |         ^~~
Language: C++

   #include<bits/stdc++.h>
    #define mod 1000000007
    using namespace std;
    #define LL long long int
    int main() 
    {
     LL N;
        cin >> N;
        vector< bool > v;
        for(LL i=0;i<N;i++)
        {
            LL x;
            LL y;
            cin >> x >> y;
            v.push_back(x==y);
        }
        bool  flag=false;
        for(LL i=0;i<=N-3;i++)
        {
     
            if(v[i]==true and v[i+1] and v[i+2])
            {
                flag=true;
                break;
            }
        }
        if(ok)
            cout<<"Yes";
        else
            cout<<"No";
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:27:12: error: 'ok' was not declared in this scope
   27 |         if(ok)
      |            ^~
Language: C++

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

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

    int one[n],sec[n];

    for (int i=0;i<n;i++){
        cin >> one[i];
        cin >> sec[i]; 
    }

    for (int j=0;j<n-2;j++){
        if(one[j]==sec[j] && one[j+1]==sec[j+1] && one[j+2]==sec[j+2]){
            cout << "Yes" << endl;
            return 0;
        }
    }

    cout << "NO" << endl;

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

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

Compiler output:
a.cc:19:11: warning: missing terminating " character
   19 |     cout<<"No';
      |           ^
a.cc:19:11: error: missing terminating " character
   19 |     cout<<"No';
      |           ^~~~~
a.cc: In function 'int main()':
a.cc:21:1: error: expected primary-expression before '}' token
   21 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
    int n,a,b,c[100],i,d,e;
    while(scanf("%d",&n)==1)
    {
        c[100]=0;
        for(i=0;i<n;i++){
            scanf("%d%d",&a,&b);
            if(a==b)
                c[i]=1;
            else
                c[i]=0;
               // printf("%d\n",c[i]);
        }
        d=0;
        for(i=0;i<n;i++)
        {
            if(c[i]==1)
                {d++;
               // printf("%d\n",d);}
            else
                {
                    if(d>=3)
                       e=1;
                    else
                       d=0;
                }
        }
        if(e==1)
               printf("Yes\n");
            else
                    printf("No\n");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:22:13: error: expected '}' before 'else'
   22 |             else
      |             ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main() {
    int i;

   cin >> i;
    int j;
    int a, b;
    int res=0;
    int res1 = 0;
    for (j = 0; j < i; j++) {
        cin >> a;
        cin >> b;

        if (a == b)
            res++;

        if (res >= 3)
            res1 = res;
        if (a != b)
            res = 0;
    }
    if (res1 >= 3)
        cout << "Yes" << endl;
    else {
        cout << "No" << endl;
    }
    
   

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

#include <ctsdio>
int main()
{
	int N;
	int a, b, c, d;
	a = b = 0;
	scanf("%d", &N);
	int cnt = 0;
	for (int i = 0; i < N; i++)
	{
		scanf("%d %d", &a, &b);
		if (a == c && b == d)
		{
			cnt++;
		}
		else
		{
			cnt = 0;
		}
		c = a;
		d = b;
		if (cnt >= 3)
			{
				printf("Yes\n");
				return 0;
			}
	}
	printf("No\n");
	return 0;
}

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

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

int main(){
  int n,i;
  
  i=0;
  
  int D1[i],D2[i];
  
  cin >> n;
  while (i<n) {
    cin >> D1[i] >> D2[i];
    i++;
  }

  while ( i < (n-2) ) {
    if (D1[i]==D2[i] && D1[i+1]==D2[i+1] && D1[i+2]==D2[i+2]) {
      cout << "Yes" << endl;
      break;
    }
      
    if (i== (n-3)) {
      cout << "No" << endl;
    }
    
    else {
      i++;
    }
    retrun 0;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:5: error: 'retrun' was not declared in this scope
   30 |     retrun 0;
      |     ^~~~~~
Language: C

#include <stdio.h>
#include <string.h>
#include <math.h>
 
int main(int argc, const char * argv[]) {
    // insert code here...
    int n, i, j, cnt=0, save=0, connect=0;//connect=0初回  ３連続でない 7連続である
    int s[6][2];
   
    scanf("%d",&n);
    
    
    for(i=0; i<6; i++)
        for(j=0; j<2; j++)
            scanf("%d", &(s[i][j]) );
    
    
//    printf("%d", n);
//    printf("\n");
//    for (i = 0; i < n; i++) {
//        for (j = 0; j < 2; j++) {
//            printf("%d ", s[i][j]);
//        }
//        printf("\n");
//    }
    for(i = 0; i < n; i++){
        if(s[i][0]==s[i][1]){
            if(connect==0||connect==7){
                cnt++;
            }else{
                cnt=1;
            }
            connect=7;
        }else{
           
            if(cnt>save){
                save = cnt;
            }
        
            connect=3;
        }
    }
    if(save>cnt){
        cnt=save;
    }
   
    if(cnt>2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}
#include <stdio.h>
#include <string.h>
#include <math.h>
 
int main(int argc, const char * argv[]) {
    // insert code here...
    int n, i, j, cnt=0, save=0, connect=0;//connect=0初回  ３連続でない 7連続である
    int s[6][2];
   
    scanf("%d",&n);
    
    
    for(i=0; i<6; i++)
        for(j=0; j<2; j++)
            scanf("%d", &(s[i][j]) );
    
    
//    printf("%d", n);
//    printf("\n");
//    for (i = 0; i < n; i++) {
//        for (j = 0; j < 2; j++) {
//            printf("%d ", s[i][j]);
//        }
//        printf("\n");
//    }
    for(i = 0; i < n; i++){
        if(s[i][0]==s[i][1]){
            if(connect==0||connect==7){
                cnt++;
            }else{
                cnt=1;
            }
            connect=7;
        }else{
           
            if(cnt>save){
                save = cnt;
            }
        
            connect=3;
        }
    }
    if(save>cnt){
        cnt=save;
    }
   
    if(cnt>2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}


Compiler output:
main.c:58:5: error: redefinition of 'main'
   58 | int main(int argc, const char * argv[]) {
      |     ^~~~
main.c:5:5: note: previous definition of 'main' with type 'int(int,  const char **)'
    5 | int main(int argc, const char * argv[]) {
      |     ^~~~
Language: C

#include <iostream.h>
#include <string.h>

char buff[1000];


int compare (char *str )
{
  bool end1 = false;
  int n = 0;

  while( end1 ){
    if ( buff[n] == “s” ){
      buff[n] = “e”;
      buff[n+1] = “s”;
      end1 = true;
    } else {
      buff[n+1]=“s”;      
    }
    n++;
  }

}
int main(void)
{
  scanf(“&buff”, %s);   //input 
  compare( &buff );
  printf("%s", &buff);
  return 0;
}


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

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



int main() {
  int N;
  cin >> N;
  vector<int> dice;

 for (int i = 0; i < 2*N; i++) {
    cin >> dice.at(i);
  }
  
  for (int i=0;i<2*N;i+=6){
    if(dice.at(i)==dice.at(i+1)||dice.at(i+2)==dice.at(i+1)){
    else if(dice.at(i+2)==dice.at(i+3)||dice.at(i)==dice.at(i+3)){
    else  if(dice.at(i+4)==dice.at(i+3)||dice.at(i+4)==dice.at(i+5)){
    {cout<<"Yes"<<endl;}
    else {cout<<"No"<<endl;}
    }
    }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: expected '}' before 'else'
   17 |     else if(dice.at(i+2)==dice.at(i+3)||dice.at(i)==dice.at(i+3)){
      |     ^~~~
a.cc:16:61: note: to match this '{'
   16 |     if(dice.at(i)==dice.at(i+1)||dice.at(i+2)==dice.at(i+1)){
      |                                                             ^
a.cc:18:5: error: expected '}' before 'else'
   18 |     else  if(dice.at(i+4)==dice.at(i+3)||dice.at(i+4)==dice.at(i+5)){
      |     ^~~~
a.cc:17:66: note: to match this '{'
   17 |     else if(dice.at(i+2)==dice.at(i+3)||dice.at(i)==dice.at(i+3)){
      |                                                                  ^
a.cc:20:5: error: expected '}' before 'else'
   20 |     else {cout<<"No"<<endl;}
      |     ^~~~
a.cc:18:69: note: to match this '{'
   18 |     else  if(dice.at(i+4)==dice.at(i+3)||dice.at(i+4)==dice.at(i+5)){
      |                                                                     ^
a.cc: At global scope:
a.cc:23:5: error: expected declaration before '}' token
   23 |     }
      |     ^
a.cc:24:3: error: expected declaration before '}' token
   24 |   }
      |   ^
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

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



int main() {
  int N;
  cin >> N;
  vector<int> dice;

 for (int i = 0; i < 2*N; i++) {
    cin >> dice.at(i);
  }
  
  for (int i=0;i<2*N;i+=6){
    if(dice.at(i)==dice.at(i+1)||dice.at(i+2)==dice.at(i+1)){
    if(dice.at(i+2)==dice.at(i+3)||dice.at(i)==dice.at(i+3)){
    if(dice.at(i+4)==dice.at(i+3)||dice.at(i+4)==dice.at(i+5)){
    {cout<<"Yes"<<endl;}
    else {cout<<"No"<<endl;}
    }
    }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:5: error: expected '}' before 'else'
   20 |     else {cout<<"No"<<endl;}
      |     ^~~~
a.cc:18:63: note: to match this '{'
   18 |     if(dice.at(i+4)==dice.at(i+3)||dice.at(i+4)==dice.at(i+5)){
      |                                                               ^
a.cc: At global scope:
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C

#include <iostream.h>
#include <stdio.h>

 int n = 0;
 char *buf = 0;
 int point = 0;

int chk( int *buf ){
  int dice0 = 2*buf[0];
  int dice1, dice2 = 0;
  
  for( int i = 0; i<dice0 ; i++){
    dice1 = buf[i];
    dice2 = buf[i+1];
    if ( dice1 == dice2 ){
      point++;
    }
  }
  return point;
}


int main(void){
  //input
    for ( int i = 0; i<n ; i++){
       scanf(“&n”, %d);
       buf[i]=n;
     }

  //check
    chk(buf);
    
    if (point == 0){
      printf(“No”);
    } else {
      printf(“Yes”);
    }
    return 0;
}


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

#include <iostream>
#include <vector>
#include <math.h>
#include <algorithm>
using namespace std;

int main()
{
    int N;
    cin >>N;
    vector <vector<int> arr[N][2];
    for(int i=0;i<arr.size();++i)
    {
        int a,b;
        cin >>a >>b;
        arr[i][0]=a;
        arr[i][1]=b;
    }
    bool flag = false;
    for(int i=0;i<arr.size()-3;++i)
    {
        if(arr[i][0]==arr[i][1]&&arr[i+!][0]==arr[i+!][1]&&arr[i+2][0]==arr[i+2][1]&&)
        {
            flag =true;
        }
    }
    if(flag)
    {
        cout <<"Yes" <<endl;
    }else{
        cout <<"No" <<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: template argument 1 is invalid
   11 |     vector <vector<int> arr[N][2];
      |                                 ^
a.cc:11:33: error: template argument 2 is invalid
a.cc:12:19: error: 'arr' was not declared in this scope
   12 |     for(int i=0;i<arr.size();++i)
      |                   ^~~
a.cc:20:19: error: 'arr' was not declared in this scope
   20 |     for(int i=0;i<arr.size()-3;++i)
      |                   ^~~
a.cc:22:41: error: expected primary-expression before ']' token
   22 |         if(arr[i][0]==arr[i][1]&&arr[i+!][0]==arr[i+!][1]&&arr[i+2][0]==arr[i+2][1]&&)
      |                                         ^
a.cc:22:54: error: expected primary-expression before ']' token
   22 |         if(arr[i][0]==arr[i][1]&&arr[i+!][0]==arr[i+!][1]&&arr[i+2][0]==arr[i+2][1]&&)
      |                                                      ^
a.cc:22:86: error: expected primary-expression before ')' token
   22 |         if(arr[i][0]==arr[i][1]&&arr[i+!][0]==arr[i+!][1]&&arr[i+2][0]==arr[i+2][1]&&)
      |                                                                                      ^
Language: C++

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

int main(){
  int a,c;
 vector<int>b(a)
 for(int i=0 i<a×2;i++ ){
  cin>>b[i];
 }
 for(int i=0; i<a;i+2){
 if(b[i]==b[i+1]){
　c++;
　}
　}
　if(c=>3){
 cout<<"Yes"<<endl;
 }
 else{
 cout<<"No"<<endl;
 }
return 0
}

Compiler output:
a.cc:9:16: error: extended character × is not valid in an identifier
    9 |  for(int i=0 i<a×2;i++ ){
      |                ^
a.cc:14:1: error: extended character 　 is not valid in an identifier
   14 | 　c++;
      | ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
   15 | 　}
      | ^
a.cc:16:1: error: extended character 　 is not valid in an identifier
   16 | 　}
      | ^
a.cc:17:1: error: extended character 　 is not valid in an identifier
   17 | 　if(c=>3){
      | ^
a.cc: In function 'int main()':
a.cc:9:2: error: expected ',' or ';' before 'for'
    9 |  for(int i=0 i<a×2;i++ ){
      |  ^~~
a.cc:9:20: error: 'i' was not declared in this scope
    9 |  for(int i=0 i<a×2;i++ ){
      |                    ^
a.cc:14:1: error: '\U00003000c' was not declared in this scope
   14 | 　c++;
      | ^~~
a.cc:15:1: error: '\U00003000' was not declared in this scope
   15 | 　}
      | ^~
a.cc:16:1: error: '\U00003000' was not declared in this scope
   16 | 　}
      | ^~
a.cc:17:8: error: expected primary-expression before '>' token
   17 | 　if(c=>3){
      |        ^
a.cc:17:1: error: '\U00003000if' was not declared in this scope
   17 | 　if(c=>3){
      | ^~~~
a.cc:20:2: error: 'else' without a previous 'if'
   20 |  else{
      |  ^~~~
a.cc:23:9: error: expected ';' before '}' token
   23 | return 0
      |         ^
      |         ;
   24 | }
      | ~
Language: C++

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



int main() {
   
int n;
cin>>n;
int a,b,c=0;
while(n>0 && c<=3)
   
        cin>>a>>b;
        
       if(a==b){
        c++;
       }
       else
       {c=0;}
  
    n--;
}

if(c==3)
   {
   cout<<"Yes";}
    
    else
    {cout<<"No";}

    return 0;}


Compiler output:
a.cc:24:1: error: expected unqualified-id before 'if'
   24 | if(c==3)
      | ^~
a.cc:28:5: error: expected unqualified-id before 'else'
   28 |     else
      |     ^~~~
a.cc:31:5: error: expected unqualified-id before 'return'
   31 |     return 0;}
      |     ^~~~~~
a.cc:31:14: error: expected declaration before '}' token
   31 |     return 0;}
      |              ^
Language: C

#include <iostream>
#include <stdio.h>

 int n = 0;
 char *buf = 0;
 int point = 0;

int chk( int *buf ){
  int dice0 = 2*buf[0];
  int dice1, dice2 = 0;
  
  for( int i = 0; i<dice0 ; i++){
    dice1 = buf[i];
    dice2 = buf[i+1];
    if ( dice1 == dice2 ){
      point++;
    }
  }
  return point;
}


int main(void){
  //input
    for ( int i = 0; i<n ; i++){
       scanf(“&n”, %d);
       buf[i]=n;
     }

  //check
    chk(buf);
    
    if (point == 0){
      printf(“No”);
    } else {
      printf(“Yes”);
    }
    return 0;
}

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

#include <stdio.h>

 int n = 0;
 char *buf = 0;
 int point = 0;

int chk( int *buf ){
  int dice0 = 2*buf[0];
  int dice1, dice2 = 0;
  
  for( int i = 0; i<dice0 ; i++){
    dice1 = buf[i];
    dice2 = buf[i+1];
    if ( dice1 == dice2 ){
      point++;
    }
  }
  return point;
}


int main(void){
  //input
  int end = 3;

  for ( int i = 0; i<end ; i++){
     scanf(“n”, %d);
     if( i==0 ){
       end = n;
       continue;
     }
     buf[i]=n;
  }

  //check
    chk(*buf);
    
    if (point == 0){
      printf(“No”);
    } else {
      printf(“Yes”);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:12: error: stray '\342' in program
   27 |      scanf(<U+201C>n<U+201D>, %d);
      |            ^~~~~~~~
main.c:27:14: error: stray '\342' in program
   27 |      scanf(<U+201C>n<U+201D>, %d);
      |                     ^~~~~~~~
main.c:27:17: error: expected expression before '%' token
   27 |      scanf(“n”, %d);
      |                 ^
main.c:27:13: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
   27 |      scanf(“n”, %d);
      |             ^
      |             |
      |             int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:36:9: error: passing argument 1 of 'chk' makes pointer from integer without a cast [-Wint-conversion]
   36 |     chk(*buf);
      |         ^~~~
      |         |
      |         char
main.c:7:15: note: expected 'int *' but argument is of type 'char'
    7 | int chk( int *buf ){
      |          ~~~~~^~~
main.c:39:14: error: stray '\342' in program
   39 |       printf(<U+201C>No<U+201D>);
      |              ^~~~~~~~
main.c:39:17: error: stray '\342' in program
   39 |       printf(<U+201C>No<U+201D>);
      |                        ^~~~~~~~
main.c:39:15: error: 'No' undeclared (first use in this function)
   39 |       printf(“No”);
      |               ^~
main.c:39:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:41:14: error: stray '\342' in program
   41 |       printf(<U+201C>Yes<U+201D>);
      |              ^~~~~~~~
main.c:41:18: error: stray '\342' in program
   41 |       printf(<U+201C>Yes<U+201D>);
      |                         ^~~~~~~~
main.c:41:15: error: 'Yes' undeclared (first use in this function)
   41 |       printf(“Yes”);
      |               ^~~
Language: C++

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



int main() {
  int N;
  cin >> N;
  vector<int> dice;

 for (int i = 0; i < 2*N; i++) {
    cin >> dice.at(i);
  }
  
  for (int i=0;i<2*N;i+=6){
    if(dice.at(i)==dice.at(i+1)||dice.at(i+2)==dice.at(i+1)||dice.at(i+2)==dice.at(i+3)||dice.at(i)==dice.at(i+3)||dice.at(i+4)==dice.at(i+3)||dice.at(i+4)==dice.at(i+5))
  {cout<<"Yes"<<endl;}
  else {cout<<"No"<<endl;}
  return o;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: 'o' was not declared in this scope
   19 |   return o;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int t;
    cin >> t;
    int ans = 0;
    for (int  i = 1; i < t; i++)
    {
        int x;
        x = t - i;

        ans += countDivisors(x) ;
     }
     cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: 'countDivisors' was not declared in this scope
   13 |         ans += countDivisors(x) ;
      |                ^~~~~~~~~~~~~
Language: C++

int main()
{
    io_file();
    fio;
    int t;
    cin >> t;
    int ans = 0;
    for (int  i = 1; i < t; i++)
    {
        int x;
        x = t - i;

        ans += countDivisors(x) ;
     }
     cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'io_file' was not declared in this scope
    3 |     io_file();
      |     ^~~~~~~
a.cc:4:5: error: 'fio' was not declared in this scope
    4 |     fio;
      |     ^~~
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> t;
      |     ^~~
a.cc:13:16: error: 'countDivisors' was not declared in this scope
   13 |         ans += countDivisors(x) ;
      |                ^~~~~~~~~~~~~
a.cc:15:6: error: 'cout' was not declared in this scope
   15 |      cout<<ans<<endl;
      |      ^~~~
a.cc:15:17: error: 'endl' was not declared in this scope
   15 |      cout<<ans<<endl;
      |                 ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main()
{
	int arr1[100];
	int arr2[100];
	int count =0;
	
	int n;
	cin>>n;
	
	for(int i=0;i<n;i++)
	{
		cin>> arr1[i] >> arr2[i];
		if (arr1[i] == arr2[i]
		{
			count++;
		}

	}
   if(count>=3)
   {
   	cout<<"Yes\n";
   }
   else{
   	cout<<"No\n";
}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:39: error: expected ')' before '{' token
   17 |                 if (arr1[i] == arr2[i]
      |                    ~                  ^
      |                                       )
   18 |                 {
      |                 ~                      
a.cc:22:9: error: expected primary-expression before '}' token
   22 |         }
      |         ^
Language: C++

//遶ｶ謚繝励Ο繧ｰ繝ｩ繝溘Φ繧ｰ逕ｨ縺ｮ繝・Φ繝励Ξ繝ｼ繝・#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <queue>
#include <string>
#include <math.h>
#include <stack>
#include <limits>

#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define repr(i, n) for(int i = n - 1; i >= 0; i--)

using namespace std;
//繧ｨ繧､繝ｪ繧｢繧ｹ
using ll = long long int;
using p = pair<int, int>;
using pl = pair<ll, ll>;
using v = vector<int>;
using vd = vector<double>;
using vs = vector<string>;
using vl = vector<ll>;

//螳壽焚
const int intmax = numeric_limits<int>::max();
const ll llmax = numeric_limits<ll>::max();
const ll mod = 1e9 + 7;
const double pi = M_PI;

int main()
{
  int n;
  cin >> n;
  v d1(n, 0);
  v d2(n, 0);
  rep(i, n) {
    cin >> d1[i] >> d2[i];
  }
  rep(i, n - 2) {
    if (d1[i] == d2[i] && d1[i + 1] == d2[i + 1] && d1[i + 2] == d2[i + 2]) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:3: error: 'cin' was not declared in this scope
   33 |   cin >> n;
      |   ^~~
a.cc:9:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    8 | #include <stack>
  +++ |+#include <iostream>
    9 | #include <limits>
a.cc:41:7: error: 'cout' was not declared in this scope
   41 |       cout << "Yes" << endl;
      |       ^~~~
a.cc:41:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:41:24: error: 'endl' was not declared in this scope
   41 |       cout << "Yes" << endl;
      |                        ^~~~
a.cc:9:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    8 | #include <stack>
  +++ |+#include <ostream>
    9 | #include <limits>
a.cc:45:3: error: 'cout' was not declared in this scope
   45 |   cout << "No" << endl;
      |   ^~~~
a.cc:45:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:45:19: error: 'endl' was not declared in this scope
   45 |   cout << "No" << endl;
      |                   ^~~~
a.cc:45:19: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

$n = gets.chomp.to_i
$ans = 0
$cur = 0
$n.times do |i|
  a = gets.split(" ")
  i0 = a[0].to_i
  i1 = a[1].to_i
  if i0 == i1 
    $cur += 1
  else
    if $cur > $ans 
      $ans = $cur 
    end
    $cur = 0
  end
end

if $cur > $ans 
  $ans = $cur 
end

if $ans > 2
  print "Yes"
else
  print "No"
end

Compiler output:
a.cc:1:1: error: '$n' does not name a type
    1 | $n = gets.chomp.to_i
      | ^~
Language: C++

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

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

    int tmp[i][2];
    String ans = "No";

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


    for (int i = 0; i < N; i++){
         if(tmp[i][0] == tmp[i][1]){
                     if(tmp[i+1][0] == tmp[i+1][1]){
                                  if(tmp[i+2][0] == tmp[i+2][1]){
                                      ans = "Yes";
                                  }
                     }
        }
    }
        cout << ans;
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'i' was not declared in this scope
    9 |     int tmp[i][2];
      |             ^
a.cc:10:5: error: 'String' was not declared in this scope
   10 |     String ans = "No";
      |     ^~~~~~
a.cc:14:18: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   14 |           cin >> tmp[i][j];
      |                  ^~~
      |                  tm
a.cc:20:13: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   20 |          if(tmp[i][0] == tmp[i][1]){
      |             ^~~
      |             tm
a.cc:23:39: error: 'ans' was not declared in this scope; did you mean 'abs'?
   23 |                                       ans = "Yes";
      |                                       ^~~
      |                                       abs
a.cc:28:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   28 |         cout << ans;
      |                 ^~~
      |                 abs
Language: C++

#include <iostream>

using namespace std;

int main()
{
  int N;
  cin >> N;
  int dice[5][2] = {}; // 2-D Array or Multi-dimensional Array

  for (int i = 1; i <= 6; i++)
  {
    for (int j = 1; j <= 6; j++)
    {
      if (dice == i)
      cout << "Yes";
      else if (dice == i)
      cout << "No";
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |       if (dice == i)
      |           ~~~~~^~~~
a.cc:17:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |       else if (dice == i)
      |                ~~~~~^~~~
Language: C

#include<stdio.h>

int main(void){

  int  N,i;

  int D1[100];

  int D2[100];

  scanf("%d",&N);

  int A=0;

for(i=1,i<=N+1,i++;){

  scanf("%d %d",&D1[i],&D2[i]);

  if(D1[i]==D2[i]){

  A=A++;

  }

}

if(A >= 3){

    printf("Yes");

    return 0;

  }

else{

    printf("No");

    return 0;

  }

}

Compiler output:
main.c: In function 'main':
main.c:15:20: error: expected expression before ')' token
   15 | for(i=1,i<=N+1,i++;){
      |                    ^
Language: C++

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



int main() {
  int N;
  cin >> N;
  vector<int> dice;

 for (int i = 0; i < 2*N; i++) {
    cin >> dice.at(i);
  }
  
  for (int i=0;i<2*N;i+=6;){
    if(dice.at(i)==dice.at(i+1)==dice.at(i+2)==dice.at(i+3)==dice.at(i+4)==dice.at(i+5))
  {cout<<"Yes"<<endl;}
  else {cout<<"No"<<endl;}
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:26: error: expected ')' before ';' token
   15 |   for (int i=0;i<2*N;i+=6;){
      |       ~                  ^
      |                          )
a.cc:15:27: error: expected primary-expression before ')' token
   15 |   for (int i=0;i<2*N;i+=6;){
      |                           ^
Language: C

#include<stdio.h>

int main(void){

  int  N,i;
  int D1[100];
  int D2[100];

  scanf("%d",N);

  int A=0;

for(i=1,i<=N+1,i++){

  scanf("%d %d",D1[i],D2[i]);

  if(D1[i]==D2[i]){

  A=A++;

  }

}

if(A >= 3){

    printf("Yes");

    return 0;

  }

else{

    printf("No");

    return 0;

  }

}

Compiler output:
main.c: In function 'main':
main.c:13:19: error: expected ';' before ')' token
   13 | for(i=1,i<=N+1,i++){
      |                   ^
      |                   ;
main.c:13:19: error: expected expression before ')' token
Language: C++

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



int main() {
  int N;
  cin >> N;
  vector<int> dice;

 for (int i = 0; i < 2*N; i++) {
    cin >> dice.at(i);
  }
  
  for (int i=o;i<2*N;i+=;){
    if(dice.at(i)==dice.at(i+1)==dice.at(i+2)==dice.at(i+3)==dice.at(i+4)==dice.at(i+5))
  {cout<<"Yes"<<endl;}
  else {cout<<"No"<<endl;}
  }
}

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

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



int main() {
  int N;
  cin >> N;
  vector<int> dice;

 for (int i = 0; i < 2*N; i++) {
    cin >> dice.at(i);
  }
  }
  for(int i=o;i<2*N;i+=;){
    if(dice.at(i)==dice.at(i+1)==dice.at(i+2)==dice.at(i+3)==dice.at(i+4)==dice.at(i+5))
  {cout<<"Yes"<<endl;}
  else {cout<<"No"<<endl;}
  }

Compiler output:
a.cc:15:3: error: expected unqualified-id before 'for'
   15 |   for(int i=o;i<2*N;i+=;){
      |   ^~~
a.cc:15:15: error: 'i' does not name a type
   15 |   for(int i=o;i<2*N;i+=;){
      |               ^
a.cc:15:21: error: 'i' does not name a type
   15 |   for(int i=o;i<2*N;i+=;){
      |                     ^
a.cc:15:25: error: expected unqualified-id before ')' token
   15 |   for(int i=o;i<2*N;i+=;){
      |                         ^
Language: C++

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

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

    int tmp[i][2];
    String ans = "No";

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


    for (int i = 0; i < N; i++){
              for (int j = 0; j < 2; j++){
         if(tmp[i][0] == tmp[i][1]){
                     if(tmp[i+1][0] == tmp[i+1][1]){
                                  if(tmp[i+2][0] == tmp[i+2][1]){
                                      ans = "Yes";
                                  }
                     }
        }
              }
    }
        cout << ans;
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'i' was not declared in this scope
    8 |     int tmp[i][2];
      |             ^
a.cc:9:5: error: 'String' was not declared in this scope
    9 |     String ans = "No";
      |     ^~~~~~
a.cc:13:18: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   13 |           cin >> tmp[i][j];
      |                  ^~~
      |                  tm
a.cc:20:13: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   20 |          if(tmp[i][0] == tmp[i][1]){
      |             ^~~
      |             tm
a.cc:23:39: error: 'ans' was not declared in this scope; did you mean 'abs'?
   23 |                                       ans = "Yes";
      |                                       ^~~
      |                                       abs
a.cc:29:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   29 |         cout << ans;
      |                 ^~~
      |                 abs
Language: C++

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

int main() {

  int a, i, j;
  cin >> a;
  int b[j][a], c[j][a];
for(i=0; i<a; ++i) {
  for(j = 0; j<2; ++j) {
    cin >> b[j][i];
    if(b[0][i]==b[1][i]) {
      c[i]==1;
    } else { c[i]==0; }
    if(c[j][i]==1 && c[j][i+1]==1 && c[j][i+2]==1) {
cout << "Yes" << endl;
    } else { cout << "No" << endl; }
  }
}
}
      
  
  
  



Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |       c[i]==1;
      |       ~~~~^~~
Language: C++

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



int main() {
  int N;
  cin >> N;
  vector<int> dice;

 for (int i = 0; i < N; i++) {
    cin >> dice.at(i);
  }
  }
  for(int i=o;i,N;i+=6){
    if(dice.at(i)=dice.at(i+1)dice.at(i+2)=dice.at(i+3)dice.at(i+4)=dice.at(i+5))
  {cout<<"Yes"<<endl;}
  else {cout<<"No"<<endl;}
  }

Compiler output:
a.cc:15:3: error: expected unqualified-id before 'for'
   15 |   for(int i=o;i,N;i+=6){
      |   ^~~
a.cc:15:15: error: 'i' does not name a type
   15 |   for(int i=o;i,N;i+=6){
      |               ^
a.cc:15:19: error: 'i' does not name a type
   15 |   for(int i=o;i,N;i+=6){
      |                   ^
Language: C

#include<stdio.h>
int main(void){
  int  N,i,D1[100],D2[100];
  scanf("%d",N);
  int A=0;

for(i=0,i<=N-1,i++){
  scanf("%d %d",D1[i],D2[i]);
  if(D1[i]==D2[i]){
  A=A++;
  }
}

if(A >= 3){
    printf("Yes");
    return 0;
  }
else{
    printf("No");
    return 0;
  }
}

Compiler output:
main.c: In function 'main':
main.c:7:19: error: expected ';' before ')' token
    7 | for(i=0,i<=N-1,i++){
      |                   ^
      |                   ;
main.c:7:19: error: expected expression before ')' token
Language: C++

#include<bits//stdc++.h>
using namespace std;
  int main()
  {
    int n;
    int count=0;
    int f=0;
    cin>>n;
    int A[n],B[n];
    for(int i=0;i<n;i++)
        {
          cin>>A[i]>>B[I];
        }
    for(int i=0;i<n;i++)
    {
      if(A[i]==b[i])
      {
        count++;
      }
    }
    if(count>3)
    {
      f=1;
    }
    else
    {
      f=0;
    }
    if(f==1)
    {
      cout<<"Yes";
    }
    else
    {
      cout<<"No";
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: 'I' was not declared in this scope
   12 |           cin>>A[i]>>B[I];
      |                        ^
a.cc:16:16: error: 'b' was not declared in this scope
   16 |       if(A[i]==b[i])
      |                ^
Language: C++

#include<bits//stdc++.h>
using namespace std;
  int main()
  {
    int n;
    int count=0;
    int f=0;
    cin>>n;
    int A[n],B[n];
    for(int i=0;i<n;i++)
        {
          cin>>A[i]>>B[I];
        }
    for(i=0;i<n;i++)
    {
      if(A[i]==b[i])
      {
        count++;
      }
    }
    if(count>3)
    {
      f=1;
    }
    else
    {
      f=0;
    }
    if(f==1)
    {
      cout<<"Yes";
    }
    else
    {
      cout<<"No";
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: 'I' was not declared in this scope
   12 |           cin>>A[i]>>B[I];
      |                        ^
a.cc:14:9: error: 'i' was not declared in this scope
   14 |     for(i=0;i<n;i++)
      |         ^
a.cc:16:16: error: 'b' was not declared in this scope
   16 |       if(A[i]==b[i])
      |                ^
Language: C++

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

int main() {
    int N,tmp[i][2];
    cin >> N;
    String ans = "No";
    for (int i = 0; i < N; i++){
      for (int j = 0; j < 2; j++){
          cin >> tmp[i][j];
      }
    }
    for (int i = 0; i < N; i++){
         if(tmp[i][0] == tmp[i][1]){
                     if(tmp[i+1][0] == tmp[i+1][1]){
                                  if(tmp[i+2][0] == tmp[i+2][1]){
                                      ans = "Yes";
                                  }
                     }
        }
    }
        cout << ans;
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'i' was not declared in this scope
    5 |     int N,tmp[i][2];
      |               ^
a.cc:7:5: error: 'String' was not declared in this scope
    7 |     String ans = "No";
      |     ^~~~~~
a.cc:10:18: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   10 |           cin >> tmp[i][j];
      |                  ^~~
      |                  tm
a.cc:14:13: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   14 |          if(tmp[i][0] == tmp[i][1]){
      |             ^~~
      |             tm
a.cc:17:39: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |                                       ans = "Yes";
      |                                       ^~~
      |                                       abs
a.cc:22:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |         cout << ans;
      |                 ^~~
      |                 abs
Language: C++

#include <iostream>
using namespace std;

int main() {
    int N,tmp[i][2];
    cin >> N;
    String ans = "No";
    for (int i = 0; i < N; i++){
      for (int j = 0; j < 2; j++){
          cin >> tmp[i][j];
      }
    }
    for (int i = 0; i < N; i++){
         if(tmp[i][0] == tmp[i][1]){
                     if(tmp[i+1][0] == tmp[i+1][1]){
                                  if(tmp[i+2][0] == tmp[i+2][1]){
                                      ans = "Yes";
                                  }
                     }
        }
    }
        cout << ans;
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'i' was not declared in this scope
    5 |     int N,tmp[i][2];
      |               ^
a.cc:7:5: error: 'String' was not declared in this scope
    7 |     String ans = "No";
      |     ^~~~~~
a.cc:10:18: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   10 |           cin >> tmp[i][j];
      |                  ^~~
      |                  tm
a.cc:14:13: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   14 |          if(tmp[i][0] == tmp[i][1]){
      |             ^~~
      |             tm
a.cc:17:39: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |                                       ans = "Yes";
      |                                       ^~~
      |                                       abs
a.cc:22:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |         cout << ans;
      |                 ^~~
      |                 abs
Language: C++

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

int main() {

  int a, i, j;
  cin >> a;
  int b[j][a],c[j][a] 
for(i=0; i<a; ++i) {
  for(j = 0; j<2; ++j) {
    cin >> b[j][i];
    if(b[0][i]==b[1][i]) {
      c[j][i]==1;
    } else { c[j][i]==0; }
    if(c[j][i]==1 && c[j][i+1]==1 && c[j][i+2]==1) {
cout << "Yes" << endl;
    } else { cout << "No" << endl; }
  }
}
}
      
  
  
  



Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: expected initializer before 'for'
    9 | for(i=0; i<a; ++i) {
      | ^~~
a.cc:9:18: error: expected ';' before ')' token
    9 | for(i=0; i<a; ++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++)
   {
     k=0;
     for(j=i;j<(i+3);j++)
     {
       if(d[i]!=m[i])
       {
         k=1;break;
       }
     }
     if(k==0)
     {
       cout <<"YES";c=1;break;}
   }
  if(c==0)
    cout <<"NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: 'j' was not declared in this scope
   18 |      for(j=i;j<(i+3);j++)
      |          ^
Language: C++

#include <iostream>
using namespace std;

int main() {
    int N,tmp[i][2];
    cin >> N;
    String ans = "No";
    for (int i = 0; i < N; i++){
      for (int j = 0; j < 2; j++){
          cin >> tmp[i][j];
      }
               if(tmp[i][0] == tmp[i][1]){
                     if(tmp[i+1][0] == tmp[i+1][1]){
                                  if(tmp[i+2][0] == tmp[i+2][1]){
                                      ans = "Yes";
                                  }
                     }
        }
    }

        cout << ans;
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'i' was not declared in this scope
    5 |     int N,tmp[i][2];
      |               ^
a.cc:7:5: error: 'String' was not declared in this scope
    7 |     String ans = "No";
      |     ^~~~~~
a.cc:10:18: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   10 |           cin >> tmp[i][j];
      |                  ^~~
      |                  tm
a.cc:12:19: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   12 |                if(tmp[i][0] == tmp[i][1]){
      |                   ^~~
      |                   tm
a.cc:15:39: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |                                       ans = "Yes";
      |                                       ^~~
      |                                       abs
a.cc:21:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |         cout << ans;
      |                 ^~~
      |                 abs
Language: C++

#include<bitsc++//stdc++.h>
using namespace std;
  int main()
  {
    int n;
    int count=0;
    int f=0;
    cin>>n;
    int A[n]B[n];
    for(int i=0;i<n;i++)
        {
          cin>>A[i]>>B[I];
        }
    for(i=0;i<n;i++)
    {
      if(A[i]==b[i])
      {
        count++;
      }
    }
    if(count>3)
    {
      f=1;
    }
    else
    {
      f=0;
    }
    if(f==1)
    {
      cout<<"Yes";
    }
    else
    {
      cout<<"No";
    }
  }
        
        
    

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

#include <bits/stdc++.h>

 using namespace std;

int main () 
{
  int n;
  cin>>n;
  bool a[3]={false};
  int k=0;
  int i=0;
  int flag=0;
  while(n--)
  {
    int a,b;
    cin>>a>>b;
   
   i++;
    if(a==b )
    {
      count++;
    }
    
    
    if(count!=i)
    {
      i=0;
      count=0;
     
    }
    if(count==i && count==3)
    {
      flag=1;
    }
    
  }

  if(flag==1)
    cout<<"Yes";
  else
    coout<<"No";
return 0;

 
}




Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: no post-increment operator for type
   21 |       count++;
      |            ^~
a.cc:25:13: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator!='
   25 |     if(count!=i)
      |        ~~~~~^~~
a.cc:28:13: error: overloaded function with no contextual type information
   28 |       count=0;
      |             ^
a.cc:31:13: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   31 |     if(count==i && count==3)
      |        ~~~~~^~~
a.cc:31:25: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   31 |     if(count==i && count==3)
      |                    ~~~~~^~~
a.cc:41:5: error: 'coout' was not declared in this scope
   41 |     coout<<"No";
      |     ^~~~~
Language: C++

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



int main() {
   ios_base::sync_with_stdio(false);
    cin.tie(NULL);
      cout.tie(NULL);
int n;
cin>>n;
int a[n][2];
for(int i=0;i<n;i++){
    for(int j=0;j<2;j++){
        cin>>a[i][j];
    }
}
int c=0;
for(int i=0;i<n;i++ &&c<=3){
   if(a[i][0]==a[i][1]){
    c++;
   }
   else
    c=0;
   
}
if(c==3)
    cout<<"Yes";
    
    else
    cout<<"No";

    return 0;


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

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



int main() {
   ios_base::sync_with_stdio(false);
    cin.tie(NULL);
      cout.tie(NULL);
int n;
cin>>n;
int a[n][2];
for(int i=0;i<n;i++){
    for(int j=0;j<2;j++){
        cin>>a[i][j];
    }
}
int c=0;
for(int i=0;i<n;i++ &&c<=3){
   if(a[i][0]==a[i][1]){
    c++;
   }
   else
    c=0;
   
}
if(c==3)
    cout<<"Yes"
    
    else
    cout<<"No";

      return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:16: error: expected ';' before 'else'
   28 |     cout<<"Yes"
      |                ^
      |                ;
   29 | 
   30 |     else
      |     ~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
    int N,tmp[i][2];
    cin >> N;
    String ans = "No";
    for (int i = 0; i < N; i++)
     {
      for (int j = 0; j < 2; j++)
      {
          cin >> tmp[i][j];
      }
 }
         if(tmp[i][0] == tmp[i][1]){
                     if(tmp[i+1][0] == tmp[i+1][1]){
                                  if(tmp[i+2][0] == tmp[i+2][1]){
                                      ans = "Yes";
                                  }
                     }
        }
        cout << ans;
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'i' was not declared in this scope
    5 |     int N,tmp[i][2];
      |               ^
a.cc:7:5: error: 'String' was not declared in this scope
    7 |     String ans = "No";
      |     ^~~~~~
a.cc:12:18: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   12 |           cin >> tmp[i][j];
      |                  ^~~
      |                  tm
a.cc:15:13: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   15 |          if(tmp[i][0] == tmp[i][1]){
      |             ^~~
      |             tm
a.cc:18:39: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |                                       ans = "Yes";
      |                                       ^~~
      |                                       abs
a.cc:22:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |         cout << ans;
      |                 ^~~
      |                 abs
Language: C

#include <stdio.h>
 
int main(void){
  
    int count;
    int i,j,k,n;
    int num[count][2];
  
    n=0;
    
    
    scanf("%d\n",&count);
    
    for(i=0;i<5;i+=1){
      
        for(j=0;j<2;j+=1){
          
            scanf("%s\n",&(num[i][j]));
          
        }
    }
  
    for(k=0;k<coun-2;k+=1){
        
        if(num[k][1] == num[k][2] && num[k+1][1] == num[k+1][2] && num[k+2][1] == num[k+2][2]){
           
            printf("Yes");
            n=1;
            break;
        
        }
    }
    
    if(n=0){
        printf("No");
    }
  
    return 0;
}
           
      
   
          
           
           


Compiler output:
main.c: In function 'main':
main.c:23:15: error: 'coun' undeclared (first use in this function); did you mean 'count'?
   23 |     for(k=0;k<coun-2;k+=1){
      |               ^~~~
      |               count
main.c:23:15: note: each undeclared identifier is reported only once for each function it appears in