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

package competitive;
import java.util.Scanner;

public class Competitive {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String S = in.nextLine();
        if (S.charAt(2) == S.charAt(3) && S.charAt(4) == S.charAt(5)) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

    }

}


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

public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String S = in.nextLine();
        if (S.charAt(2) == S.charAt(3) && S.charAt(4) == S.charAt(5)) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

    }

}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:12: error: class, interface, enum, or record expected
}
^
2 errors
Language: C

#include <stdio.h>
#include <string.h>
int main(void) {
	char coffee[256];
	scanf_s("%s\n", &coffee,256);
	char f1[1] = {coffee[2]};
	char f2[1] = { coffee[3]};
	char e1[1] = { coffee[4] };
	char e2[1] = { coffee[5] };
	if (strncmp(f1, f2, 1) == 0 && strncmp(e1, e2, 1) == 0) printf("Yes\n");
	else printf("No\n");
	return 0;
}

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

#include <stdio.h>
#include <string>
using namespace std;

int main(){
  string s="";
  cin>>s;
  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:3: error: 'cin' was not declared in this scope
    7 |   cin>>s;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:8:35: error: 'cout' was not declared in this scope
    8 |   if((s[3]==s[4])&&(s[5]==s[6])){ cout<<"Yes";}
      |                                   ^~~~
a.cc:8:35: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:10: error: 'cout' was not declared in this scope
    9 |   else { cout<<"No";}
      |          ^~~~
a.cc:9:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

word = input()
if(word[2] == word[3]):
    if(word[4] == word[5]):
            print('Yes')
    else:
            print('No')
else:
    print('No')

Compiler output:
a.cc:4:19: warning: multi-character character constant [-Wmultichar]
    4 |             print('Yes')
      |                   ^~~~~
a.cc:6:19: warning: multi-character character constant [-Wmultichar]
    6 |             print('No')
      |                   ^~~~
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'word' does not name a type
    1 | word = input()
      | ^~~~
Language: C++

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

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

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

#include<bits/stdc++.h>
using namespace std;
#define gcd(a,b) __gcd(a,b)
#define pb push_back
#define sevensins ios_base::sync_with_stdio(false);cin.tie(NULL);
#define ll long long int
#define mod  1000000007
#define vect vector<long long int>
#define bins binary_search
#define vecti vector<int>::iterator
#define bitout __builtin_popcount
#define binsrch binary_search
int main() 
{sevensins
ll t,i,j,k,l,n;
cin>>t;
while(t--)
{
    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:19:10: error: 's' was not declared in this scope
   19 |     cin>>s;
      |          ^
Language: Java

public static void main(String[] args) throws Exception {
        MyScanner in = new MyScanner();
        out = new PrintWriter(new BufferedOutputStream(System.out));

        String str = in.nextLine().trim();

        if (str.charAt(3) == str.charAt(4) && str.charAt(5) == str.charAt(6)) out.println("Yes");
        else out.println("No");


        out.close();
    }

    public static PrintWriter out;

    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;

        public MyScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) throws Exception {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

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

public class AtCoder {
    public static void main(String[] args) throws Exception {
        MyScanner in = new MyScanner();
        out = new PrintWriter(new BufferedOutputStream(System.out));

        String str = in.nextLine().trim();

        if (str.charAt(3) == str.charAt(4) && str.charAt(5) == str.charAt(6)) out.println("Yes");
        else out.println("No"); 


        out.close();
    }

    public static PrintWriter out;

    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;

        public MyScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}

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

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

public class AtCoder {
    public static void main(String[] args) throws Exception {
        MyScanner in = new MyScanner();
        out = new PrintWriter(new BufferedOutputStream(System.out));

        String str = in.nextLine().trim();

        if (str.charAt(3) == str.charAt(4) && str.charAt(5) == str.charAt(6)) out.println("Yes");
        else out.println("No");


        out.close();
    }

    public static PrintWriter out;

    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;

        public MyScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}

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

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

public  AtCoder {
    public static void main(String[] args) throws Exception {
        MyScanner in = new MyScanner();
        out = new PrintWriter(new BufferedOutputStream(System.out));

        String str = in.nextLine().trim();

        if (str.charAt(3) == str.charAt(4) && str.charAt(5) == str.charAt(6)) out.println("Yes");
        else out.println("No"); 


        out.close();
    }

    public static PrintWriter out;

    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;

        public MyScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}

Compiler output:
Main.java:4: error: class, interface, enum, or record expected
public  AtCoder {
        ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args) throws Exception {
                  ^
  (use --enable-preview to enable unnamed classes)
Main.java:61: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

#include <bits/stdc++.h>

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:11:33: error: expected primary-expression before '<' token
   11 |                 cout << "Yes" <<< endl;
      |                                 ^
Language: Java

// code by Juan Torres
import java.util.*;

public class a {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		boolean coffee = s.charAt(2) == s.charAt(3) && s.charAt(4) == s.charAt(5);
		System.out.println(coffee ? "Yes" : "No");
	}
}


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

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

const string YES = "Yes";
const string NO = "No";

void solve(const std::string& S){
	bool c = S[2] == S[3] and S[4] == S[5]; 
	(c) ? puts(YES) : puts(NO);
}

// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main(){
    std::string S;
    std::cin >> S;
    solve(S);
    return 0;
}


Compiler output:
a.cc: In function 'void solve(const std::string&)':
a.cc:9:20: error: cannot convert 'const std::string' {aka 'const std::__cxx11::basic_string<char>'} to 'const char*'
    9 |         (c) ? puts(YES) : puts(NO);
      |                    ^~~
      |                    |
      |                    const std::string {aka const std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:9:32: error: cannot convert 'const std::string' {aka 'const std::__cxx11::basic_string<char>'} to 'const char*'
    9 |         (c) ? puts(YES) : puts(NO);
      |                                ^~
      |                                |
      |                                const std::string {aka const std::__cxx11::basic_string<char>}
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: Java

import java.util.Scanner;

public class Coffee {

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

        char[] text = input.nextLine().trim().toCharArray();
        if(text.length >= 6){
            if(text[3-1]==text[4-1] && text[5-1] ==text[6-1]){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        }else{
            System.out.println("NO");
        }
    }
}


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

#include <bits/stdc++.h>
using namespace std;
#define ios ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define pb push_back
#define vi vector<ll>
#define vivi vector<vector<ll>> 
#define vipa vector<pair<ll,ll>>
#define F first
#define S second
#define M 1000000007
#define kl endl
#define string st
typedef long long ll;
void solve()
{
   st s;
   cin>>s;
   if(s[2]==s[3] && s[4]==s[5])
   {
       cout<<"Yes"
       return;
   }
   cout<<"No";
   
}
int  main() 
{ 
    ios;
    ll t;
    //cin>>t;
    t=1;
    while(t--)
    {   
        solve();
    }
	
	return 0; 
} 




Compiler output:
a.cc: In function 'void solve()':
a.cc:16:4: error: 'st' was not declared in this scope; did you mean 'std'?
   16 |    st s;
      |    ^~
      |    std
a.cc:17:9: error: 's' was not declared in this scope
   17 |    cin>>s;
      |         ^
a.cc:20:19: error: expected ';' before 'return'
   20 |        cout<<"Yes"
      |                   ^
      |                   ;
   21 |        return;
      |        ~~~~~~
Language: C++

/******************************************
* AUTHOR : Anik Das *
* NICK : sadn1ck *
* INSTITUTION : IIEST Shibpur *
******************************************/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define MOD 1000000007

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	//ios_base& scientific (ios_base& str);
	string t=0;
	cin >> t;
	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:17:12: error: 's' was not declared in this scope
   17 |         if(s[2]==s[3]&&s[4]==s[5]){
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#define f(i,a,n) for(int i=a;i<n;i++)
#define ve vector
#define ss second 
#define ff first
#define pf pop_front
#define pob pop_back
#define psf push_front
#define res(x) cout<<x<<'\n'
#define read(t) ll t;cin>>t

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:20:22: error: expected primary-expression before '<' token
   20 |         cout<<"Yes"<<<endl;
      |                      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 'a' was not declared in this scope
    6 |   if(s[2]==s[3]&&a[4]==s[5]){
      |                  ^
a.cc:11:4: error: expected '}' at end of input
   11 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:14: error: 'c' undeclared (first use in this function)
    5 |   scanf("%s",c);
      |              ^
main.c:5:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <cmath>
#include <stdio.h>
#include <list>
#include <numeric>
#include <stack>
#include <queue>
#include <tuple>
#include <bitset>
#include <map>
#include <math.h>
//　ceil(a/b)   (a + (b - 1))/ b
using namespace std;
#define rep(i,n) for(int i = 0; i < (n); i++)
typedef long long ll;
typedef pair<int,int> P;
const int inf=1000000007;
const ll mod=1000000007;
const double PI=3.14159265358979323846;
int dx[] = {1,-1,0,0};
int dy[] = {0,0,1,-1};

ll gcd(ll a, ll b){
  if (b==0) return a;
  else return gcd(b,a%b);
}

int cans(bool f){
  if(f) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}





int main(){
  string s;
  bool f = false;
  cin >> s;
  if(s[2] == s[3] && s[4] == s[5]) f = true;
  cnas(f);
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:47:3: error: 'cnas' was not declared in this scope; did you mean 'cans'?
   47 |   cnas(f);
      |   ^~~~
      |   cans
Language: C++

#include<stdio.h>
using namespace std;
// 2 3 4 5
int main(){
  char c[6]; 
  gets(c); 
  puts( (c[2]==c[3] && c[4]==c[5]) ? "Yes" : "No");
}

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

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

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

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

#include<stdio.h>

int main(){
  char s[6];
  int i=0;
  scanf("%s", s[]);
  
  while(s[i]!='\0'){
    i++;
  }
  
  if(s[3]==s[4]) printf("Yes");
  else if(s[5]==s[6]) printf("No");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected expression before ']' token
    6 |   scanf("%s", s[]);
      |                 ^
Language: Java

import java.util.Scanner;

public class Coffee {


    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String coffeeString = scanner.next();
        if (coffeeString.length() == 6) {

            if (coffeeString.charAt(2) == coffeeString.charAt(3) && coffeeString.charAt(4) == coffeeString.charAt(5)) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        } else {
            System.out.println("No");
        }


    }
}

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

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

Compiler output:
main.c: In function 'main':
main.c:3:5: error: two or more data types in declaration specifiers
    3 | int char S[7];
      |     ^~~~
main.c:4:1: error: expected declaration specifiers before 'scanf'
    4 | scanf("%d", &S);
      | ^~~~~
main.c:5:2: error: expected declaration specifiers before 'if'
    5 |  if (S[2]==S[3]&&S[4]==S[5])
      |  ^~
main.c:7:2: error: expected declaration specifiers before 'else'
    7 |  else
      |  ^~~~
main.c:9:1: error: expected declaration specifiers before 'return'
    9 | return;
      | ^~~~~~
main.c:2:5: error: old-style parameter declarations in prototyped function definition
    2 | int main (void)
      |     ^~~~
main.c:10: error: expected '{' at end of input
Language: C++

#include<bits/stdc++.h>

using namespace stf;

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

Compiler output:
a.cc:3:17: error: 'stf' is not a namespace-name
    3 | using namespace stf;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope
    6 |         string s; cin >> s;
      |         ^~~~~~
a.cc:6:9: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:19: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         string s; cin >> s;
      |                   ^~~
      |                   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:26: error: 's' was not declared in this scope
    6 |         string s; cin >> s;
      |                          ^
a.cc:7:38: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         if(s[2]==s[3] && s[4]==s[5]) cout << "Yes";
      |                                      ^~~~
      |                                      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:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         else cout << "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++

using namespace std;

int main(){
	char DATA[6];
	for (int i = 0l i<6; i++) cin >> DATA[i]

	if (DATA[2] == DATA[3] && DATA[4] == DATA[5]) printf("yes\n");
	else printf("No\n");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: expected ';' before 'i'
    5 |         for (int i = 0l i<6; i++) cin >> DATA[i]
      |                        ^~
      |                        ;
a.cc:5:35: error: 'cin' was not declared in this scope
    5 |         for (int i = 0l i<6; i++) cin >> DATA[i]
      |                                   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else printf("No\n");
      |         ^~~~
a.cc:8:14: error: 'printf' was not declared in this scope
    8 |         else printf("No\n");
      |              ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | using namespace std;
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int acs(const void *a, const void *b) { 
  return *(int*)a - *(int*)b;
} /* 1,2,3,4.. */
int des(const void *a, const void *b) {
  return *(int*)b - *(int*)a;
} /* 8,7,6,5.. */
int cmp_char(const void *a, const void *b) { 
  return *(char*)a - *(char*)b;
} /* a,b,c,d.. */
int cmp_str(const void *a, const void *b) {
  return strcmp(*(const char **)a, *(const char **)b);
} /* aaa,aab.. */
#define min(a,b) (a < b ? a : b)
#define max(a,b) (a > b ? a : b)
#define rep(i, l, r) for (int i = l; i < r; i++)
#define MAX 100001
#define MOD 1000000007
#define INF 1000000009
typedef long long int lli;

int main(void) {
  char s[MAX];
  scanf("%s", s);

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


Compiler output:
main.c: In function 'main':
main.c:29:36: error: expected ')' before ']' token
   29 |   if ( s[2] == s[3] && s[4] == s[5]] ) printf("Yes\n");
      |      ~                             ^
      |                                    )
main.c:29:36: error: expected statement before ']' token
main.c:29:38: error: expected statement before ')' token
   29 |   if ( s[2] == s[3] && s[4] == s[5]] ) printf("Yes\n");
      |                                      ^
main.c:30:3: error: 'else' without a previous 'if'
   30 |   else printf("No\n");
      |   ^~~~
Language: C

include<stdio.h>
 
 
int i = 0;
 
 
int main() {
    
    char S[6];
    scanf("%s", S);
 
    for (i = 0; i <= 5; i++) {
        if (S[2] == S[3] && S[4] == S[5]) {
            printf("yes\n");
        }
        else {
            printf("no\n");
        }
    }
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 |     scanf("%s", S);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include<stdio.h>
main.c:10:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   10 |     scanf("%s", S);
      |     ^~~~~
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:10: error: 'i' undeclared (first use in this function)
   12 |     for (i = 0; i <= 5; i++) {
      |          ^
main.c:12:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:13: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   14 |             printf("yes\n");
      |             ^~~~~~
main.c:14:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:14:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |             printf("no\n");
      |             ^~~~~~
main.c:17:13: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#define _CRT_SECURE_NO_WARNINGS
include<stdio.h>


int i = 0;
 
 
int main() {
    
    char S[6];
    scanf("%s", S);
 
    for (i = 0; i <= 5; i++) {
        if (S[2] == S[3] && S[4] == S[5]) {
            printf("yes\n");
        }
        else {
            printf("no\n");
        }
    }
}

Compiler output:
main.c:2:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    2 | include<stdio.h>
      |        ^
main.c: In function 'main':
main.c:11:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |     scanf("%s", S);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define _CRT_SECURE_NO_WARNINGS
main.c:11:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |     scanf("%s", S);
      |     ^~~~~
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:10: error: 'i' undeclared (first use in this function)
   13 |     for (i = 0; i <= 5; i++) {
      |          ^
main.c:13:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:13: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |             printf("yes\n");
      |             ^~~~~~
main.c:15:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |             printf("no\n");
      |             ^~~~~~
main.c:18:13: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#typedef long long int ll
using namespace std;
int main()
{
	string s;
	cin>>s;
	if(s[2]==s[3]&&s[5]==s[4])
	{
		cout<<"Yes"<<endl;
	}
	else
	{
		cout<<"No"<<endl;
	}
}
 

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #typedef
    3 | #typedef long long int ll
      |  ^~~~~~~
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: unable to find numeric literal operator 'operator""co'
    7 |     if (S[2] == S[3] && S[4] == S[5co]) cout << "Yes" << endl;
      |                                   ^~~
Language: C

#include<stdio.h>
#include<string.h>

int main(){
  int i=0;
  char S[5];
  
  scanf("%s", S);
  
  for(i = 0; i <= 5; i++){
    if(S[2] == S[3] && S[4] == S[5]){
      printf("yes\n");
      else
        printf("no\n");
    }
  }
}

Compiler output:
main.c: In function 'main':
main.c:13:7: error: expected '}' before 'else'
   13 |       else
      |       ^~~~
main.c: At top level:
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C++

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

int main(){
  string str;
  cin >> str;
  if(str.length() < 6) cout << "No" << endl;
  else{
  	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: iostream.h: No such file or directory
    1 | #include <iostream.h>
      |          ^~~~~~~~~~~~
compilation terminated.
Language: C++

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

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


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

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

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

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

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

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:5:17: error: 'string' was not declared in this scope
    5 |                 string s; cin >> s;
      |                 ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:5:27: error: 'cin' was not declared in this scope
    5 |                 string s; 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 | using namespace std;
a.cc:5:34: error: 's' was not declared in this scope
    5 |                 string s; cin >> s;
      |                                  ^
a.cc:8:25: error: 'cout' was not declared in this scope
    8 |                         cout <<"Yes\n";
      |                         ^~~~
a.cc:8:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:25: error: 'cout' was not declared in this scope
   12 |                         cout << "No\n";
      |                         ^~~~
a.cc:12:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

S=input();

if((S[2:3]) == (S[3:4])):
    if((S[4:5]) == (S[5:])):
        print('Yes');
    else:
        print('No');

Compiler output:
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
    5 |         print('Yes');
      |               ^~~~~
a.cc:7:15: warning: multi-character character constant [-Wmultichar]
    7 |         print('No');
      |               ^~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S=input();
      | ^
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if((S[2:3]) == (S[3:4])):
      | ^~
a.cc:6:5: error: expected unqualified-id before 'else'
    6 |     else:
      |     ^~~~
Language: C++

#include<bits/stdc++.h> 
using namespace std;
int main(){
    int k,n,a[2000],x;
    cin>>k>>n;
    for(int i=0;i<N;i++){
        cin>>a[i];
    }
 
    int box1, box2;
    box1=a[0]+(k-a[n-1]);
    for(int i=0;i<N-1;i++){
        box2=A[i+1]-A[i];
        if(box1<box2)
          box1=box2;
    }
    cout<<k-box1<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: 'N' was not declared in this scope
    6 |     for(int i=0;i<N;i++){
      |                   ^
a.cc:12:19: error: 'N' was not declared in this scope
   12 |     for(int i=0;i<N-1;i++){
      |                   ^
a.cc:13:14: error: 'A' was not declared in this scope
   13 |         box2=A[i+1]-A[i];
      |              ^
Language: C++

#include<iostream>
using namespace std;
typedef long long int ll;
int main(){
  ll x;
  cin>>x;
  a=x/500;
  k=x%500;
  b=k/5;
  cout<<a*1000+b*5<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'a' was not declared in this scope
    7 |   a=x/500;
      |   ^
a.cc:8:3: error: 'k' was not declared in this scope
    8 |   k=x%500;
      |   ^
a.cc:9:3: error: 'b' was not declared in this scope
    9 |   b=k/5;
      |   ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected primary-expression before 's'
    5 |   cin>>string s;
      |               ^
a.cc:6:6: error: 's' was not declared in this scope
    6 |   if(s.at(4)==s.at(3)&&s.at(5)==s.at(6)){
      |      ^
Language: C++

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


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

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

}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlclude; did you mean #include?
    1 | #inlclude<bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string s;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inlclude<bits/stdc++.h>
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     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 | #inlclude<bits/stdc++.h>
a.cc:5:10: error: 's' was not declared in this scope
    5 |     cin>>s;
      |          ^
a.cc:6:8: error: 'a' was not declared in this scope
    6 |     if(a[2]==a[3] && a[4]==a[5]){
      |        ^
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<"Yes";
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout<<"No";
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<bits/stdc++.h>

using namespace std;

void main(){
  	ios::sync_with_stdio(0);
	cin.tie(0);
	string S;
  	getline(cin, S);
  	cout << ( (S[2]==S[3]) && (S[4] == S[5]) ? "Yes" : "No"); 
}

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

package beginner160;

import java.util.Scanner;

public class MainA {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		sc.close();

		char three = s.charAt(2);
		char four = s.charAt(3);
		char five = s.charAt(4);
		char six = s.charAt(5);

		boolean answer = false;
		if (three == four && five == six) {
			answer = true;
		}

		printBool(answer);
	}

    private static void printBool(boolean answer) {
        System.out.println(answer ?  "Yes" : "No");
    }
}

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

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

int lcm(int x,int y)
{
    return (x*y)/__gcd(x,y);
}
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:17:18: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   17 |         cout<"No"<<endl;
      |              ~~~~^~~~~~
Language: Java

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

public class coffee {
    public static void main(String[] args)
    {
        Scanner s = new Scanner(System.in);
        String S = s.nextLine();
        if(S.substring(2,3).equals(S.substring(3,4)) && S.substring(4,5).equals(S.substring(5,6)))
            System.out.println("Yes");
        else
            System.out.println("No");
    }
}


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

/******************************************************************************

Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.

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

#include <iostream>

#include <stdio.h>

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:34:1: error: expected declaration before '}' token
   34 | }
      | ^
Language: C++

#include <bits/stdc++.h>

#include<iostream>

#include <stdio.h>

using namespace std;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: expected ';' before '}' token
   18 |   cout << "No"
      |               ^
      |               ;
   19 |   }
      |   ~
Language: C++

z = input()
b=0

if z[2] == z[3]:
    if z[4] == z[5]:
        print('Yes')
        b  = 1


if b==0:
    print('No')


Compiler output:
a.cc:6:15: warning: multi-character character constant [-Wmultichar]
    6 |         print('Yes')
      |               ^~~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'z' does not name a type
    1 | z = input()
      | ^
Language: C++

#include <bits/stdc++.h>
typedef long long l1;
#define mod 1000000007
#define f first
#define se second
#define pb push_back
#define pp pop_back
#define all(x) x.begin(),x.end()
#define set(a,b) memset(a,b,sizeof(a))
#define mn *min_element
#define mx *max_element
#define input l1 t; cin>>t; while(t--)
using namespace std;

int main()
{
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);cout.tie(NULL);
  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:19:6: error: 's' was not declared in this scope; did you mean 'se'?
   19 |   if(s[2]==s[3]&&s[4]==s[5])
      |      ^
      |      se
Language: C


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

Compiler output:
main.c:10:1: error: unknown type name 'Submission'
   10 | Submission Info
      | ^~~~~~~~~~
main.c:10:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
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:
a.cc: In function 'int main()':
a.cc:6:3: error: 'String' was not declared in this scope
    6 |   String str;
      |   ^~~~~~
a.cc:8:10: error: 'str' was not declared in this scope; did you mean 'std'?
    8 |   cin >> str;
      |          ^~~
      |          std
Language: C++

include <bits/stdc++.h>
using namespace std;
 
int main() {
  	string s;
  	cin >> s;
  	map<char, int> mp;
  	for(int i = 0; i < s.size(); i++) {
      	mp[s[i]]++;
    }
  	if((mp.size() == 4 && s[2] == s[3] && s[4] == s[5]) || (mp.size() == 2 && s[2] == s[3] && s[3] == s[4] && 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 <bits/stdc++.h>
      | ^~~~~~~
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:7:9: error: 'map' was not declared in this scope
    7 |         map<char, int> mp;
      |         ^~~
a.cc:7:13: error: expected primary-expression before 'char'
    7 |         map<char, int> mp;
      |             ^~~~
a.cc:9:9: error: 'mp' was not declared in this scope
    9 |         mp[s[i]]++;
      |         ^~
a.cc:11:13: error: 'mp' was not declared in this scope
   11 |         if((mp.size() == 4 && s[2] == s[3] && s[4] == s[5]) || (mp.size() == 2 && s[2] == s[3] && s[3] == s[4] && s[4] == s[5]))
      |             ^~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:12:26: error: 'endl' was not declared in this scope
   12 |         cout << "Yes" << endl;
      |                          ^~~~
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << "No" << endl;
      |         ^~~~
a.cc:14:25: error: 'endl' was not declared in this scope
   14 |         cout << "No" << endl;
      |                         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char ch[6];
    gets(ch);

    if(ch[2]== ch[3] && ch[4]==ch[5])
       printf("Yes\n");
     
    else printf("No\n");

    return 0;
}


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

#include<bits\stdc++.h>
using namespace std;
 
int main(void)
{
	char s[7]; scanf("%s", s);
	printf("%s\n", s[2] == s[3] && s[4] == s[5] ? "Yes" : "No");
	return 0;
}

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