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

#include <iostream>
#include <string>

int main(){
  string S;
  cin >> S;
  cout << (S[2]==S[3] && S[4]==S[5] ? "Yes" : "No");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string S;
      |   ^~~~~~
a.cc:5:3: 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:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> S;
      |   ^~~
      |   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:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << (S[2]==S[3] && S[4]==S[5] ? "Yes" : "No");
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

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

Compiler output:
a.cc:7:12: error: expected primary-expression before 'S'
    7 |     string S; cin >> S;
      |            ^
a.cc:7:11: error: expected ']' before 'S'
    7 |     string S; cin >> S;
      |           ^~
      |           ]
a.cc:7:15: error: 'cin' does not name a type
    7 |     string S; cin >> S;
      |               ^~~
a.cc:8:5: error: expected unqualified-id before 'if'
    8 |     if(S[2]==S[3] && S[4]==S[5]){
      |     ^~
a.cc:10:6: error: expected unqualified-id before 'else'
   10 |     }else{
      |      ^~~~
a.cc:13:1: error: expected unqualified-id before ']' token
   13 | ]
      | ^
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
   		String s = sc.nextLine();
      	if(s.substring(3,4).equals(s.substring(4,5)) && s.substring(5,6).equals(s.substring(6,7))
           System.out.println("Yes");
        else System.out.println("no");
    	
    }
}

