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

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

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

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

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

import java.util.*;

public class Main{

	public static void main(String[] args){
    	Scanner sc=new Scanner(System.in);
      
      	String input=sc.nextInt();
      
      	String[] valueset=input.split("");
      
      	if(valueset[1].equals(valueset[2]) && (valueset[0].equals(valueset[1]) || valueset[1].equals(valueset[3]))){
        	System.out.println("Yes");
        }else{
          	System.out.println("No");
        }
    }	
  
}

Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to String
      	String input=sc.nextInt();
      	                       ^
1 error
Language: C++

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

int main() {
  string str;
  cin >> str;
  a = str.substr(0,1);
  b = str.substr(1,1);
  c = str.substr(2,1);
  d = str.substr(3,1) ; 
    
  if ((a == b && b == c) || (b == c && c == d)) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'a' was not declared in this scope
    8 |   a = str.substr(0,1);
      |   ^
a.cc:9:3: error: 'b' was not declared in this scope
    9 |   b = str.substr(1,1);
      |   ^
a.cc:10:3: error: 'c' was not declared in this scope
   10 |   c = str.substr(2,1);
      |   ^
a.cc:11:3: error: 'd' was not declared in this scope
   11 |   d = str.substr(3,1) ;
      |   ^
Language: C++

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

int main() {
  string str;
  cin >> str;
  a = str.substr(0,1)
  b = str.substr(1,1)
  c = str.substr(2,1)
  d = str.substr(3,1)  
    
  if ((a == b && b == c) || (b == c && c == d)) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'a' was not declared in this scope
    8 |   a = str.substr(0,1)
      |   ^
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else {
      |   ^~~~
Language: C++

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

int main() {
  int n;
  cin >> n;
  string res="No";
  if(n/10%111==0)res="Yes";
  if(n%1000%111==0)res="Yws"
  cout << res <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: expected ';' before 'cout'
    9 |   if(n%1000%111==0)res="Yws"
      |                             ^
      |                             ;
   10 |   cout << res <<endl;
      |   ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>n;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout<<"Yes"<<endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout<<"Yes"<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout<<"No"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout<<"No"<<endl;
      |                 ^~~~
      |                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() {
    str n;
    cin >> n;
    int counter = 0;
    if (n[0] == n[1] and n[1] == n[2]) ++counter;
    if (n[1] == n[2] and n[2] == n[3]) ++counter;
    if (counter == 0) cout << "No" << endl;
    else cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |     str n;
      |     ^~~
      |     std
a.cc:7:12: error: 'n' was not declared in this scope
    7 |     cin >> n;
      |            ^
Language: Java

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

Compiler output:
Main.java:6: error: cannot find symbol
    char[] c = s.CharArray();
                ^
  symbol:   method CharArray()
  location: variable s of type String
1 error
Language: C

#include<stdio.h>

int main(void){
  int N,a,b,c,d;
  scanf("%d\n",&N);
  d=N%10;
  C=(N%100-d)/10;
  b=(N%1000-(N%100))/100;
  a=(N-N%1000)/1000;
  if((a==b&&b==c)||(b==c&&c==d)){
  printf("Yes\n");
  }else{
  printf("No\n");
  }
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: 'C' undeclared (first use in this function)
    7 |   C=(N%100-d)/10;
      |   ^
main.c:7:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main(){

    ll n;
    cin >> n;
    string s;
    s = n;

    if(s[0] == s[1] && s[1] == s[2]{
            cout << "Yes" << endl;
    }
    else if(s[1] == s[2] && s[2] == s[3]){
        cout << "Yes" << endl;
    }
  
    else cout << "No" << endl;

    return 0;
    }

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


#include <cmath>
#include <iostream>
#include <algorithm>

using namespace std;

int main() {
  bool good = false;
  int N;
  int a[4];
  cin >> N;

  for (int i = 0; i < 4; ++i) {
    a[i] = N % 10;
    N = N / 10;
  }

  if (a[0] == a[1] && a[1] == a[2]) {
    good = true
  } else if (a[3] == a[2] && a[1] == a[2]) {
    good = true;
  } 
  if (good) cout << "Yes" << endl;
  else cout << "No" << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:16: error: expected ';' before '}' token
   20 |     good = true
      |                ^
      |                ;
   21 |   } else if (a[3] == a[2] && a[1] == a[2]) {
      |   ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected primary-expression before '<<' token
   10 |   else << "No" << endl;
      |        ^~
Language: Java

import java.util.*;
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(0) == N.charAt(2))
    System.out.println("Yes");
  else if(N.charAt(1) == N.charAt(2) && N.charAt(1) == N.charAt(3))
    System.out.println("Yes");
  else{System.println("No");}
}
}

Compiler output:
Main.java:10: error: cannot find symbol
  else{System.println("No");}
             ^
  symbol:   method println(String)
  location: class System
1 error
Language: C++

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

int main()
{
    string n;
    int ans = 0;
    cin >> n;
    for(int i=0; i<n-1; i++){
        if(n[i] == n[i+1]){
            ans++;
        }
    }
    if(ans >= 2){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   10 |     for(int i=0; i<n-1; i++){
      |                    ~^~
      |                    | |
      |                    | int
      |                    std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/string:48,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
  618 |     operator-(const reverse_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:618:5: note:   template argument deduction/substitution failed:
a.cc:10:22: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
   10 |     for(int i=0; i<n-1; i++){
      |                      ^
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__x.base() - __y.base())) std::operator-(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
 1790 |     operator-(const move_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note:   template argument deduction/substitution failed:
a.cc:10:22: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
   10 |     for(int i=0; i<n-1; i++){
      |                      ^
Language: C++

#include <stdio.h>
int main(void)
{
    int N;
    scanf("%d",&N);

    int mod1 = N-N%1000;
    int thouthand = (N-N%1000)/1000;
    int mod2 = N-N%100-mod1;
    int hundred = (N-N%100-mod1)/100;
    int mod3 = N-N%10-mod1-mod2;
    int ten = (N-N%10-mod1-mod2)/10
    int mod4 = N-mod1-mod2-mod3;
    int one = mod4;

    if(thouthand == hundred == ten){
       printf("Yes\n");
}
   if(thouthand == hudred == one){
       printf("Yes\n");
}
   if(hudred == ten == one){
       printf("Yes\n");
}
   if(thouthand == ten == one){
      printf("Yes\n");
}
else{
     printf("No\n");
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected ',' or ';' before 'int'
   13 |     int mod4 = N-mod1-mod2-mod3;
      |     ^~~
a.cc:14:15: error: 'mod4' was not declared in this scope; did you mean 'mod3'?
   14 |     int one = mod4;
      |               ^~~~
      |               mod3
a.cc:19:20: error: 'hudred' was not declared in this scope; did you mean 'hundred'?
   19 |    if(thouthand == hudred == one){
      |                    ^~~~~~
      |                    hundred
a.cc:22:7: error: 'hudred' was not declared in this scope; did you mean 'hundred'?
   22 |    if(hudred == ten == one){
      |       ^~~~~~
      |       hundred
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>

using namespace std;

int main()
{
	int nums[4];
	string S;
	cin >> S;

	for (int i = 0; i < 4; i++)
	{
		nums[i] = S[i] - '0';
	}

	for (int i = 0; i < 8; i++)
	{
		int bin = i;
		bool flags[3];
		int tmp = nums[0];

		for (int j = 2; j >= 0; j--)
		{
			if (bin >= pow(2, j))
			{
				bin -= pow(2, j);
				tmp -= nums[j + 1];
				flags[j] = true;
			}
			else
			{
				tmp += nums[j + 1];
				flags[j] = false;
			}
		}
		cout << i << " : " << tmp << endl;

		if (tmp == 7)
		{
			string ans = to_string(nums[0]);

			for (int j = 0; j < 3; j++)
			{
				if (flags[j])
				{
					ans += "-";
				}
				else
				{
					ans += "+";
				}
				ans += to_string(nums[j + 1]);
			}

			cout << ans << "=7" << endl;

			break;
		}
	}



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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:51: error: expected ')' before '{' token
    6 |   if((s[1]==s[2] && ((s[0]==s[1]) || (s[2]==s[3])){
      |      ~                                            ^
      |                                                   )
a.cc:8:4: error: expected ')' before 'else'
    8 |   }
      |    ^
      |    )
    9 |   else cout<<"No";
      |   ~~~~
a.cc:6:5: note: to match this '('
    6 |   if((s[1]==s[2] && ((s[0]==s[1]) || (s[2]==s[3])){
      |     ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int N:
	cin >> N;
	if((N/1000==(N%1000)/100&&(N%1000)/100==(N%100)/10)||((N%1000)/100==(N%100)/10&&(N%100)/10==N%10)) cout << "Yes";
	else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: found ':' in nested-name-specifier, expected '::'
    5 |         int N:
      |              ^
      |              ::
a.cc:5:13: error: 'N' has not been declared
    5 |         int N:
      |             ^
a.cc:6:13: error: qualified-id in declaration before '>>' token
    6 |         cin >> N;
      |             ^~
a.cc:7:13: error: 'N' was not declared in this scope
    7 |         if((N/1000==(N%1000)/100&&(N%1000)/100==(N%100)/10)||((N%1000)/100==(N%100)/10&&(N%100)/10==N%10)) cout << "Yes";
      |             ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'cin'
    6 |         cin >> N;
      |         ^~~
a.cc:7:13: error: 'N' was not declared in this scope
    7 |         if((N/1000==N/100&&N/100==N/10)||(N/100==N/10&&N/10==N%10)) cout << "Yes";
      |             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int N, x=111, y=0, z=0;
	cin >> N;
	for(y=0;y<10;y++){
		if((N-y)%(10*x)==0)||((N-1000*y)%x==0){
			z++;
			break;
		}
	}
	if(z==0) cout << "No";
	else cout << "Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: expected primary-expression before '||' token
    8 |                 if((N-y)%(10*x)==0)||((N-1000*y)%x==0){
      |                                    ^~
Language: C++

#include<iostream>
using namspace std;

int main(){
string aaa=0;
cin >> aaa;
if (aaa[0] == aaa[1] && aaa[0] == aaa[2] && aaa[1] == aaa[2]){
printf(“yes”);
}
else if (aaa[3] == aaa[1] && aaa[3] == aaa[2] && aaa[1] == aaa[2]){
printf(“yes”);
}
else{
printf(“no”);}}

Compiler output:
a.cc:8:8: error: extended character “ is not valid in an identifier
    8 | printf(“yes”);
      |        ^
a.cc:8:8: error: extended character ” is not valid in an identifier
a.cc:11:8: error: extended character “ is not valid in an identifier
   11 | printf(“yes”);
      |        ^
a.cc:11:8: error: extended character ” is not valid in an identifier
a.cc:14:8: error: extended character “ is not valid in an identifier
   14 | printf(“no”);}}
      |        ^
a.cc:14:8: error: extended character ” is not valid in an identifier
a.cc:2:7: error: expected nested-name-specifier before 'namspace'
    2 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string aaa=0;
      | ^~~~~~
a.cc:5:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> aaa;
      | ^~~
      | std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: error: 'aaa' was not declared in this scope
    6 | cin >> aaa;
      |        ^~~
a.cc:8:8: error: '\U0000201cyes\U0000201d' was not declared in this scope
    8 | printf(“yes”);
      |        ^~~~~
a.cc:11:8: error: '\U0000201cyes\U0000201d' was not declared in this scope
   11 | printf(“yes”);
      |        ^~~~~
a.cc:14:8: error: '\U0000201cno\U0000201d' was not declared in this scope
   14 | printf(“no”);}}
      |        ^~~~
Language: C++

// ConsoleApplication5.cpp : アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include <iostream>
using namespace std;


int main()
{
	int a;
	int b, c, d, e;
	while (cin >> a, a) {
		b = a / 1000;
		c = (a % 1000) / 100;
		d = (a % 100) / 10;
		e = a % 10;

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



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

import java.util.Scanner;
import java.io.PrintWriter;

public class TaskA {
    public void solve(int testNumber, Scanner in, PrintWriter out) {
        int i = in.nextInt(), pocitadlo = 0;
        String answer = "No";

        String s = Integer.toString(i);

        for(int x = 0; x < s.length(); x++){
            char c = s.charAt(x);

            for(int y = 0; y < s.length(); y++)
                if(s.charAt(y) == c) pocitadlo++;

            if(pocitadlo >= 3){
                answer = "Yes";
                break;
            }
            else pocitadlo = 0;
        }

        out.println(answer);
    }
}


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

package AtCoder;

import java.util.Scanner;
import java.io.PrintWriter;

public class TaskA {
    public void solve(int testNumber, Scanner in, PrintWriter out) {
        int i = in.nextInt(), pocitadlo = 0;
        String answer = "No";

        String s = Integer.toString(i);

        for(int x = 0; x < s.length(); x++){
            char c = s.charAt(x);

            for(int y = 0; y < s.length(); y++)
                if(s.charAt(y) == c) pocitadlo++;

            if(pocitadlo >= 3){
                answer = "Yes";
                break;
            }
            else pocitadlo = 0;
        }

        out.println(answer);
    }
}


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

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

int main(int argc,char** argv)
{
	char a[10];
	scanf("%s"a);
	if(a[0] == a[1] == a[2] == a[3]){
		printf("Yes\n");
	}
	else if(a[0] == a[1] == a[2]){
		printf("Yes\n");
	}
	else if(a[1] == a[2] == a[3]){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}

	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:7:19: error: expected ')' before 'a'
    7 |         scanf("%s"a);
      |              ~    ^
      |                   )
Language: C

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

int main(int argc,char** argv)
{
	char a[10];
	scanf("%s"s);
	if(a[0] == a[1] == a[2] == a[3]){
		printf("Yes\n");
	}
	else if(a[0] == a[1] == a[2]){
		printf("Yes\n");
	}
	else if(a[1] == a[2] == a[3]){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}
	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:7:19: error: expected ')' before 's'
    7 |         scanf("%s"s);
      |              ~    ^
      |                   )
Language: C++

#include <cstdio>
#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: In function 'int main()':
a.cc:2:14: error: 'i' was not declared in this scope
    2 | #define rep (i , n ) for ( int ( i )=0;( i ) <( n );( i )++)
      |              ^
a.cc:8:1: note: in expansion of macro 'rep'
    8 | rep (i ,10) rep (j ,10) scanf ("% d " ,& c [ i ][ j ]);
      | ^~~
a.cc:2:18: error: 'n' was not declared in this scope
    2 | #define rep (i , n ) for ( int ( i )=0;( i ) <( n );( i )++)
      |                  ^
a.cc:8:1: note: in expansion of macro 'rep'
    8 | rep (i ,10) rep (j ,10) scanf ("% d " ,& c [ i ][ j ]);
      | ^~~
a.cc:16:9: warning: unknown escape sequence: '\040'
   16 | printf ("% d \ n " , res );
      |         ^~~~~~~~~~
Language: C++

# include < cstdio >
# 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:  cstdio : No such file or directory
    1 | # include < cstdio >
      |           ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<utility>
#define REP(i,n) for(int i = 0;i < (n);i++)
#define pb push_back
using namespace std;
const int INF = 1e9;
typedef long long ll;

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


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

#include<stdio.h>

int main{
	int a,b,c,d,e;
	scanf("%d"&a);
	b=floor(a/1000);
	c=(floor(a/100))-(b*10);
	d=(floor(a/10))-(b*100)-(c*10);
	e=a-(b*1000)-(c*100)-(d*10);
	if((b==c&&c==d)||(c==d&&d==e)){
	printf("Yes");
	}else{
	printf("No");
	}

	return 0;

}

Compiler output:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{
      |         ^
Language: C

#include<stdio.h>

int main{
	int a,b,c,d,e;
	scanf("%d"&a);
	b=floor(a/1000);
	c=(floor(a/100))-(b*10);
	d=(floor(a/10))-(b*100)-(c*10);
	e=a-(b*1000)-(c*100)-(d*10);
	if(b==c==d||c==d==e){
	printf("Yes");
	}else{
	printf("No");
	}

	return 0;

}

Compiler output:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{
      |         ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:102: error: expected primary-expression before ')' token
    8 |   if(a[0] == a[1] == a[2] || a[0] == a[1] == a[3] || a[0] == a[2] == a[3] || a[1] == a[2] == a[3] || ) {
      |                                                                                                      ^
Language: C++

use std::io;
use std::cmp;

// read a line(without line feed)
fn read_line() -> String {
    let mut in_str = String::new();
    io::stdin().read_line(&mut in_str).unwrap();
    return in_str.trim().to_string();
}

// read wods on a line
pub fn read_words_in_line() -> Vec<String> {
    let s = read_line();
    return s.split_whitespace().map(|x| x.to_string()).collect::<Vec<String>>()
}

// read type t on a line
pub fn read_t_in_line<T : std::str::FromStr>() -> Vec<T> {
    let mut v : Vec<T> = Vec::new();
    for e in read_words_in_line().iter().map(|x| x.parse::<T>()) {
        if let Ok(r) = e {
            v.push(r);
        }
        else{
            return Vec::new();
        }
    }
    return v;
}

// sort slice
pub fn sort<T : std::cmp::Ord>(slice : &mut [T]) {
    slice.sort();
}
// sort slice by reverse order
pub fn sort_rev<T : std::cmp::Ord>(slice : &mut [T]) {
    slice.sort_by(|x, y| y.cmp(x));
}

pub fn min<T : std::cmp::Ord>(a : T, b : T) -> T{
    return cmp::min(a, b);
}

pub fn max<T : std::cmp::Ord>(a : T, b : T) -> T{
    return cmp::max(a, b);
}


fn main() {
    let n = read_line();
    let bs = n.as_bytes();
    if (bs[0] == bs[1] &&bs[0] == bs[2] ) || 
        (bs[3] == bs[1] &&bs[3] == bs[2]) {
            println!("Yes");
        }
    else{
        println!("No");
    }
}


Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::cmp;
      | ^~~
a.cc:5:1: error: 'fn' does not name a type
    5 | fn read_line() -> String {
      | ^~
a.cc:12:1: error: 'pub' does not name a type
   12 | pub fn read_words_in_line() -> Vec<String> {
      | ^~~
a.cc:18:1: error: 'pub' does not name a type
   18 | pub fn read_t_in_line<T : std::str::FromStr>() -> Vec<T> {
      | ^~~
a.cc:32:1: error: 'pub' does not name a type
   32 | pub fn sort<T : std::cmp::Ord>(slice : &mut [T]) {
      | ^~~
a.cc:36:1: error: 'pub' does not name a type
   36 | pub fn sort_rev<T : std::cmp::Ord>(slice : &mut [T]) {
      | ^~~
a.cc:40:1: error: 'pub' does not name a type
   40 | pub fn min<T : std::cmp::Ord>(a : T, b : T) -> T{
      | ^~~
a.cc:44:1: error: 'pub' does not name a type
   44 | pub fn max<T : std::cmp::Ord>(a : T, b : T) -> T{
      | ^~~
a.cc:49:1: error: 'fn' does not name a type
   49 | fn main() {
      | ^~
Language: C++

n,d=gets.chomp.split(' ').map{|n| n.to_i}

cnt = 0
tmp = n
digit = nil
flg = false
while(tmp>0)
	if(tmp % 10 == digit)
		cnt += 1
		if(cnt >= 3)
			flg = true
		end
	else
		digit = tmp % 10
		cnt += 1
	end
	tmp = tmp / 10
end
if(flg)
	puts "Yes"
else
	puts "No"
end


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n,d=gets.chomp.split(' ').map{|n| n.to_i}
      | ^
a.cc:3:1: error: 'cnt' does not name a type; did you mean 'int'?
    3 | cnt = 0
      | ^~~
      | int
Language: C++

#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
/*
//#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
*/

// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
/*
//#if __cplusplus >= 201103L
#include <array>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
*/
using namespace std;
#define fi first
#define se second
#define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define rep(i,n) repl(i,0,n)
#define each(itr,v) for(auto itr:v)
#define pb(s) push_back(s)
#define mmax(x,y) (x>y?x:y)
#define mmin(x,y) (x<y?x:y)
#define maxch(x,y) x=mmax(x,y)
#define minch(x,y) x=mmin(x,y)
#define mp(a,b) make_pair(a,b)
#define all(x) (x).begin(),(x).end()
#define dbg(x) cout<<#x"="<<x<<endl

#define uni(x) x.erase(unique(all(x)),x.end())
template<class T,class U>inline void chmin(T &t,U f){if(t>f)t=f;}
template<class T,class U>inline void chmax(T &t,U f){if(t<f)t=f;}
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) > (b) ? (b) : (a))

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;
typedef pair<P, int> PPI;

#define INF INT_MAX/3
#define MAX_N 1000
#define M_INF 1000000000
int n,m,v,i;
void solve(){
   cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin>>s;
  ll cnt = 0;
  ll ans = 0;
  repl(i,1,n){
    if(s[i] == s[i-1]) cnt++;
    else {
      maxcn(ans,cnt);
      cnt = 0;
    }
  }
  maxcn(ans,cnt);
  if(ans >= 3) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;

}

int main(){
  solve();
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:123:7: error: 'maxcn' was not declared in this scope; did you mean 'maxch'?
  123 |       maxcn(ans,cnt);
      |       ^~~~~
      |       maxch
a.cc:127:3: error: 'maxcn' was not declared in this scope; did you mean 'maxch'?
  127 |   maxcn(ans,cnt);
      |   ^~~~~
      |   maxch
Language: C++

#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
/*
//#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
*/

// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
/*
//#if __cplusplus >= 201103L
#include <array>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
*/
using namespace std;
#define fi first
#define se second
#define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define rep(i,n) repl(i,0,n)
#define each(itr,v) for(auto itr:v)
#define pb(s) push_back(s)
#define mmax(x,y) (x>y?x:y)
#define mmin(x,y) (x<y?x:y)
#define maxch(x,y) x=mmax(x,y)
#define minch(x,y) x=mmin(x,y)
#define mp(a,b) make_pair(a,b)
#define all(x) (x).begin(),(x).end()
#define dbg(x) cout<<#x"="<<x<<endl

#define uni(x) x.erase(unique(all(x)),x.end())
template<class T,class U>inline void chmin(T &t,U f){if(t>f)t=f;}
template<class T,class U>inline void chmax(T &t,U f){if(t<f)t=f;}
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) > (b) ? (b) : (a))

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;
typedef pair<P, int> PPI;

#define INF INT_MAX/3
#define MAX_N 1000
#define M_INF 1000000000
int n,m,v,i;
void solve(){
   cin.tie(0);
  ios::sync_with_stdio(false);
  cin>>s;
  ll cnt = 0;
  repl(i,1,n){
    if(s[i] == s[i-1]) cnt++;
    else cnt = 0;
  }
  if(cnt >= 3) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;

}

int main(){
  solve();
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:116:8: error: 's' was not declared in this scope
  116 |   cin>>s;
      |        ^
Language: C++


#include <iostream>/*{{{*/
#include <iomanip>
#include <string>
#include <map>
#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include <bits/stdc++.h>
#include <algorithm>
#include <math.h>
#include <vector>
#include <set>
#include <queue>
#include <sstream>
#include <stack>
#include <deque>
#include <memory.h>
#include <exception>
#include <ctime>
#include <climits>
#include <list>
#include <bitset>
#include <cassert>
using namespace std;
#define rep_n(i, a, b) for (int i=(a); i<(b); i++)
#define rep(i, n) rep_n(i, 0, n)
#define all(v) (v).begin(), (v).end()
#define sc1(a) scanf("%d", &a)
#define sc2(a, b) scanf("%d %d", &a, &b)
#define sc3(a, b, c) scanf("%d %d %d", &a, &b, &c)/*}}}*/

int main() {
    char n[5];
    scanf("%s", n);

    int maxrep=0, cnt=0;
    rep(i, 4) {
        if (i>0) {
           if (n[i]!=n[i-1]) cnt=0; 
           else if (n[i]==n[i-1]) cnt++, maxrep=max(maxrep, cnt); 
        }
    }
    
    if (maxrep>=(reptime-1)) printf("Yes\n");
    else printf("No\n");

    //int ans=0;/*{{{*/
    //printf("%d", ans);/*}}}*/
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:18: error: 'reptime' was not declared in this scope; did you mean 'time'?
   45 |     if (maxrep>=(reptime-1)) printf("Yes\n");
      |                  ^~~~~~~
      |                  time
Language: C++

#include <iostream>
using namespace std;

int main(){
  int N,lp = 0;
  int keta[4];
  cin >> N;

  keta[0] = N/1000 ; N -= (N/1000)*1000;
  keta[1] = N/100 ; N -= (N/100)*100;
  keta[2] = N/10 ; N -= (N/10)*10;
  keta[3] = N;

  if (keta[0] == keta[1] && keta[1] == Keta[2]){
    cout << "Yes" << endl;
  }else{
    if (keta[1] == keta[2] && keta[2] == Keta[3]){
      cout << "Yes" << endl;
    }else{
      cout << "No" << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:40: error: 'Keta' was not declared in this scope; did you mean 'keta'?
   14 |   if (keta[0] == keta[1] && keta[1] == Keta[2]){
      |                                        ^~~~
      |                                        keta
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected '}' at end of input
   11 | else cout<<"No";
      |                 ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
string s;
cin>>s;

if((s[0]==s[1]==s[2) )|| (s[1]==s[2]==s[3])) cout<<"Yes";
else cout<<"No";


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ']' before ')' token
   10 | if((s[0]==s[1]==s[2) )|| (s[1]==s[2]==s[3])) cout<<"Yes";
      |                    ^
      |                    ]
a.cc:10:23: error: expected primary-expression before '||' token
   10 | if((s[0]==s[1]==s[2) )|| (s[1]==s[2]==s[3])) cout<<"Yes";
      |                       ^~
a.cc:11:17: error: expected '}' at end of input
   11 | else cout<<"No";
      |                 ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
string s;
cin>>s;

if((s[0]==s[1]==s[2)] || (s[1]==s[2]==s[3])) cout<<"Yes";
else cout<<"No";


}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ']' before ')' token
   10 | if((s[0]==s[1]==s[2)] || (s[1]==s[2]==s[3])) cout<<"Yes";
      |                    ^
      |                    ]
a.cc:10:21: error: expected ')' before ']' token
   10 | if((s[0]==s[1]==s[2)] || (s[1]==s[2]==s[3])) cout<<"Yes";
      |   ~                 ^
      |                     )
a.cc:10:21: error: expected primary-expression before ']' token
Language: C++

#include <iostream>
using namespace std;

int main(){
  int N;
  int i[4];
  int count[9];
  int lp = 0;
  while (lp < 4){
    i[lp] = 0;
    lp++;
  }
  cin >> N;

  i[0] = N/1000 ; N -= i[0]*1000;
  i[1] = N/100 ; N -= i[1]*100;
  i[2] = N/10 ; N -= i[2]*10;
  i[3] = N;

  lp = 0;
  while (lp < 5){
    count[i[lp]] ++;
    lp++;
  }
  lp = 0;
  int Flag = 0;
  while (lp < 10){
    if (count[lp] <= 3){
      Flag = 1;
    }
    lp++;
  }
  if (Flag == 1){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }


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

#include <cstdio>
#include <string>
#include <iostream>

using namespace std;

int main(void){
  int i ;
  cin>>i;
  int j=i/10;
  int k=i%1000;
  if(j%111&&k%111)cout>>no>>endl;
  else cout>>yes>>endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: 'no' was not declared in this scope
   12 |   if(j%111&&k%111)cout>>no>>endl;
      |                         ^~
a.cc:13:14: error: 'yes' was not declared in this scope
   13 |   else cout>>yes>>endl;
      |              ^~~
Language: C++

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

Compiler output:
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　　　　}
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc:11:1: error: extended character 　 is not valid in an identifier
   11 | 　　　　return 0;
      | ^
a.cc:11:1: error: extended character 　 is not valid in an identifier
a.cc:11:1: error: extended character 　 is not valid in an identifier
a.cc:11:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:18: error: 'priutf' was not declared in this scope; did you mean 'printf'?
    5 |                  priutf("Yes\n");
      |                  ^~~~~~
      |                  printf
a.cc:6:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |         } else if(c[1] == c{2]&& c[2] == c[3]){
      |                   ~~~~~^~~~
a.cc:6:28: error: expected ')' before '{' token
    6 |         } else if(c[1] == c{2]&& c[2] == c[3]){
      |                  ~         ^
      |                            )
a.cc:6:30: error: expected primary-expression before ']' token
    6 |         } else if(c[1] == c{2]&& c[2] == c[3]){
      |                              ^
a.cc:10:1: error: '\U00003000\U00003000\U00003000\U00003000' was not declared in this scope
   10 | 　　　　}
      | ^~~~~~~~
a.cc:11:1: error: '\U00003000\U00003000\U00003000\U00003000return' was not declared in this scope
   11 | 　　　　return 0;
      | ^~~~~~~~~~~~~~
Language: C

#include <stdio.h>
int main(){
	scanf("%s",&s)
	if(s[0]==s[1]&&s[1]==s[2]){
		printf("Yes")
	}else if(s[1]==s[2]&&s[2]==s[3]){
		printf("Yes")
	}else{ printf("No")
}
return 0
}

Compiler output:
main.c: In function 'main':
main.c:3:21: error: 's' undeclared (first use in this function)
    3 |         scanf("%s",&s)
      |                     ^
main.c:3:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:23: error: expected ';' before 'if'
    3 |         scanf("%s",&s)
      |                       ^
      |                       ;
    4 |         if(s[0]==s[1]&&s[1]==s[2]){
      |         ~~
Language: C

#include <stdio.h>
int main(){
	scanf("%s",&s)
	if(s[0]==s[1]&&s[1]==s[2])
		printf("Yes")
	else if(s[1]==s[2]&&s[2]==s[3])
		printf("Yes")
	else printf("No")
}

Compiler output:
main.c: In function 'main':
main.c:3:21: error: 's' undeclared (first use in this function)
    3 |         scanf("%s",&s)
      |                     ^
main.c:3:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:23: error: expected ';' before 'if'
    3 |         scanf("%s",&s)
      |                       ^
      |                       ;
    4 |         if(s[0]==s[1]&&s[1]==s[2])
      |         ~~
Language: C

#include <stdio.h>
int main(){
	scanf("%s",&s)
	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")
}

Compiler output:
main.c: In function 'main':
main.c:3:21: error: 's' undeclared (first use in this function)
    3 |         scanf("%s",&s)
      |                     ^
main.c:3:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:23: error: expected ';' before 'if'
    3 |         scanf("%s",&s)
      |                       ^
      |                       ;
    4 |         if(s[0]==s[1]&&s[1]==s[2])
      |         ~~
Language: C

#include <stdio.h>
int main(){
	scanf("%d",&s)
	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")
}

Compiler output:
main.c: In function 'main':
main.c:3:21: error: 's' undeclared (first use in this function)
    3 |         scanf("%d",&s)
      |                     ^
main.c:3:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:23: error: expected ';' before 'if'
    3 |         scanf("%d",&s)
      |                       ^
      |                       ;
    4 |         if(s[0]==s[1]&&s[1]==s[2])
      |         ~~
Language: C

#include <stdio.h>
int main(){
	scanf("%d",s[s])
	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")
}

Compiler output:
main.c: In function 'main':
main.c:3:20: error: 's' undeclared (first use in this function)
    3 |         scanf("%d",s[s])
      |                    ^
main.c:3:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:25: error: expected ';' before 'if'
    3 |         scanf("%d",s[s])
      |                         ^
      |                         ;
    4 |         if(s[0]==s[1]&&s[1]==s[2])
      |         ~~
Language: C

#include <stdio.h>
int main(){
	scanf("%d",[s])
	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")
}

Compiler output:
main.c: In function 'main':
main.c:3:20: error: expected expression before '[' token
    3 |         scanf("%d",[s])
      |                    ^
main.c:3:21: error: 's' undeclared (first use in this function)
    3 |         scanf("%d",[s])
      |                     ^
main.c:3:21: note: each undeclared identifier is reported only once for each function it appears in
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");
	} 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;
      | ^~~~~~