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

#include<stdio.h>
int main(){
	char c[5];
	if ((c[0] == c[1]) && (c[1] == c[2])){
		printf("Yes\n");
	} else if ((c[1] == c[2]) && (c[2] == c[3])) {
		printf("Yes\n");
	} else { 
		printf("No\n");
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:11:1: error: expected declaration or statement at end of input
   11 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>
int main(){
	char c[5];
	if(c[0] == c[1] && c[1] == c[2]){
		printf("Yes\n");
	} else if(c[1] == c[2] && c[2] == c[3]) {
		printf("Yes\n");
	} else { 
		printf("No\n");
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:11:1: error: expected declaration or statement at end of input
   11 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>
int main(){
	char c[5];
	if(c[0] == c[1] && c[1] == c[2]){
		printf("Yes\n");
	} elseif(c[1] == c[2] && c[2] == c[3]) {
		printf("Yes\n");
	} else { 
		printf("No\n");
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:6:11: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    6 |         } elseif(c[1] == c[2] && c[2] == c[3]) {
      |           ^~~~~~
main.c:6:47: error: expected ';' before '{' token
    6 |         } elseif(c[1] == c[2] && c[2] == c[3]) {
      |                                               ^~
      |                                               ;
main.c:11:1: error: expected declaration or statement at end of input
   11 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>
int main(){
	char c[5];
	if(c[0]==c[1] && c[1]==c[2]){
		printf("Yes\n")
	} elseif(c[1]==c[2] && c[2]==c[3]) {
		printf("Yes\n")
	} else { 
		printf("No\n")
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:5:32: error: expected ';' before '}' token
    5 |                 printf("Yes\n")
      |                                ^
      |                                ;
    6 |         } elseif(c[1]==c[2] && c[2]==c[3]) {
      |         ~                       
main.c:6:11: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    6 |         } elseif(c[1]==c[2] && c[2]==c[3]) {
      |           ^~~~~~
main.c:6:43: error: expected ';' before '{' token
    6 |         } elseif(c[1]==c[2] && c[2]==c[3]) {
      |                                           ^~
      |                                           ;
main.c:11:1: error: expected declaration or statement at end of input
   11 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>
int main(){
	char c[5];
	if(c[0]==c[1] && c[1]==c[2]){
		printf("Yes\n")}
	elseif(c[1]==c[2] && c[2]==c[3]){
		printf("Yes\n")
	} else { 
		printf("No\n")}
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:5:32: error: expected ';' before '}' token
    5 |                 printf("Yes\n")}
      |                                ^
      |                                ;
main.c:6:9: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    6 |         elseif(c[1]==c[2] && c[2]==c[3]){
      |         ^~~~~~
main.c:6:41: error: expected ';' before '{' token
    6 |         elseif(c[1]==c[2] && c[2]==c[3]){
      |                                         ^
      |                                         ;
main.c: At top level:
main.c:11:1: error: expected identifier or '(' before 'return'
   11 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>
int main(){
	char c[5];
	if(c[0]==c[1]&&c[1]==c[2]){
		printf("Yes\n")}
	elseif(c[1]==c[2]&&c[2]==c[3]){
		printf("Yes\n")
	} else { 
		printf("No\n")}
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:5:32: error: expected ';' before '}' token
    5 |                 printf("Yes\n")}
      |                                ^
      |                                ;
main.c:6:9: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    6 |         elseif(c[1]==c[2]&&c[2]==c[3]){
      |         ^~~~~~
main.c:6:39: error: expected ';' before '{' token
    6 |         elseif(c[1]==c[2]&&c[2]==c[3]){
      |                                       ^
      |                                       ;
main.c: At top level:
main.c:11:1: error: expected identifier or '(' before 'return'
   11 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>
int main(){
	char c[s];
	if(c[0]==c[1]&&c[1]==c[2]){
		printf("Yes\n")}
	elseif(c[1]==c[2]&&c[2]==c[3]){
		printf("Yes\n")
	} else { 
		printf("No\n")}
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:3:16: error: 's' undeclared (first use in this function)
    3 |         char c[s];
      |                ^
main.c:3:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:32: error: expected ';' before '}' token
    5 |                 printf("Yes\n")}
      |                                ^
      |                                ;
main.c:6:9: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    6 |         elseif(c[1]==c[2]&&c[2]==c[3]){
      |         ^~~~~~
main.c:6:39: error: expected ';' before '{' token
    6 |         elseif(c[1]==c[2]&&c[2]==c[3]){
      |                                       ^
      |                                       ;
main.c: At top level:
main.c:11:1: error: expected identifier or '(' before 'return'
   11 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>
int main(){
	char c[s];
	if(c[0]==c[1]&&c[1]==c[2]);
		printf("Yes\n");
	elseif(c[1]==c[2]&&c[2]==c[3]);
		printf("Yes\n");
	else printf("No\n");
}
return 0

Compiler output:
main.c: In function 'main':
main.c:3:16: error: 's' undeclared (first use in this function)
    3 |         char c[s];
      |                ^
main.c:3:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    6 |         elseif(c[1]==c[2]&&c[2]==c[3]);
      |         ^~~~~~
main.c:8:9: error: 'else' without a previous 'if'
    8 |         else printf("No\n");
      |         ^~~~
main.c: At top level:
main.c:10:1: error: expected identifier or '(' before 'return'
   10 | return 0
      | ^~~~~~
Language: C++

#include<stdio.h>
int main(){
	char c[s];
	if(c[0]==c[1]&&c[1]==c[2])
		printf("Yes\n")
	elseif(c[1]==c[2]&&c[2]==c[3])
		printf("Yes\n")
	else
		printf("No\n")
}
return 0

Compiler output:
a.cc: In function 'int main()':
a.cc:3:16: error: 's' was not declared in this scope
    3 |         char c[s];
      |                ^
a.cc:4:12: error: 'c' was not declared in this scope
    4 |         if(c[0]==c[1]&&c[1]==c[2])
      |            ^
a.cc:5:32: error: expected ';' before 'elseif'
    5 |                 printf("Yes\n")
      |                                ^
      |                                ;
    6 |         elseif(c[1]==c[2]&&c[2]==c[3])
      |         ~~~~~~                  
a.cc: At global scope:
a.cc:11:1: error: expected unqualified-id before 'return'
   11 | return 0
      | ^~~~~~
Language: C++

#include<stdio.h>
#include<math.h>
int main(void)
{
	int N;
	int i;
	int count = 0;
	int number[4];
	scanf_s("%d", &N);
	for (i = 0; i < 4; i++)
	{
		number[i] = N % int(pow(10, i + 1)) / int(pow(10, i));
	}
	for (i = 0; i < 3; i++)
	{
		if (number[i] - number[3] == 0)
		{
			count++;
		}
	}
	if (count < 2)
	{
		for (i = 0, count = 0; i < 2; i++)
		{
			if (number[i] - number[2] == 0)
			{
				count++;
			}
		}
	}
	if (count >= 2)
	{
		printf("Yes");
	}
	else
	{
		printf("No");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |         scanf_s("%d", &N);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<stdio.h>
#include<math.h>
int main(void)
{
	int N;
	int i;
	int count = 0;
	int number[4];
	int amari[3];
	scanf_s("%d",&N);
	for (i = 0; i < 4; i++)
	{
		number[i] = N % int(pow(10, i + 1)) / int(pow(10, i));
	}
	for (i = 0; i < 3; i++)
	{
		if (number[i] - number[3] == 0)
		{
			count++;
		}
	}
	for (i = 0, count = 0; i < 2, count < 3; i++)
	{
		if (number[i] - number[2] == 0)
		{
			count++;
		}
	}
	if (count >= 3)
	{
		printf("Yes");
	}
	else
	{
		printf("No");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   10 |         scanf_s("%d",&N);
      |         ^~~~~~~
      |         scanf
Language: C

#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

#include "stdafx.h"

int main()
{
	int a, b, c, d;
	int N;
	scanf("%d",&N);
	//(1000 * a) + (100 * b) + (10 * c) + d == N;
	a = N / 1000;
	b = (N - (a * 1000)) / 100;
	c = (N - (a * 1000) - (b * 100)) / 10;
	d = N - (a * 1000) - (b * 100) - (c * 10);
	if (a == b&& b == c)
	{
		printf("Yes");

	}
	else if (b == c&& c == d)
	{
		printf("Yes");

	}
	else
	{
		printf("No");
	}
	return 0;
}



Compiler output:
main.c:5:10: fatal error: stdafx.h: No such file or directory
    5 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C



#define _CRT_SECURE_NO_WARNINGS


#include <stdio.h>

#include "stdafx.h"

int main()
{
	int a, b, c, d;
	int N;
	scanf("%d",&N);
	/*a = N / 1000;
	b = (N - (a*1000)) / 100;
	c = (N - (a * 1000) - (b * 100) )/ 10;
	d = N - (a * 1000) - (b * 100) - (c * 10);*/
	/*scanf("%d %d %d %d", &a, &b, &c, &d);
	*/
	//(1000 * a) + (100 * b) + (10 * c) + d == N;
	a = N / 1000;
	b = (N - (a * 1000)) / 100;
	c = (N - (a * 1000) - (b * 100)) / 10;
	d = N - (a * 1000) - (b * 100) - (c * 10);
	if (a == b&& b == c)
	{
		printf("Yes");

	}
	else if (b == c&& c == d)
	{
		printf("Yes");

	}
	else
	{
		printf("No");
	}
	return 0;
}



Compiler output:
main.c:8:10: fatal error: stdafx.h: No such file or directory
    8 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

// あいうえお.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#pragma once
#define _CRT_SECURE_NO_WARNINGS
#include "targetver.h"

#include <stdio.h>
#include <tchar.h>

#include "stdafx.h"

int main()
{
	int a, b, c, d;
	int N;
	scanf("%d",&N);
	/*a = N / 1000;
	b = (N - (a*1000)) / 100;
	c = (N - (a * 1000) - (b * 100) )/ 10;
	d = N - (a * 1000) - (b * 100) - (c * 10);*/
	/*scanf("%d %d %d %d", &a, &b, &c, &d);
	*/
	//(1000 * a) + (100 * b) + (10 * c) + d == N;
	a = N / 1000;
	b = (N - (a * 1000)) / 100;
	c = (N - (a * 1000) - (b * 100)) / 10;
	d = N - (a * 1000) - (b * 100) - (c * 10);
	if (a == b&& b == c)
	{
		printf("Yes");

	}
	else if (b == c&& c == d)
	{
		printf("Yes");

	}
	else
	{
		printf("No");
	}
	return 0;
}



Compiler output:
main.c:4:9: warning: #pragma once in main file
    4 | #pragma once
      |         ^~~~
main.c:6:10: fatal error: targetver.h: No such file or directory
    6 | #include "targetver.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C


#include "stdafx.h"

int main()
{
	int a, b, c, d;
	int N;
	scanf("%d",&N);
	/*a = N / 1000;
	b = (N - (a*1000)) / 100;
	c = (N - (a * 1000) - (b * 100) )/ 10;
	d = N - (a * 1000) - (b * 100) - (c * 10);*/
	/*scanf("%d %d %d %d", &a, &b, &c, &d);
	*/
	//(1000 * a) + (100 * b) + (10 * c) + d == N;
	a = N / 1000;
	b = (N - (a * 1000)) / 100;
	c = (N - (a * 1000) - (b * 100)) / 10;
	d = N - (a * 1000) - (b * 100) - (c * 10);
	if (a == b&& b == c)
	{
		printf("Yes");

	}
	else if (b == c&& c == d)
	{
		printf("Yes");

	}
	else
	{
		printf("No");
	}
	return 0;
}


Compiler output:
main.c:2:10: fatal error: stdafx.h: No such file or directory
    2 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++


#include "stdafx.h"

int main()
{
	int a, b, c, d;
	int N;
	scanf("%d",&N);
	/*a = N / 1000;
	b = (N - (a*1000)) / 100;
	c = (N - (a * 1000) - (b * 100) )/ 10;
	d = N - (a * 1000) - (b * 100) - (c * 10);*/
	/*scanf("%d %d %d %d", &a, &b, &c, &d);
	*/
	//(1000 * a) + (100 * b) + (10 * c) + d == N;
	a = N / 1000;
	b = (N - (a * 1000)) / 100;
	c = (N - (a * 1000) - (b * 100)) / 10;
	d = N - (a * 1000) - (b * 100) - (c * 10);
	if (a == b&& b == c)
	{
		printf("Yes");

	}
	else if (b == c&& c == d)
	{
		printf("Yes");

	}
	else
	{
		printf("No");
	}
	return 0;
}


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

int main(void){
    char n[5];
    scanf("%s",&n);
    if(n[0]==n[1]&&n[1]==n[2]){
        printf("Yes\n");
    }else if(n[1]==n[2]&&n[2]==n[3]){
        printf("Yes\n");
    }else{
        printf("No\n");
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'scanf' was not declared in this scope
    3 |     scanf("%s",&n);
      |     ^~~~~
a.cc:5:9: error: 'printf' was not declared in this scope
    5 |         printf("Yes\n");
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
a.cc:7:9: error: 'printf' was not declared in this scope
    7 |         printf("Yes\n");
      |         ^~~~~~
a.cc:7:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:9:9: error: 'printf' was not declared in this scope
    9 |         printf("No\n");
      |         ^~~~~~
a.cc:9:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#define <stdio.h>

int main(void)
{
	int i;

	scanf("%d", &i);

	if(i / 1000 && i / 100 && i / 10){
		printf("Yes");
	}else{
		printf("No");

return 0;

}

Compiler output:
a.cc:1:9: error: macro names must be identifiers
    1 | #define <stdio.h>
      |         ^
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf' was not declared in this scope
    7 |         scanf("%d", &i);
      |         ^~~~~
a.cc:10:17: error: 'printf' was not declared in this scope
   10 |                 printf("Yes");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #define <stdio.h>
a.cc:12:17: error: 'printf' was not declared in this scope
   12 |                 printf("No");
      |                 ^~~~~~
a.cc:12:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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

int main(){
	int a;
	cin >> a;
	vector<int> x{2,1,3};
	int Q;
	for (int i = 0; i < a; ++i){
		if(i>2){
			Q = x[i-1] + x[i-2];
			x.back_push(Q);
		}
	}
	int ans;
	ans = x[a-1];
	cout << ans << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: 'class std::vector<int>' has no member named 'back_push'
   13 |                         x.back_push(Q);
      |                           ^~~~~~~~~
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] num = br.readLine().trim().split("");
        if((num[0].equals(num[1]) && num[1].equals(num[2])) || (num[1].equals(num[2]) && num[2].equals(num[3]))){
            System.out.println("YES");
        }else {System.out.println("NO");}
}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] num = br.readLine().trim().split("");
        if((num[0].equals(num[1]) && num[1].equals(num[2])) || (num[1].equals(num[2]) && num[2].equals(num[3]))){
            System.out.println("YES");
        }else System.out.println("NO");
}

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

#include <iostream>

using namespace std;

signed main () {
  set <char> s;
  for (char c; cin >> c;) {
    s.insert(c);
    if ( s.count(c) >= 3) cout << "Yes";
  }
  cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'set' was not declared in this scope
    6 |   set <char> s;
      |   ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    1 | #include <iostream>
  +++ |+#include <set>
    2 | 
a.cc:6:8: error: expected primary-expression before 'char'
    6 |   set <char> s;
      |        ^~~~
a.cc:8:5: error: 's' was not declared in this scope
    8 |     s.insert(c);
      |     ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int a[10];

int main()
{
  
	int n;
  	cin >> n;
  	
  	while (n) {
    	++a[n % 10];
      	n /= 10;
    }
  
  	for (int i = 0; i < 10; ++i) {
      	if (a[i] >= 3) {
          	cout << "Yes"
        	return 0;
        }
    }
  
  	cout << "No";
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:30: error: expected ';' before 'return'
   20 |                 cout << "Yes"
      |                              ^
      |                              ;
   21 |                 return 0;
      |                 ~~~~~~
Language: C

#include <stdio.h>
int main(void)
{
    char N[5];
    scanf("%s",&N);

   if(s[0]==s[1]&&s[1]==s[2])
	{
     	printf("Yes\n");
    }
   else if(s[1]==s[2]&&s[2]==s[3])
    {
        printf("Yes\n");
    } 
   else 
   {
   	    printf("No\n");
   }
	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: 's' undeclared (first use in this function)
    7 |    if(s[0]==s[1]&&s[1]==s[2])
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <queue>
#include <vector>
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define PA pair<int,int>
#define PB push_back
#define PQ priority_queue<int>
#define PPQ priority_queue<int,vector<int>,greater<int> >
#define VE vector<int>
#define MOD 1000000007
using namespace std;
//
int N;
int main(){
  cin>>N;
  if(N%1000%111==0) cout<<Yes<<endl;
  else if(N/10%111==0) cout<<Yes<<endl;
  else cout<<No<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: 'Yes' was not declared in this scope
   19 |   if(N%1000%111==0) cout<<Yes<<endl;
      |                           ^~~
a.cc:20:30: error: 'Yes' was not declared in this scope
   20 |   else if(N/10%111==0) cout<<Yes<<endl;
      |                              ^~~
a.cc:21:14: error: 'No' was not declared in this scope; did you mean 'N'?
   21 |   else cout<<No<<endl;
      |              ^~
      |              N
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int N;
  cin >> N;
  if(N==1)
    {
      cout<<1;
      return 0;
    }
  else
    {
      int A[N+1];
      A[0]=2;
      int i;
      for(i==0;i++;i<N+1)
	{
	  if(i==0)
	    {
	      A[i+1]=A[i]+2
	    }

	  else
	    {
	      A[i+1]=A[i]+A[i-1]
	    }
	}
      cout<<A[N];
      return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:28: error: expected ';' before '}' token
   21 |               A[i+1]=A[i]+2
      |                            ^
      |                            ;
   22 |             }
      |             ~               
a.cc:26:33: error: expected ';' before '}' token
   26 |               A[i+1]=A[i]+A[i-1]
      |                                 ^
      |                                 ;
   27 |             }
      |             ~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int N;
  cin >> N;
  if(N==1)
    {
      cout<<1;
      return 0;
    }
  else
    {
      int A[N+1];
      A[0]=2
      for(i==0;i++;i<N+1)
	{
	  if(i==0)
	    {
	      A[i+1]=A[i]+2
	    }

	  else
	    {
	      A[i+1]=A[i]+A[i-1]
	    }
	}
      cout<<A[N];
      return 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: expected ';' before 'for'
   15 |       A[0]=2
      |             ^
      |             ;
   16 |       for(i==0;i++;i<N+1)
      |       ~~~    
a.cc:16:16: error: 'i' was not declared in this scope
   16 |       for(i==0;i++;i<N+1)
      |                ^
Language: Java

import java.io.*;
public class Main{
	public static void main(String args[])throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		int s1= Integer.parseInt(br.readLine();
		int s2= Integer.parseInt(br.readLine();
		int s3= Integer.parseInt(br.readLine();;
		int s4= Integer.parseInt(br.readLine();
		if(((s1==s2)&&(s2==s3))||((s2==s3)&&(s3==s4)))
			System.out.println("Yes");
		else
			System.out.println("No");
	}
}

Compiler output:
Main.java:6: error: ')' or ',' expected
		int s1= Integer.parseInt(br.readLine();
		                                      ^
Main.java:7: error: ')' or ',' expected
		int s2= Integer.parseInt(br.readLine();
		                                      ^
Main.java:8: error: ')' or ',' expected
		int s3= Integer.parseInt(br.readLine();;
		                                      ^
Main.java:9: error: ')' or ',' expected
		int s4= Integer.parseInt(br.readLine();
		                                      ^
4 errors
Language: Java

import java.io.*;
public class Exercise{
	public static void main(String args[])throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String s1= br.readLine();
		String s2= br.readLine();
		String s3= br.readLine();
		String s4= br.readLine();
		if(((s1==s2)&&(s2==s3))||((s2==s3)&&(s3==s4)))
			System.out.println("Yes");
		else
			System.out.println("No");
	}
}

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

N = input()
x = list(str(N))
if x[0]==x[1]==x[2]:
 print("Yes")
elif x[1]==x[2]==x[3]:
 print("Yes")
else:
 print("No")


Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N = input()
      | ^
Language: Java

import java.io.*;
public class abc079{
	public static void main(String args[])throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String s1= br.readLine();
		String s2= br.readLine();
		String s3= br.readLine();
		String s4= br.readLine();
		if((s1=s2=s3) || (s2=s3=s4))
			System.out.println("Yes");
		else
			System.out.println("No");
	}
}

Compiler output:
Main.java:2: error: class abc079 is public, should be declared in a file named abc079.java
public class abc079{
       ^
Main.java:10: error: bad operand types for binary operator '||'
		if((s1=s2=s3) || (s2=s3=s4))
		              ^
  first type:  String
  second type: String
2 errors
Language: Java

public class abc079{
	public static void main(String args[])throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String s1= br.readLine();
		String s2= br.readLine();
		String s3= br.readLine();
		String s4= br.readLine();
		if((s1=s2=s3) || (s2=s3=s4))
			System.out.println("Yes");
		else
			System.out.println("No");
	}
}

Compiler output:
Main.java:1: error: class abc079 is public, should be declared in a file named abc079.java
public class abc079{
       ^
Main.java:2: error: cannot find symbol
	public static void main(String args[])throws IOException{
	                                             ^
  symbol:   class IOException
  location: class abc079
Main.java:3: error: cannot find symbol
		InputStreamReader is = new InputStreamReader(System.in);
		^
  symbol:   class InputStreamReader
  location: class abc079
Main.java:3: error: cannot find symbol
		InputStreamReader is = new InputStreamReader(System.in);
		                           ^
  symbol:   class InputStreamReader
  location: class abc079
Main.java:4: error: cannot find symbol
		BufferedReader br = new BufferedReader(is);
		^
  symbol:   class BufferedReader
  location: class abc079
Main.java:4: error: cannot find symbol
		BufferedReader br = new BufferedReader(is);
		                        ^
  symbol:   class BufferedReader
  location: class abc079
Main.java:9: error: bad operand types for binary operator '||'
		if((s1=s2=s3) || (s2=s3=s4))
		              ^
  first type:  String
  second type: String
7 errors
Language: C++

#include<iostream>
#include<cstdio> 
#include<stdlib.h>
#include<string.h>
#include<algorithm>
#include<math.h>

#define MAXN 0x7fffffff
#define ll long long

using namespace std;

int m,n,i,j,k,p,q,l,flag=0;

int main(){
	char num[4];
	gets(num);
	if((num[0]==num[1] && num[1]==num[2]) || (num[1]==num[2] && num[2]==num[3])) printf("Yes.");
	else printf("No.");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   17 |         gets(num);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
	int n;
	char a[4];
	gets(a);
//	scanf("%d",&n);
//	a[0]=n/1000;
//	a[1]=n/100%10;
//	a[2]=n/10%10;
//	a[3]=n%10;
	
//	if(a[0]==a[1]&&a[0]==a[2]&&a[0]==a[3]){
//		printf("Yes\n");
//		return 0;
//	}
	if((a[0]==a[1]&&a[0]==a[2])||(a[1]==a[2]&&a[1]==a[3])){
		printf("Yes\n");
		return 0;
	}
//	if((a[1]==a[2]&&a[1]==a[3])){
//		printf("Yes\n");
//		return 0;
//	}
//	if((a[0]==a[3]&&a[0]==a[2])){
//		printf("Yes\n");
//		return 0;
//	}
//	if((a[3]==a[1]&&a[0]==a[3])){
//		printf("Yes\n");
//		return 0;
//	}
	printf("No\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(a);
      |         ^~~~
      |         getw
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class atcoder11_18 {

    public static void main(String[] args) throws IOException {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        String line = buffer.readLine();
        int x = Integer.parseInt(line);

        int mod1 = x % 10;
        int x1 = x / 10;
        int mod2 = x1 % 10;
        int x2 = x1 / 10;
        int mod3 = x2 % 10;
        int x3 = x2 / 10;
        int mod4 = x3 % 10;

        boolean flag = false;

        if (mod1 == mod2 && mod2 == mod3){
          flag = true;
        } else if (mod2 == mod3 && mod3 == mod4){
          flag = true;
        }

        if(flag){
          System.out.println("Yes");
        } else {
          System.out.println("No");
        }
    }

}


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

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

int main() {
	scanf("%s", A);
  
  	if ((A[0] == A[1]  && A[1] ==A[2]) || (A[1] == A[2] && A[2] == A[3]))
      	printf("Yes\n");
  	else
      	printf("No\n");
  return 0;
}

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

# include < iostream>
# define rep (i , n ) for ( int ( i )=0;( i ) <( n );( i )++)
int c [10][10];
int H ,W ,A , res ;
int main ()
{
scanf ("% d % d " ,&H ,& W );
rep (i ,10) rep (j ,10) scanf ("% d " ,& c [ i ][ j ]);
rep (k ,10) rep (i ,10) rep (j ,10)
if ( c [ i ][ j ] > c [ i ][ k ]+ c [ k ][ j ]) c [ i ][ j ]= c [ i ][ k ]+ c [ k ][ j ];
rep (i , H ) rep (j , W )
{
scanf ("% d " ,& A );
if (A >=0) res += c [ A ][1];
}
printf ("% d \ n " , res );
}

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

#include <iostream>
#include <string>

using namespace std;

int main() {

	string str;
	cin >> str;

	bool reach = false;
	bool isout = false;
	int n = str[0] - '0';
	for (int i = 1; i < str.size(); i++) {
		if (n == str[i] - '0') {
			if (reach) {
				isout = true;
			}
			else {
				reach = true;
			}
		}
		else {
			n = str[i] - '0';
			reach = false;
		}
	}
	if (isout) {
		printf("Yes\n");
	}
	else {
		printf("No\n");
	}

	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>
#include <stdlib.h>

int main()
{
	int N;

	scanf_s("%d", &N);

	if (N >= 1000 && N <= 9999)
		printf("Yes");
	else
		printf("No");

	getchar(); getchar();
	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         scanf_s("%d", &N);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
	int n;
	char a[4];
	gets(a);
//	scanf("%d",&n);
//	a[0]=n/1000;
//	a[1]=n/100%10;
//	a[2]=n/10%10;
//	a[3]=n%10;
	
//	if(a[0]==a[1]&&a[0]==a[2]&&a[0]==a[3]){
//		printf("Yes\n");
//		return 0;
//	}
	if((a[0]==a[1]&&a[0]==a[2])){
		printf("Yes\n");
		return 0;
	}
	if((a[1]==a[2]&&a[1]==a[3])){
		printf("Yes\n");
		return 0;
	}
	if((a[0]==a[3]&&a[0]==a[2])){
		printf("Yes\n");
		return 0;
	}
	if((a[3]==a[1]&&a[0]==a[3])){
		printf("Yes\n");
		return 0;
	}
	printf("No\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(a);
      |         ^~~~
      |         getw
Language: C

#include<iostream>
using namespace std;
int main(){
    int n;
    cin>>n;
    int arr[10]={0};
    while(n){
        arr[n%10]++;
        n/=10;
    }
    int m=0;
    for(int i=0;i<10;i++){
        if(m<arr[i]) m=arr[i];
    }
    if(m<3) cout<<"No";
    else cout<<"Yes";
    return 0;
}


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

#include <iostream>
using namespace std
int main () {
  int cnt=0, i=0;
  string s;
  cin >> s;
  while(i < s.size()-2) {
    if(s[i] == s[i+1] && s[i+1] == s[i+2]) {
      cout << "Yes" << endl;
      return;
    }
    i++;
  }
    cout << "No" << endl;
    return;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main () {
      | ~~~                 
a.cc: In function 'int main()':
a.cc:10:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |       return;
      |       ^~~~~~
a.cc:15:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   15 |     return;
      |     ^~~~~~
Language: C++

#include <iostream>
using namespace std
int main () {
  int cnt=0, i=0;
  string s;
  cin >> s;
  while(i < s.size()-2) {
    if(s[i] == s[i+1] && s[i+1] == s[i+2]) {
      cout << "YES" << endl;
      return 0;
    }
    i++;
  }
    cout << "NO" << endl;
    return 0;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main () {
      | ~~~
Language: C++

#include <cstdio>
using namespace std;
char n[5];
int main(){
    gets(n);
    ((n[0] == n[1] && n[1] == n[2]) || (n[1] == n[2] && n[2] == n[3])) ? printf("Yes\n") : printf("No\n");
}


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

#include <cstdio>
char n[5];
int main(){
    gets(n);
    ((n[0] == n[1] && n[1] == n[2]) || (n[1] == n[2] && n[2] == n[3])) ? printf("Yes\n") : printf("No\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    4 |     gets(n);
      |     ^~~~
      |     getw
Language: C

#include <cstdio>
char n[5];
int main(){
    gets(n);
    ((n[0] == n[1] && n[1] == n[2]) || (n[1] == n[2] && n[2] == n[3])) ? printf("Yes\n") : printf("No\n");
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
int n,count = 0;
  cin>>n;
  int vis[10];
  vis[0] = 0;
  while(n != 0){
  	if(vis[n&10]){
    	count++;
    }
    n =n/10;
  }
  if(count){ cout<<"Yes"<<endl};
  else{ cout<<"No"<<endl;}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:31: error: expected ';' before '}' token
   14 |   if(count){ cout<<"Yes"<<endl};
      |                               ^
      |                               ;
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else{ cout<<"No"<<endl;}
      |   ^~~~
Language: C++

use std::io;

fn read_line() -> String{
    let mut s = String::new();
    io::stdin().read_line(&mut s).unwrap();
    s
}

fn main(){
    let line = read_line();
    let split : Vec<&str> = line.trim().split(' ').collect();
    let n : i32= split[0].parse().unwrap();
        
    if ((n/10)%111==0) || ((n%1000)%111==0){
        println!("Yes");
    }else{
        println!("No");
    }
}


Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io;
      | ^~~
a.cc:3:1: error: 'fn' does not name a type
    3 | fn read_line() -> String{
      | ^~
a.cc:9:1: error: 'fn' does not name a type
    9 | fn main(){
      | ^~
Language: C

#include <stdio.h>
void main(){
  int i;
  int num;
  int place[4];
  scanf("%d",%num)
  for(i=0;i>=4;i++){
   	place[i]=num%10;
    num=num/10;
  }
  for ( i=0;i>=2;i++){
    if(place[i]==place[i+1] && place[i+1]==place[i+2]){
      printf("Yes");
      return;
    }
  }
  printf("No");
  return;
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected expression before '%' token
    6 |   scanf("%d",%num)
      |              ^
main.c:6:19: error: expected ';' before 'for'
    6 |   scanf("%d",%num)
      |                   ^
      |                   ;
    7 |   for(i=0;i>=4;i++){
      |   ~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: unable to find string literal operator 'operator""z' with 'const char [3]', 'long unsigned int' arguments
    7 |   else cout<<"No"z,,endl;
      |              ^~~~~
a.cc:7:20: error: expected primary-expression before ',' token
    7 |   else cout<<"No"z,,endl;
      |                    ^
Language: Java

import java.util.*;
public class TaskA {
   public static void main(String[] args) {  
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int count = 0;
      for(int i = 0; i < s.length(); i++){
         count = 0;
         for(int j = i; j < s.length(); j++){
            if(s.charAt(i) == s.charAt(j)){
               count++;
            }
            if(count == 3){
               System.out.println("Yes");
               System.exit(0);
            }
         }
      }
      System.out.println("No");
   }
}

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

import java.util.Scanner;

public class GoodInteger {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String number = scan.next();
		int flag = 0;
		for (int l = 0; l <= 1; l++) {
			if (number.charAt(l)==number.charAt(l+1)
					&& number.charAt(l+1)==number.charAt(l+2)) {
				flag = 1;
			}
		}
		if (flag == 1) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}

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

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
    int num;
    char str[256];
    scanf("%d",&num);
    itoa(num,str,10);
    if(str[0]==str[1]||str[3]==str[2]){
        if(str[1]==str[2]||str[2]==str[1]){
            printf("Yes\n");
        }else if(str[2]==str[3]||str[1]==str[0]){
            printf("Yes\n");
        }else{
            printf("No\n");
        }
    }else{
        printf("No\n");
    }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
    9 |     itoa(num,str,10);
      |     ^~~~
Language: C

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int num;
    char str[256];
    scanf("%d",&num);
    itoa(num,str,10);
    if(str[0]==str[1]||str[3]==str[2]){
        if(str[1]==str[2]||str[2]==str[1]){
            printf("Yes\n");
        }else if(str[2]==str[3]||str[1]==str[0]){
            printf("Yes\n");
        }else{
            printf("No\n");
        }
    }else{
        printf("No\n");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
    9 |     itoa(num,str,10);
      |     ^~~~
Language: C

#include <stdio.h>
 
int main(void) {
 int a,b,c,d,e;
//1000≦N≦9999
 e = scanf("%d%d%d%d",&a,&b,&c,&d);
 if (e<0){
  printf("Error\n");
  return 0;
}
if (a==b==c or b==c==d  ){
  printf("Yes\n");
  return 0;
 }
else{
printf("No\n");
 return 0;
}
}

Compiler output:
main.c: In function 'main':
main.c:11:12: error: expected ')' before 'or'
   11 | if (a==b==c or b==c==d  ){
      |    ~       ^~~
      |            )
Language: C

#include <stdio.h>
 
int main(void) {
 int a,b,c,d,e;
//1000≦N≦9999
 e = scanf("%d%d%d%d",&a,&b,&c,&d);
 if (e<0){
  printf("Error\n");
  return 0;
}
if (a==b==c or b==c==d or ){
printf("Yes\n");
  return 0;
 printf("No\n");
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:12: error: expected ')' before 'or'
   11 | if (a==b==c or b==c==d or ){
      |    ~       ^~~
      |            )
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C++

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

int main() {
	// your code goes here
	int N; 
	cin >> N;
	string s = to_string(N);
	//cout << s;
	for(int i = 0; i < 4;i++)
		for(int j = i + 1; j < 4; j++)
			for(int k = j + 1; k < 4; k++)
				if(s[i] == s[j] && s[i] == s[k])
		


Compiler output:
a.cc: In function 'int main()':
a.cc:13:65: error: expected statement at end of input
   13 |                                 if(s[i] == s[j] && s[i] == s[k])
      |                                                                 ^
a.cc:13:65: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

public class Main{
    public static void main(String args[]){
	Scanner sc = new Scanner(System.in);
	String N = sc.next();
	if(N.charAt(0)==N.charAt(1) && N.charAt(1)==N.charAt(2)|| N.charAt(1)==N.charAt(2)&&N.charAt(2)==N.charAt(3)){
	    System.out.println("Yes");
	}else{
	    System.out.println("No");
	}
    }
}







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

#include <cstdio>
#include <cmath>
#include <stdio.h>
using namespace std;
int main()
{
    char a [10];
    scanf("%s",po);
    if(a[1]==a[2]&&(a[1]==a[0]||a[1]==a[3])) 
    printf("Yes");
    else 
    printf("No");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'po' was not declared in this scope; did you mean 'pow'?
    8 |     scanf("%s",po);
      |                ^~
      |                pow
Language: C++

#include <cstdio>
#include <cmath>
using namespace std;
int main()
{
	char a[4];
	scanf("%s",a[]);
	if(a[1]==a[2]&&(a[1]==a[0]||a[2]==a[3]))
		printf("yes");
	else
		printf("no");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected primary-expression before ']' token
    7 |         scanf("%s",a[]);
      |                      ^
Language: C

#include <cstdio>
#include <cmath>
using namespace std;
int main()
{
	char a[4];
	scanf("%s",a);
	if(a[1]==a[2]&&(a[1]==a[0]||a[2]==a[3]))
		printf("yes");
	else
		printf("no");
}

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

import java.util.*;

public class Main{
    public static void main(String args[]){
	int N[4];
	int i;
	int count;
	Scanner scan = new Scanner(System.in);
	for(i=0;i<4;i++){
	    N[i] = scan.nextInt();
	}
	for(i=1;i<4;i++){
	    if(N[i]=N[i-1]){
		count++;
	    }
	}
	if(count>=3){
	    println("yes");
	}
	else{
	    println("No");
	}
    }
}

Compiler output:
Main.java:5: error: ']' expected
	int N[4];
	      ^
1 error
Language: C++

>#include<iostream>
>#include<string>
>#include<algorithm>
>using namespace std;
>int main(){
>	int a,L[100],i;
>	L[0]=2,L[1]=1;
>	cin>>a;
>	for(i=2;i<=86;i++){
>		if(i<=a){
>			L[i]=L[i-1]+L[i-2];
>		}
>	}
>	
>	cout<<L[i]<<endl;
>	
>}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | >#include<iostream>
      |  ^
a.cc:2:2: error: stray '#' in program
    2 | >#include<string>
      |  ^
a.cc:3:2: error: stray '#' in program
    3 | >#include<algorithm>
      |  ^
a.cc:1:1: error: expected unqualified-id before '>' token
    1 | >#include<iostream>
      | ^
a.cc:5:1: error: expected unqualified-id before '>' token
    5 | >int main(){
      | ^
Language: C

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

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

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

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

s = input()
if s[0] == s[1] and s[1] == s[2] or s[1] == s[2] and s[2] == s[3]:
    print("Yes")
else:
    print("No")

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s = input()
      | ^
Language: C++

n = raw_input()

if (n[0] == n[1] and n[1] == n[2]):
    print "Yes"
elif (n[1] == [2] and n[2] == n[3]):
    print "Yes"
else:
    print "No"

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = raw_input()
      | ^
Language: C++

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


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

#include <<bits/stdc++.h>

using namespace std;

int main()
{
    map < int, int > m;
    int n;
    cin >> n;
    bool flag = 0;
    while(n != 0) {
        int r = n % 10;
        n = n / 10;
        m[r] ++;
        if(m[r] >= 3) {
            flag = 1;
        }
    }
    if(flag) {
        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: C++

#include<cmath>
#include<cstring>
#include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<iostream>
#include<string>
using namespace std;

char a[10];
int main()
{
	scanf("%s",a);
	bool flag = false;
	if(a[0] == a[1] && a[1] == a[2]) flag = ture;
	if(a[1] == a[2] && a[2] == a[3]) flag = ture;
	if(flag)	puts("Yes\n");
	else	puts("No\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:49: error: 'ture' was not declared in this scope
   15 |         if(a[0] == a[1] && a[1] == a[2]) flag = ture;
      |                                                 ^~~~
a.cc:16:49: error: 'ture' was not declared in this scope
   16 |         if(a[1] == a[2] && a[2] == a[3]) flag = ture;
      |                                                 ^~~~
Language: C

#include<stdlib.h>
#include<stio.h>
int main()
{
  int i,j=0,r,num=0,temp,N,a[100];
  printf("enter the number ");
  scanf("%d",&N);
  temp=N;
  for(i=0;i<4;i++)
      {
        r=temp%10;
        a[i]=r;
        temp=temp/10;
  }
  for(i=0;i<4;i++)
    printf("%d",a[i]);
  printf("\n");
  for(i=1;i<10;i++)
  {
    for(j=0;j<4;j++)
    {
      if (a[j]==i)
        num=num+i;
    }
    if(num>=(3*i))
    {
      printf("yes");
      break;
    }
    else if (i==9)
      printf("no");
  }
  return 0;
}




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

#include<bits/stdc++.h>
using namespace std;
 
int main(){
 int n;
 cin>>n;
 string s;
 while(n){
 s.push_back(n%10);
 n/=10;
}
int f=0;
for(i=0;i<3;i++)
 if(s[0]==s[i]) f++;
if(f==3) cout<<"Yes"<<endl;
else {
    f=0;
    for(i=1;i<4;i++)
     if(s[1]==s[i]) f++;
   if(f==3) cout<<"Yes"<<endl;
   else cout<<"No"<<endl;
}

return 0;
}

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

#include<bits/stdc++.h>
#include <stdlib.h>
using namespace std;
 
int main(){
 int a;
 cin>>a;
 char n[10];
  itoa (a,n,10);
int f=1;
  for(int i=1;i<3;i++){
    if(n[0]==n[i]) f++;
  }
if(f==3) {
 cout<<"YES"<<endl;
 return 0;
}
f=1;
for(int i=2;i<4;i++){
    if(n[1]==n[i]) f++;
  }
if(f==3) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
 
return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
 
int main(){
 int a;
 cin>>a;
 char n[10];
  itoa (a,n,10);
int f=1;
  for(int i=1;i<3;i++){
    if(n[0]==n[i]) f++;
  }
if(f==3) {
 cout<<"YES"<<endl;
 return 0;
}
f=1;
for(int i=2;i<4;i++){
    if(n[1]==n[i]) f++;
  }
if(f==3) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'itoa' was not declared in this scope
    8 |   itoa (a,n,10);
      |   ^~~~
Language: Java


import java.util.Scanner;

public class MainA {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		if(s.charAt(0) == s.charAt(1) && s.charAt(1)== s.charAt(2) || s.charAt(1) == s.charAt(2) && s.charAt(2)== s.charAt(3)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}

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

#include<bits/stdc++.h>
using namespace std;
 
int main(){
 string n;
 cin>>n;
  for(int i=1;i<n.size();i++)
{
    if(n[i-1]==n[i]) f++;
  }
 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: 'f' was not declared in this scope
    9 |     if(n[i-1]==n[i]) f++;
      |                      ^
Language: C++

#include<cstdio>
#include<cstring>
#include<algoirthm>
#include<iostream>
#include<cmath>
#include<ctime>
#include<queue>
#include<stack>
using namespace std;
typedef long long LL;
char a[100];
int main()
scanf("%s",a+1);
if(a[1]==a[2]&&a[2]=a[3]||a[2]==a[3]&&a[3]==a[4])
{
	printf("Yes");
}
	else
	printf("No")
}

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