Compiler output:
Main.java:6: error: ')' expected
      	if(s.substring(3,4).equals(s.substring(4,5)) && s.substring(5,6).equals(s.substring(6,7))
      	                                                                                         ^
1 error
Language: C++

include<iostream>
using namespace std;
 
int main(){
 	string S;
	cin >> S;
  	if(S[2]==S[3]&&S[4]==S[5]){
    	cout << "Yes" << endl;
    }
  	else cout << "No" << endl;
  	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string S;
      |         ^~~~~~
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> S;
      |         ^~~
a.cc:6:16: error: 'S' was not declared in this scope
    6 |         cin >> S;
      |                ^
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:8:26: error: 'endl' was not declared in this scope
    8 |         cout << "Yes" << endl;
      |                          ^~~~
a.cc:10:14: error: 'cout' was not declared in this scope
   10 |         else cout << "No" << endl;
      |              ^~~~
a.cc:10:30: error: 'endl' was not declared in this scope
   10 |         else cout << "No" << endl;
      |                              ^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 's' was not declared in this scope
    7 |         if(s[2]==s[3]&&s[4]==s[5]){
      |            ^
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args){
 
	Scanner sc = new Scanner(System.in);
    String S = sc.next();
	char[]ss = S.toCharArray();
      
      if(ss[2]==ss[3] && ss[4]==ss[5]){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }


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

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

int main() {
  string s;
  cin >> s;
  
  if(s.at(2)==s.at(3) && s.at(4)==s.at(5)){
    cout << "Yes" << endl;
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected '}' before 'else'
   10 |   else{
      |   ^~~~
a.cc:8:43: note: to match this '{'
    8 |   if(s.at(2)==s.at(3) && s.at(4)==s.at(5)){
      |                                           ^
Language: C++

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

int main() {
  string curr_str;
  cin >> curr_str;
  if (curr_str[2] == curr_str[3] && curr_str[4] == curr_str[5]) {
    cout << "Yes";
  }
  else {
    cout << "No";
  }
  return 0;
}

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

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

int main() {
  string s = 0;	
  cin >> S;
  bool tf = string[2] == string[3]
  bool ff = string[4] == string[5]
  if(tf && ff ){
  cout<<'Yes'<<endl;
  }
  cout<<'No'<<endl;
}


Compiler output:
a.cc:10:9: warning: multi-character character constant [-Wmultichar]
   10 |   cout<<'Yes'<<endl;
      |         ^~~~~
a.cc:12:9: warning: multi-character character constant [-Wmultichar]
   12 |   cout<<'No'<<endl;
      |         ^~~~
a.cc: In function 'int main()':
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
a.cc:7:19: error: expected primary-expression before '[' token
    7 |   bool tf = string[2] == string[3]
      |                   ^
a.cc:7:32: error: expected primary-expression before '[' token
    7 |   bool tf = string[2] == string[3]
      |                                ^
Language: C++

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

int main() {
  string s = 0;	
  cin >> S;
  bool tf = string[2] == string[3]
  bool ff = string[4] == string[5]
  if(tf && ff ){
  cout<<"Yes"<<endl;
  }
  cout<<"N0"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
a.cc:7:19: error: expected primary-expression before '[' token
    7 |   bool tf = string[2] == string[3]
      |                   ^
a.cc:7:32: error: expected primary-expression before '[' token
    7 |   bool tf = string[2] == string[3]
      |                                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define MX 10
#define INF 9999999
int parent[MX+5];

int main()
{
    int i,j,n,t,f=0;
    string s;

    cin>>s;
   
        if(s[2]==s[3]&&s[4]==s[5]){}
            cout<<"Yes"<<"\n";
        else
            cout<<"No"<<"\n";
   

    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'else' without a previous 'if'
   16 |         else
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define rep(i,n) for (int i=0;i < (n); ++i)
#define ALL(x) (x).begin(), (x).end()
using namespace std;
using ll = long long;
 
 
int main() {
    stirbg S;
    cin >> S;
    if(S[3]==S[2]&&S[4]==S[5]) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'stirbg' was not declared in this scope
   10 |     stirbg S;
      |     ^~~~~~
a.cc:11:12: error: 'S' was not declared in this scope
   11 |     cin >> S;
      |            ^
Language: C

#include<stdio.h>

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

     

Compiler output:
main.c: In function 'main':
main.c:8:32: error: expected ')' before 'printf'
    8 |   if((c[2]==c[3])&&(c[4]==c[5])
      |     ~                          ^
      |                                )
    9 |     printf("Yes\n");
      |     ~~~~~~                      
main.c:13:1: error: expected expression before '}' token
   13 | }
      | ^
Language: C++

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

//マクロ
//forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
//Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=(ll)(b);i--)
//xにはvectorなどのコンテナ
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値を求める
#define MIN(x) *min_element(ALL(x)) //最小値を求める
//定数
#define INF 1000000000000 //10^12:極めて大きい値,∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用)
#define PI 3.14159265359 //πの値
//略記
#define PB push_back //vectorヘの挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pairの一つ目の要素
#define S second //pairの二つ目の要素

 
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
 string N;
  cin >> N;
  if(N(2) == N (3) && N(4) == N(5)) cout << "Yes";
  else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:7: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
   36 |   if(N(2) == N (3) && N(4) == N(5)) cout << "Yes";
      |      ~^~~
a.cc:36:16: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
   36 |   if(N(2) == N (3) && N(4) == N(5)) cout << "Yes";
      |              ~~^~~
a.cc:36:24: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
   36 |   if(N(2) == N (3) && N(4) == N(5)) cout << "Yes";
      |                       ~^~~
a.cc:36:32: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
   36 |   if(N(2) == N (3) && N(4) == N(5)) cout << "Yes";
      |                               ~^~~
Language: C++

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

int main(){
  string str;
  if(str[2]==str[3]&&str[4]==str[5]){cout<<"Yes"; break ;}
  cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:51: error: break statement not within loop or switch
    7 |   if(str[2]==str[3]&&str[4]==str[5]){cout<<"Yes"; break ;}
      |                                                   ^~~~~
Language: C++

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

int main(){
  string str;
  if(str[2]==str[3]&&str[4]==str[5]){cout<<"Yes" break ;}
  cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:49: error: expected ';' before 'break'
    7 |   if(str[2]==str[3]&&str[4]==str[5]){cout<<"Yes" break ;}
      |                                                 ^~~~~~
      |                                                 ;
Language: Java

import java.util.Scanner;
public class Main160A {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String A = sc.next();

		if ((A.substring(4, 5)).equals(A.substring(5, 6))) {
			if ((A.substring(A.length()-2,A.length()-1)).equals(A.substring(A.length()-1))) {
				System.out.print("Yes");
			}
		} else {
			System.out.print("No");
		}

	}

}


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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String A = sc.next();

		if ((A.substring(4, 5)).equals(A.substring(5, 6))) {
			if ((A.substring(A.length()-2,A.length()-1)).equals(A.substring(A.length()-1))) {
				System.out.print("Yes");
			}
		} else {
			System.out.print("No");
		}

	}

}


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

#include <stdio.h>

int strlen(char *s)
{
	int i = 0;
	while (s[i]) i++
	return i;
}

int cheackstr(char *s)
{
	for (int i = 3, cnt = 0; cnt < 2; i += 2, cnt++)
	{
		if (s[i] != s[i])
			return 0;
	}
	return 1;
}

int main(void)
{
	char s[7] = {};
	scanf("%s", s);
	if (strlen(s) != 6) return 0;
	if (cheackstr(s)) puts("Yes");
	else puts("No");
	return 0;
}

Compiler output:
a.cc: In function 'int strlen(char*)':
a.cc:6:25: error: expected ';' before 'return'
    6 |         while (s[i]) i++
      |                         ^
      |                         ;
    7 |         return i;
      |         ~~~~~~           
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
Language: C++

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

int main() {
  string S;
  int >> S;
  
  if (S.at(2) == S.at(3) && S.at(4) == S.at(5)){
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected unqualified-id before '>>' token
    6 |   int >> S;
      |       ^~
Language: C++

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

int main()
{
    string s;
    cin>>s;
  
   bool j = false;
   
   if(s.[2]==s.[3])
   {
      if(s.[4]==s.[5])
      {
          j = true;
      }
   }
   
   if(j)
     cout<<"Yes"<<endl;
  else
     cout<<"No"<<endl;



}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected unqualified-id before '[' token
   11 |    if(s.[2]==s.[3])
      |         ^
a.cc:11:16: error: expected unqualified-id before '[' token
   11 |    if(s.[2]==s.[3])
      |                ^
a.cc:13:12: error: expected unqualified-id before '[' token
   13 |       if(s.[4]==s.[5])
      |            ^
a.cc:13:19: error: expected unqualified-id before '[' token
   13 |       if(s.[4]==s.[5])
      |                   ^
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
	char str[6];
	int i;
	scanf("%s",&str);
	if(str[i]>=97&&str[i]<=122)
	{
		if((str[2]==str[3])&&str[4]==str[5])
		{
			printf("Yes\n");
		}
		else
		{
			printf("No\n");
		}
	}
	return 0;
}:

Compiler output:
main.c:20:2: error: expected identifier or '(' before ':' token
   20 | }:
      |  ^
Language: C

#include<stdio.h>
int main(void){
  	char s[6];
  scanf("%s",s);
  if(s[2] == s[3] && s[4] == s[5]){
    	printf("Yes");
  }else{
    	pirntf("No");
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'pirntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |         pirntf("No");
      |         ^~~~~~
      |         printf
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    cin>>s;
    for(int i=1;i<=n;i++)
    {
        if(s[3]==s[4] && s[5]==s[6])
        cout<<"Yes";
        else
        cout<<"No";
    }
}

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

#include <stdio.h>
int main(void){
  char str[6];
  scanf("%s",str);
  if ((str[2]==str[3])&&(str[4]==str[5]))
    printf("Yes\n");
  else
    printf("No"\n");
    return 0;
           }

Compiler output:
a.cc:8:16: error: stray '\' in program
    8 |     printf("No"\n");
      |                ^
a.cc:8:18: warning: missing terminating " character
    8 |     printf("No"\n");
      |                  ^
a.cc:8:18: error: missing terminating " character
    8 |     printf("No"\n");
      |                  ^~~
a.cc: In function 'int main()':
a.cc:8:16: error: expected ')' before 'n'
    8 |     printf("No"\n");
      |           ~    ^~
      |                )
Language: C++

#include <stdio.h>
 
int main(void)
{
  char moji[100];
  
  do {
    scanf("%s",moji);
  } while (sizeof(moji) != 7);
  
  if(moji[2] == moji[3] && moji[4] == moji[5])
    puts("Yes");
  else
    puts("No");
  
  return 0;
}
#include <stdio.h>

int main(void)
{
  char moji[100];
  
  do {
    scanf("%s",moji);
  } while (sizeof(moji) != 6);
  
  if(moji[2] == moji[3] && moji[4] == moji[5])
    puts("Yes");
  else
    puts("No");
  
  return 0;
}

Compiler output:
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main(void)
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(void)
      |     ^~~~
Language: C++

#include <stdio.h>
int main (void){
  char str[6];
  sacnf("%s", str);
  
  if(str[2]==str[3]&&str[4]==str[5])
    printf("Yes\n");
  else
    printf("No\n");
  
  return 0;
}

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

#include <stdio.h>
int main (void){
  char str[6];
  sacnf("%s",str);
  
  if(str[2]==str[3]&&str[4]==str[5])
    printf("Yes\n");
  else
    printf("No\n");
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'sacnf' was not declared in this scope; did you mean 'scanf'?
    4 |   sacnf("%s",str);
      |   ^~~~~
      |   scanf
Language: C

#include <stdio.h>
int main (void){
  char str[6];
  sacnf("%s",str);
  
  if(str[2]==str[3]&&str[4]==str[5])
    printf("Yes\n");
  else
    printf("No\n");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |   sacnf("%s",str);
      |   ^~~~~
      |   scanf
Language: C++

#include<stdio.h>
int main (void){
  char str[6];
  sacnf("%s",str);
  
  if(str[2]==str[3]&&str[4]==str[5])
    printf("Yes\n");
  else
    printf("No\n");
  
  return 0;
}

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

#include<stdio.h>
int main void{
  char str[6];
  sacnf("%s",str);
  
  if(str[2]==str[3]&&str[4]==str[5])
    printf("Yes\n");
  else
    printf("No\n");
  
  return 0;
}

Compiler output:
a.cc:2:10: error: expected initializer before 'void'
    2 | int main void{
      |          ^~~~
Language: C

#include <stdio.h>
int main(void){
　char str[100];
　scanf("%s",str);
　if(str[2]==str[3] && str[4]==str[5])
　　printf("Yes");
  else
    printf("No");
  return 0;
 
 
 
}

Compiler output:
main.c: In function 'main':
main.c:3:1: error: stray '\343' in program
    3 | <U+3000>char str[100];
      | ^~~~~~~~
main.c:4:1: error: stray '\343' in program
    4 | <U+3000>scanf("%s",str);
      | ^~~~~~~~
main.c:5:1: error: stray '\343' in program
    5 | <U+3000>if(str[2]==str[3] && str[4]==str[5])
      | ^~~~~~~~
main.c:6:1: error: stray '\343' in program
    6 | <U+3000><U+3000>printf("Yes");
      | ^~~~~~~~
main.c:6:3: error: stray '\343' in program
    6 | <U+3000><U+3000>printf("Yes");
      |         ^~~~~~~~
Language: C++

#include<stdio.h>
int main(void)
{
  char S[6];
  scanf("%d",&S[]);
  if((S[2]==S[3])&&(S[4]==S[5]))
     printf("Yes");
  else
    printf(No);
  return 0;
}
     
    

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: expected primary-expression before ']' token
    5 |   scanf("%d",&S[]);
      |                 ^
a.cc:9:12: error: 'No' was not declared in this scope
    9 |     printf(No);
      |            ^~
Language: C

#include <stdio.h>
int main(void){
 char str[];
 scanf("%s",str);
 if(str[2]==str[3] && str[4]==str[5])
   printf("Yes");
  else
    printf("No");
  return 0;



}

Compiler output:
main.c: In function 'main':
main.c:3:7: error: array size missing in 'str'
    3 |  char str[];
      |       ^~~
Language: C

include <stdio.h>

int main (void)
{
  char s[6];
  
  if(s[2]==s[3] && s[4]==s[5])
    printf("Yes");
  else
    printf("No");
  
  return 0;
  
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C++

#inclue <iostream>
using namespace std;

int main(void)
{
	char s[7];

	scanf("%s", &s);
	
	if (s[2] == s[3] && s[4] == s[5]) {
		cout << "Yes\n";
	}
	else
		cout << "No\n";

	return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf' was not declared in this scope
    8 |         scanf("%s", &s);
      |         ^~~~~
a.cc:11:17: error: 'cout' was not declared in this scope
   11 |                 cout << "Yes\n";
      |                 ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclue <iostream>
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << "No\n";
      |                 ^~~~
a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.Scanner;

public class hello {

    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        String input = scanner.next();
        if(input.charAt(3) == input.charAt(4) && input.charAt(5) == input.charAt(6)){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        scanner.close();
    }

}


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

import java.util.Map;
import java.util.Scanner;
public class Main {


    public static void main(String[] args) {


        Scanner scan = new Scanner(System.in);
        String N = scan.next();
        String M[]=new String [6];

        for(int i=0;i<6;i++)
        { M[i]=N.substring(i,i);}
        if(M[2].equals(M[3])&&M[4].equals(M[5])){System.out.println("Yes");}
       else{System.out.println("No");}
//入力完了

Compiler output:
Main.java:16: error: reached end of file while parsing
       else{System.out.println("No");}
                                      ^
1 error
Language: Java

import java.util.Map;
import java.util.Scanner;
public class Main {


    public static void main(String[] args) {


        Scanner scan = new Scanner(System.in);
        String N = scan.next();
        String M[]=new String [6];

        for(int i=0;i<6;i++)
        { M[i]=N.substring(i,i);}
        if(M[3].equals(M[4])&&M[5].equals(M[6])){System.out.println("Yes");}
       else{System.out.println("No");}

Compiler output:
Main.java:16: error: reached end of file while parsing
       else{System.out.println("No");}
                                      ^
1 error
Language: C++

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


string main() {
  string S;
  cin >> S;
  
  if(S[3] == S[4] && S[5] == S[6]) {
    cout << "Yes" << endl;
  }

  else {
    cout << "No" << endl;
  }
  
}


Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | string main() {
      | ^~~~~~
Language: C++

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


string main() {
  string S;
  cin >> S;
  
  if(S.[3] == S.[4] && S.[5] == S.[6]) {
    cout << "Yes" << endl;

  else {
    cout << "No" << endl;
  
}


Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | string main() {
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:9:8: error: expected unqualified-id before '[' token
    9 |   if(S.[3] == S.[4] && S.[5] == S.[6]) {
      |        ^
a.cc:9:17: error: expected unqualified-id before '[' token
    9 |   if(S.[3] == S.[4] && S.[5] == S.[6]) {
      |                 ^
a.cc:9:26: error: expected unqualified-id before '[' token
    9 |   if(S.[3] == S.[4] && S.[5] == S.[6]) {
      |                          ^
a.cc:9:35: error: expected unqualified-id before '[' token
    9 |   if(S.[3] == S.[4] && S.[5] == S.[6]) {
      |                                   ^
a.cc:12:3: error: expected '}' before 'else'
   12 |   else {
      |   ^~~~
a.cc:9:40: note: to match this '{'
    9 |   if(S.[3] == S.[4] && S.[5] == S.[6]) {
      |                                        ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:5:15: note: to match this '{'
    5 | string main() {
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
#define _GLIBCXX_DEBUG
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define rep(i,n) FOR(i,0,n)
const ll INF = 9223372036854775807;

int main() {
  int s;cin >> s;
  if(s.at(2) == s.at(3)&&s.at(4) == s.at(5)) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |   if(s.at(2) == s.at(3)&&s.at(4) == s.at(5)) cout << "Yes" << endl;
      |        ^~
a.cc:11:19: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |   if(s.at(2) == s.at(3)&&s.at(4) == s.at(5)) cout << "Yes" << endl;
      |                   ^~
a.cc:11:28: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |   if(s.at(2) == s.at(3)&&s.at(4) == s.at(5)) cout << "Yes" << endl;
      |                            ^~
a.cc:11:39: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |   if(s.at(2) == s.at(3)&&s.at(4) == s.at(5)) cout << "Yes" << endl;
      |                                       ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
#define _GLIBCXX_DEBUG
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define rep(i,n) FOR(i,0,n)
const ll INF = 9223372036854775807;

int main() {
  int s;cin >> s;
  if(s[2] == s[3]&&s[4] == [5]) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: invalid types 'int[int]' for array subscript
   11 |   if(s[2] == s[3]&&s[4] == [5]) cout << "Yes" << endl;
      |       ^
a.cc:11:15: error: invalid types 'int[int]' for array subscript
   11 |   if(s[2] == s[3]&&s[4] == [5]) cout << "Yes" << endl;
      |               ^
a.cc:11:21: error: invalid types 'int[int]' for array subscript
   11 |   if(s[2] == s[3]&&s[4] == [5]) cout << "Yes" << endl;
      |                     ^
a.cc:11:29: error: expected identifier before numeric constant
   11 |   if(s[2] == s[3]&&s[4] == [5]) cout << "Yes" << endl;
      |                             ^
a.cc: In lambda function:
a.cc:11:31: error: expected '{' before ')' token
   11 |   if(s[2] == s[3]&&s[4] == [5]) cout << "Yes" << endl;
      |                               ^
Language: Java

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
 
        String str = sc.nextLine();
      	if (str.endswith("ffee")){
          System.out.println("Yes");
        } else {
          System.out.println("No");
        }
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
      	if (str.endswith("ffee")){
      	       ^
  symbol:   method endswith(String)
  location: variable str of type String
1 error
Language: Java

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
 
        String str = sc.nextLine();
      	if (str.endWith("ffee")){
          System.out.println("Yes");
        } else {
          System.out.println("No");
        }
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
      	if (str.endWith("ffee")){
      	       ^
  symbol:   method endWith(String)
  location: variable str of type String
1 error
Language: Java

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
 
        String s = sc.nextLine();
      	if (s.endwith("ffee")){
          System.out.println("Yes");
        } else {
          System.out.println("No");
        }
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
      	if (s.endwith("ffee")){
      	     ^
  symbol:   method endwith(String)
  location: variable s of type String
1 error
Language: C++

#include<bits/stdc++.h>
#define endl '\n'
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define REP(i,a,b) for(int i=a; i<b; i++)

using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;

int main(){
    string s;
    cin>>s;
    if(s.size()==6&&s[2]==s[3]&&s[4]==s[5])
    {
        REP(i,0,6){
        if(s[i]<96){
            cout<<"NO"<<endl;
            break;
        }
        }
        else
        cout<<"YES"<<endl;
    }
        
    else
        cout<<"NO"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: expected '}' before 'else'
   25 |         else
      |         ^~~~
a.cc:18:5: note: to match this '{'
   18 |     {
      |     ^
a.cc: At global scope:
a.cc:29:5: error: expected unqualified-id before 'else'
   29 |     else
      |     ^~~~
a.cc:31:5: error: expected unqualified-id before 'return'
   31 |     return 0;
      |     ^~~~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

vector <string> s;
vector <string> ans;
ans = {};

int main() {
  for (int i = 0; i < s.size(); ++i) {
    cin >> s.at(i);
    ans.push_back(s.at(i));
  };

  if (ans.at(2) == ans.at(3) && ans.at(4) == ans.at(5)) {
    cout << "Yes" << endl;
    return 0;
  } else {
    cout << "No" << endl;
    return 0;
  }
};

Compiler output:
a.cc:9:1: error: 'ans' does not name a type
    9 | ans = {};
      | ^~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

vector <string> s;
vector <string> ans;
ans = {};

int main() {
  for (int i = 0; i < s.size(); ++i) {
    cin >> s.at(i);
    ans.push(s.at(i));
  };

  if (ans.at(2) == ans.at(3) && ans.at(4) == ans.at(5)) {
    cout << "Yes" << endl;
    return 0;
  } else {
    cout << "No" << endl;
    return 0;
  }
};

Compiler output:
a.cc:9:1: error: 'ans' does not name a type
    9 | ans = {};
      | ^~~
a.cc: In function 'int main()':
a.cc:14:9: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'push'
   14 |     ans.push(s.at(i));
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

vector <string> s;
vector <string> ans;
ans = {};

int main() {
  for (int i = 0; i < s.size(); ++i) {
    cin >> s.at(i);
    ans += {};
  };

  if (ans.at(2) == ans.at(3) && ans.at(4) == ans.at(5)) {
    cout << "Yes" << endl;
    return 0;
  } else {
    cout << "No" << endl;
    return 0;
  }
};

Compiler output:
a.cc:9:1: error: 'ans' does not name a type
    9 | ans = {};
      | ^~~
a.cc: In function 'int main()':
a.cc:14:9: error: no match for 'operator+=' (operand types are 'std::vector<std::__cxx11::basic_string<char> >' and '<brace-enclosed initializer list>')
   14 |     ans += {};
      |     ~~~~^~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

vector <string> s;
vector <string> ans;

int main() {
  for (int i = 0; i < s.size(); ++i) {
    cin >> s.at(i);
    ans += {};
  };

  if (ans.at(2) == ans.at(3) && ans.at(4) == ans.at(5)) {
    cout << "Yes" << endl;
    return 0;
  } else {
    cout << "No" << endl;
    return 0;
  }
};

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: no match for 'operator+=' (operand types are 'std::vector<std::__cxx11::basic_string<char> >' and '<brace-enclosed initializer list>')
   13 |     ans += {};
      |     ~~~~^~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  string s;
  cin >> s;
  if( s[2] ==s[3] and s[4] ==s[5]){
    cout <<"Yes" << endl;
  }
  else{
    cout << "No"<<endl;
  }


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

#include <iostream>
using namespace std;

int main(){
  string s;
  cin >> s;
  if( s[2] ==s[3] and s[4] ==s[5]){
    cout <<"Yes" << endl;
  }
  else cout << "No"<<endl;


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

#include <iostream>
using namespace std;

int main(){
  string s;
  cin >> s;
  if( s[2] ==s[3] and s[4] ==s[5]){
    cout <<"Yes" << endl;
  }
  else cout << "No";


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

#include <iostream>
using namespace std;

int main(){
  string s;
  cin >> s;
  if( s[2] ==s[3] and s[4] ==s[5]){
    cout <<"Yes" << endl;
  }
  else cout << "No"


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' at end of input
   10 |   else cout << "No"
      |                    ^
      |                    ;
a.cc:10:20: error: expected '}' at end of input
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		 String S = sc.next();
      	String[] SArray = S.split("");
      if( Arrays.equals(SArray2, SArray3)&&Arrays.equals(SArray4, SArray5)){
      System.out.println("Yes");}
      else{
      System.out.println("No");}
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
      if( Arrays.equals(SArray2, SArray3)&&Arrays.equals(SArray4, SArray5)){
                        ^
  symbol:   variable SArray2
  location: class Main
Main.java:8: error: cannot find symbol
      if( Arrays.equals(SArray2, SArray3)&&Arrays.equals(SArray4, SArray5)){
                                 ^
  symbol:   variable SArray3
  location: class Main
Main.java:8: error: cannot find symbol
      if( Arrays.equals(SArray2, SArray3)&&Arrays.equals(SArray4, SArray5)){
                                                         ^
  symbol:   variable SArray4
  location: class Main
Main.java:8: error: cannot find symbol
      if( Arrays.equals(SArray2, SArray3)&&Arrays.equals(SArray4, SArray5)){
                                                                  ^
  symbol:   variable SArray5
  location: class Main
4 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		 String S = sc.next();
      	String[] SArray = S.split("");
      if( Arrays.equals(SArray2, SArray3)&&Arrays.equals(SArray4, SArray5)){
      System.out.println("Yes");}
      else{
      System.out.println("No");}}
	}
}

Compiler output:
Main.java:13: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		 String S = sc.next();
      	String[] SArray = S.split("");
      if( Arrays.equals(SArray2, SArray3&&Arrays.equals(SArray4, SArray5)){
      System.out.println("Yes");}
      else{
      System.out.println("No");}}
	}
}
 

Compiler output:
Main.java:8: error: ')' expected
      if( Arrays.equals(SArray2, SArray3&&Arrays.equals(SArray4, SArray5)){
                                                                          ^
Main.java:13: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		 String S = sc.next();
      	String[] SArray = S.split("");
      if(SArray[2]equals(SArray[3])&&SArray[4]equals(SArray[5])){
      System.out.println("Yes");}
      else{
      System.out.println("No");}}
	}
}



Compiler output:
Main.java:8: error: ')' expected
      if(SArray[2]equals(SArray[3])&&SArray[4]equals(SArray[5])){
                  ^
Main.java:8: error: not a statement
      if(SArray[2]equals(SArray[3])&&SArray[4]equals(SArray[5])){
                                   ^
Main.java:8: error: ';' expected
      if(SArray[2]equals(SArray[3])&&SArray[4]equals(SArray[5])){
                                              ^
Main.java:8: error: ';' expected
      if(SArray[2]equals(SArray[3])&&SArray[4]equals(SArray[5])){
                                                               ^
Main.java:10: error: 'else' without 'if'
      else{
      ^
Main.java:13: error: class, interface, enum, or record expected
}
^
6 errors
Language: C++

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

int main() {
  string s;
  if( s.at(2) == s.at(3) && s.at(4) == s.at(5) ){
    cout << "Yes" << endl;
  }
  else{
    cout << #No# << endl;
  }
	return 0;
}


Compiler output:
a.cc:10:13: error: stray '#' in program
   10 |     cout << #No# << endl;
      |             ^
a.cc:10:16: error: stray '#' in program
   10 |     cout << #No# << endl;
      |                ^
a.cc: In function 'int main()':
a.cc:10:14: error: 'No' was not declared in this scope
   10 |     cout << #No# << endl;
      |              ^~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n); for(int i = 0;i < (n);i++)
using namespace std;
typedef long long ll;
typedef pair<int,int> P;

// 最小公倍数を求める
int euqlid (int a, int b){
  int temp;
  temp = a % b;
  if(temp == 0)return b;
  return euqlid(b,temp);
}
ll conbination(ll a,ll b){
  ll u = 1;
  ll d = 1;
  while(b != 0){
    u *= a;
    d *= b;
    a--;
    b--;
  }
  return u / d;
}
int fact(int n){
  if(n == 1)return 1;
  return n * fact(n-1);
  }

int main(){
  string s;
  cin >> s;
  int chk = 0;
  rep(i,cafe.size()){
    if(cafe[i] == cafe[i+1] and (i == 2 or i == 4))chk++;
  }
  if(chk == 2)cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:9: error: 'cafe' was not declared in this scope
   34 |   rep(i,cafe.size()){
      |         ^~~~
a.cc:2:38: note: in definition of macro 'rep'
    2 | #define rep(i,n); for(int i = 0;i < (n);i++)
      |                                      ^
Language: C++

#include<bits/stdc++.h>
#define N 200050
#define int long long
#define pb push_back
#define x first
#define y second
#define all(v) v.begin(),v.end()
#define coffee prince
#define sz(a) (int)a.size()
using namespace std;

signed main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    string a;
    cin>>a;
    if(s[2]==s[3]&&s[4]==s[5])cout<<"Yes";
    else cout<<"No";
    
        return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: 's' was not declared in this scope
   18 |     if(s[2]==s[3]&&s[4]==s[5])cout<<"Yes";
      |        ^
Language: C++

#niclude <iostream>
using namespace std;

int main(){
	char s[6];
  	cin >> s;
  
  	if(s[2]==s[3] && s[4]==s[5]){
    	cout<<"Yes"<<endl;
    } else{
    	cout<<"No"<<endl;
    }
  	return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #niclude; did you mean #include?
    1 | #niclude <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> s;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #niclude <iostream>
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout<<"Yes"<<endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |         cout<<"Yes"<<endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #niclude <iostream>
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<"No"<<endl;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:21: error: 'endl' was not declared in this scope
   11 |         cout<<"No"<<endl;
      |                     ^~~~
a.cc:11:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
usinng namespace std;

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

Compiler output:
a.cc:2:1: error: 'usinng' does not name a type
    2 | usinng namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s;
      |   ^~~~~~
a.cc:6:3: 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:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> s;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
a.cc:8:32: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(s[2]==s[3] && s[4]==s[5]) 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:8:49: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   if(s[2]==s[3] && s[4]==s[5]) 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:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else 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:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   else 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 <bits/stdc++.h>
using namespace std;
 
int main() {

  string str;
  cin >> str;
  
  if(str.at(2)==str.at(3) && str.at(4)==str.at(5)){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
  
}

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

#include <iostrem>
#include <string>

using namespace std;

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


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

#include <bits/stdc++.h>
#include <unordered_map>
#define mem(ara, a) memset(ara, a, sizeof(ara))
#define fo freopen("output.txt", "w", stdout)
#define fi freopen("bruh.txt", "r", stdin)
#define int long long
#define sp " "
#define pb push_back
#define ff first
#define sz(x) x.size();
#define len(x) x.length();
#define ss second
#define vi vector<int>
#define double long double
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#define pii pair<int, int>


long long inf = 2e18;
long long minf = -inf;
int ans = 0;
using namespace std;

signed main() {
int cn=0;
string str;
cin >> str;
for (int i=0;i<str.length();i++){
if (str[i-1]==str[i] or str[i-2==str[i-3]){
    cn++;
}
}
if (cn==2){
    cout << "Yes" << endl;
}
else if (cn<2){
    cout << "No" << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:42: error: expected ']' before ')' token
   30 | if (str[i-1]==str[i] or str[i-2==str[i-3]){
      |                                          ^
      |                                          ]
Language: C

#include<stdio.h>

int main(){
  char line[6];
  
  fgets(line,sizeof(line),stdin);
  
  if(line[2]==line[3] && line[4]==line[5]){
    printf("Yes");
    return 0
  }
  
  printf("No");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:13: error: expected ';' before '}' token
   10 |     return 0
      |             ^
      |             ;
   11 |   }
      |   ~
Language: C++

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

int main() {
  string ch;
  cin >> ch;
  bool ans = false;
  if (ch.at(3) == ch.at(4) && ch.at(5) == ch.at(6)) {
    ans == true;
    if(ans){
      cout << "Yes" << endl;
    }
    else {
      cout << "No" << endl;
    }  
}

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

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

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before '=' token
    7 |   if(s[2]===s[3]&&s[4]==s[5]){
      |            ^