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

#include <cstdio>//头文件不解释
#include <iostream>
#include <string>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <iomanip>
#define rr register
#define int long long
#define f_for(i,a,b) for(rr int i=a;i<=b;i++)
using namespace std;
const int maxx=1e4;
int n,m;
string a,b;
int  main() 
{
	cin>>a;
	b=a;// 把原来的赋到b上最后比较
	bool t=true;
	int len=a.length()-1;
	for(rr int i=0; i<=len; i++)
		switch(a[i])
		{
			case 'q':
				a[i]='p';
				break;
			case 'p':
				a[i]='q';
				break;
			case 'b':
				a[i]='d';
				break;
			case 'd':
				a[i]='b';
				break;
		}
	for(rr int i=0; i<=len; i++)
		if(a[i]!=b[len-i])
			t=false;
	if(t)
		cout<<"Yes"<<endl;
	else
		cout<<"No"<<endl;
}


Compiler output:
cc1plus: error: '::main' must return 'int'
a.cc: In function 'int main()':
a.cc:21:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   21 |         for(rr int i=0; i<=len; i++)
      |                    ^
a.cc:37:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   37 |         for(rr int i=0; i<=len; i++)
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
char s[100009];
int a[228];
int main()
{
  int i;	
  a['b']=0;
  a['p']=1;
  a['d']=2; 
  a['q']=3;
  scanf("%s",s+1);
  for(i=strlen(s+1),i=1;i<=(i>>1)+1;i++)
    {
      if(a[s[i]]^((a[s[l-i+1]]+2)%4)) 
	    {
	      cout<<"No"<<endl;
		  return 0;	
		}
    }
  cout<<"Yes"<<endl; 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: 'l' was not declared in this scope
   15 |       if(a[s[i]]^((a[s[l-i+1]]+2)%4))
      |                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    string str;
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    cin>>str;
    string tmp=str;
    reverse(str.begin(),str.end())
    for(string::iterator it=str.begin();it!=str.end();++it)
        switch(*it)
        {
            case 'p':*it='q';break;
            case 'q':*it='p';break;
            case 'b':*it='d';break;
            case 'd':*it='b';break;
        }
    if(str==tmp) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:35: error: expected ';' before 'for'
   11 |     reverse(str.begin(),str.end())
      |                                   ^
      |                                   ;
   12 |     for(string::iterator it=str.begin();it!=str.end();++it)
      |     ~~~                            
a.cc:12:41: error: 'it' was not declared in this scope; did you mean 'int'?
   12 |     for(string::iterator it=str.begin();it!=str.end();++it)
      |                                         ^~
      |                                         int
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
    cin>>s;
    string b=s;
    reverse(s.begin(),s.end());
    for(int i=0;i<a.size();++i)
    {
        if(s[i]=='b')s[i]='d';
        else if(s[i]=='d')s[i]='b';
        else if(s[i]=='p')s[i]='q';
        else if(s[i]=='q')s[i]='p';
    }
    if(s==b) cout<<"Yes";
    else cout<<"No";
    return 0;
}

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

#include <iostream>

using namespace std;

int main(int argc, char *argv[]) {
    string s;
    
    cin >> s;
    string t = "";
    string r = s;
    reverse(s.begin(), s.end());
    
    for (int i = 0; i < r.length(); i++) {
        if (r[i] == 'b') t += 'd';
        else if (r[i] == 'd') t += 'b';
        else if (r[i] == 'p') t += 'q';
        else if (r[i] == 'q') t += 'p';
    }
    
    if (t == s) {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:11:5: error: 'reverse' was not declared in this scope
   11 |     reverse(s.begin(), s.end());
      |     ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    string a;
    char k;
    cin>>a;
    string b="";
    for(int i=a.length()-1;i>=0;i--)
    {
        k=a[i];
        switch(k)
        {
            case 'b':b+="d";
            case 'd':b+="b";
            case "p":b+="q";
            case 'q':b+="p";
        }
    }
    if(a==b) cout<<"Yes";
    else cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   15 |             case "p":b+="q";
      |                  ^~~
a.cc:15:18: error: could not convert '"p"' from 'const char [2]' to 'int'
   15 |             case "p":b+="q";
      |                  ^~~
      |                  |
      |                  const char [2]
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	string x,y;
    int sum;
    cin>>x;
    sum=strlen(x);/
    sum=sum-1;
    for(int i=0;a[i]!='\0';i++){
        if(x[i]=='b') y[sum]='d';
        if(x[i]=='d') y[sum]='b';
        if(x[i]=='p') y[sum]='q';
        if(x[i]=='q') y[sum]='p';
        sum--;
    }
    if(strcmp(x,y)==false)
	{
        cout<<"Yes";
    }
	else
	{
        cout<<"No";
    }

 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    8 |     sum=strlen(x);/
      |                ^
      |                |
      |                std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
a.cc:8:19: error: expected primary-expression before '/' token
    8 |     sum=strlen(x);/
      |                   ^
a.cc:10:17: error: 'a' was not declared in this scope
   10 |     for(int i=0;a[i]!='\0';i++){
      |                 ^
a.cc:17:15: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   17 |     if(strcmp(x,y)==false)
      |               ^
      |               |
      |               std::string {aka std::__cxx11::basic_string<char>}
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	char x[88888888],y[88888888];
    int sum;
    cin>>x;
    sum=strlen(x);/
    sum=sum-1;
    for(int i=0;a[i]!='\0';i++){
        if(x[i]=='b') y[sum]='d';
        if(x[i]=='d') y[sum]='b';
        if(x[i]=='p') y[sum]='q';
        if(x[i]=='q') y[sum]='p';
        sum--;
    }
    if(strcmp(x,y)==false)
	{
        cout<<"Yes";
    }
	else
	{
        cout<<"No";
    }

 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before '/' token
    8 |     sum=strlen(x);/
      |                   ^
a.cc:10:17: error: 'a' was not declared in this scope
   10 |     for(int i=0;a[i]!='\0';i++){
      |                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main(){
	cin>>s;
	string s1=reverse(s.begin(),s.end());
	for(interestingi;i<s.length();i++){
		if(s[i]=='b')s[i]=d;
		else if(s[i]=='d')s[i]=='b';
		else if(s[i]=='p')s[i]='q';
		else if(s[i]=='q')s[i]='p';
	} 
	if(s==s1)cout<<"Yes";
	else cout<<"No"; 
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |         string s1=reverse(s.begin(),s.end());
      |                   ~~~~~~~^~~~~~~~~~~~~~~~~~~
a.cc:7:13: error: 'interestingi' was not declared in this scope
    7 |         for(interestingi;i<s.length();i++){
      |             ^~~~~~~~~~~~
a.cc:7:26: error: 'i' was not declared in this scope
    7 |         for(interestingi;i<s.length();i++){
      |                          ^
a.cc:8:35: error: 'd' was not declared in this scope
    8 |                 if(s[i]=='b')s[i]=d;
      |                                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main(){
	cin>>s;
	string s1=reverse(s.begin(),s.end());
	for(interestingi;i<s.length();i++){
		if(s[i]=='b')s[i]=d;
		else if(s[i]=='d')s[i]=='b';
		else if(s[i]=='p')s[i]='q';
		else if(s[i]=='q')s[i]='p;
	} 
	if(s==s1)cout<<"Yes";
	else cout<<"No"; 
} 

Compiler output:
a.cc:11:40: warning: missing terminating ' character
   11 |                 else if(s[i]=='q')s[i]='p;
      |                                        ^
a.cc:11:40: error: missing terminating ' character
   11 |                 else if(s[i]=='q')s[i]='p;
      |                                        ^~~
a.cc: In function 'int main()':
a.cc:6:26: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |         string s1=reverse(s.begin(),s.end());
      |                   ~~~~~~~^~~~~~~~~~~~~~~~~~~
a.cc:7:13: error: 'interestingi' was not declared in this scope
    7 |         for(interestingi;i<s.length();i++){
      |             ^~~~~~~~~~~~
a.cc:7:26: error: 'i' was not declared in this scope
    7 |         for(interestingi;i<s.length();i++){
      |                          ^
a.cc:8:35: error: 'd' was not declared in this scope
    8 |                 if(s[i]=='b')s[i]=d;
      |                                   ^
a.cc:12:9: error: expected primary-expression before '}' token
   12 |         }
      |         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main(){
	cin>>s;
	string s1=reverse(s1.begin(),s1.end());
	for(interestingi;i<s.length();i++){
		if(s[i]=='b')s[i]=d;
		else if(s[i]=='d')s[i]=='b';
		else if(s[i]=='p')s[i]='q';
		else if(s[i]=='q')s[i]=p;
	} 
	if(s==s1)cout<<"Yes";
	else cout<<"No"; 
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |         string s1=reverse(s1.begin(),s1.end());
      |                   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
a.cc:7:13: error: 'interestingi' was not declared in this scope
    7 |         for(interestingi;i<s.length();i++){
      |             ^~~~~~~~~~~~
a.cc:7:26: error: 'i' was not declared in this scope
    7 |         for(interestingi;i<s.length();i++){
      |                          ^
a.cc:8:35: error: 'd' was not declared in this scope
    8 |                 if(s[i]=='b')s[i]=d;
      |                                   ^
a.cc:11:40: error: 'p' was not declared in this scope
   11 |                 else if(s[i]=='q')s[i]=p;
      |                                        ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
	string s;
	cin >> s;
	
	string s1(s);
	s1.reverse();
	
	const int slen = s1.length();
	
	for (int i = 0; i < slen; i++)
	{
		if (s1[i] == 'b') s1[i] = 'd';
		else if (s1[i] == 'd') s1[i] = 'b';
		else if (s1[i] == 'p') s1[i] = 'q';
		else if (s1[i] == 'q') s1[i] = 'p';
	}
	
	if (s == s1) cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reverse'; did you mean 'reserve'?
    9 |         s1.reverse();
      |            ^~~~~~~
      |            reserve
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int s;
    string p,q;
    cin>>p;
    s=p.size();
    for(int i=0;i<s;i++){
        q[i]=p[s-i-1];//这里翻转之后的在P数组里，后面修改的却是Q数组 
        if(q[i]=='b')
            q[i]='d';
        else 
            if(q[i]=='d')
                q[i]='b';
        else 
            if(q[i]=='p')
                q[i]='q';
        else 
            if(q[i]=='q')
                q[i]='p';
        //没有问题 
    }
    for(int i=0;i<s;i++){
        if(p[i]!=q[i]){
            cout<<"No";
            return 0;
        }
    }//if(p!=q)cout<<"No"； 
    cout<<"Yes";
    return 0;
}
源码  
```
#include<bits/stdc++.h>
using namespace std;
int main(){
	int s;
	string p,q;
	cin>>p;
	s=p.size();
	for(int i=0;i<s;i++){
		q[i]=p[s-i-1];//这里翻转之后的在P数组里，后面修改的却是Q数组 
		if(q[i]=='b')
			q[i]='d';
		else 
			if(q[i]=='d')
				q[i]='b';
		else 
			if(q[i]=='p')
				q[i]='q';
		else 
			if(q[i]=='q')
				q[i]='p';
		//没有问题 
	}
	for(int i=0;i<s;i++){
		if(p[i]!=q[i]){
			cout<<"No";
			return 0;
		}
	}//if(p!=q)cout<<"No"； 
	cout<<"Yes";
	return 0;
}

Compiler output:
a.cc:33:1: error: stray '`' in program
   33 | ```
      | ^
a.cc:33:2: error: stray '`' in program
   33 | ```
      |  ^
a.cc:33:3: error: stray '`' in program
   33 | ```
      |   ^
a.cc:32:1: error: '\U00006e90\U00007801' does not name a type
   32 | 源码
      | ^~~~
a.cc:36:5: error: redefinition of 'int main()'
   36 | int main(){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(){
      |     ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;
string a;
int main()
{
    cin>>a;
    int len=a.size();
    if(len%2==1) 
    {
        cout<<"No";
        cout<<endl;
        return 0;
    }
    int r=0;
    for(int i=0,j=len-1;i<j;i++,j--)
    {
        if((a[i]=='p' && a[j]=='q') || (a[i]=='q' && a[j]=='p') ||(a[i]=='d' && a[j]=='b') || (a[i]=='b' && a[j]=='d')) ;
        else 
        {

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

#include <bits/stdc++.h>
#define ll long long
#define INF 1000000000
using namespace std;
string s,ll;
int main(){
    cin>>s;
    lll=s;
    for(int i=0;i<s.size()/2;i++)swap(s[i],s[s.size()-1-i ] );
    for(int i=0;i<s.size();i++){
        switch(s[i]){
            case 'b':s[i]='d';break;
            case 'd':s[i]='b';break;
            case 'p':s[i]='q';break;
            case 'q':s[i]='p';break;
        } 
        if(s!=lll)printf("No\n");
        else printf("Yes\n");
    }
    return 0;
}

Compiler output:
a.cc:2:12: error: expected unqualified-id before 'long'
    2 | #define ll long long
      |            ^~~~
a.cc:5:10: note: in expansion of macro 'll'
    5 | string s,ll;
      |          ^~
a.cc: In function 'int main()':
a.cc:8:5: error: 'lll' was not declared in this scope; did you mean 'll'?
    8 |     lll=s;
      |     ^~~
      |     ll
Language: C++

#include<cstdio>
#include<iostream>
#include<cstring>
using namespace std;
char s[100005],s1[100005];
int main()
{
	gets(s);
	int len=strlen(s),m=-1;
	for(int i=len-1;i>=0;i--)
	{
		s1[++m]=s[i];
		if(s1[m]=='b')s1[m]='d';
		else if(s1[m]=='d')s1[m]='b';
		else if(s1[m]=='p')s1[m]='q';
		else if(s1[m]=='q')s1[m]='p';
	}
	int p=1;
	for(int i=0;i<len;i++)
	{
		if(s[i]!=s1[i])p=0;
	}
	if(p)printf("Yes");
	else printf("No");
	//printf("%c%c%c%c",s1[0],s1[1],s1[2],s1[3]);
	
	
	
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
    string s1;
    cin>>s1;
    string b=s1;
    reverse(s1.begin(),s1.end());
    for(int i=0;i<s1.size();++i)
    {
        if(s1[i]=='b') s1[i]='d';
        else if(s1[i]=='d') s1[i]='b';
        else if(s1[i]=='p') s1[i]='q';
        else if(s1[i]=='q') s1[i]='p';
    }
    if(s1==b) cout<<"Yes";
    else cout<<"No";
     court<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:6: error: 'court' was not declared in this scope
   17 |      court<<endl;
      |      ^~~~~
Language: C++

#include<algorithm>
#include<cstring>
#include<cstdio>
#include<cmath>
char s[100007];
int get[128];
int main()
{
    get['b'] = 0 , get['p'] = 1 , get['d'] = 2 , get['q'] = 3;
    scanf("%s",s+1);
    for(int l = strlen(s+1), i = 1; i <= (l>>1) + 1; ++i)
    {
        if(get[s[i]]^((get[s[l-i+1]]+2)%4)) return printf("No\n"),0;
    } 
    return printf("Yes\n"),0;


Compiler output:
a.cc: In function 'int main()':
a.cc:15:30: error: expected '}' at end of input
   15 |     return printf("Yes\n"),0;
      |                              ^
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
Language: C++

include<bits/stdc++.h>
using namespace std;
int main() {
    cout<<"Yes"<<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:4:5: error: 'cout' was not declared in this scope
    4 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:4:18: error: 'endl' was not declared in this scope
    4 |     cout<<"Yes"<<endl;
      |                  ^~~~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
	string a;
	cin>>a;
	if(a[0]=='b') b++;
	if(a[0]=='d') d++;
	if(a[0]=='q') q++;
	if(a[0]=='p') p++;
	if(a[1]=='b') b++;
	if(a[1]=='d') d++;
	if(a[1]=='q') q++;
	if(a[1]=='p') p++;
	if(a[2]=='b') b++;
	if(a[2]=='d') d++;
	if(a[2]=='q') q++;
	if(a[2]=='p') p++;
	if(a[3]=='b') b++;
	if(a[3]=='d') d++;
	if(a[3]=='q') q++;
	if(a[3]=='p') p++;
	if(b==1&&d==1&&p==1&&q==1) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'b' was not declared in this scope
    8 |         if(a[0]=='b') b++;
      |                       ^
a.cc:9:23: error: 'd' was not declared in this scope
    9 |         if(a[0]=='d') d++;
      |                       ^
a.cc:10:23: error: 'q' was not declared in this scope
   10 |         if(a[0]=='q') q++;
      |                       ^
a.cc:11:23: error: 'p' was not declared in this scope
   11 |         if(a[0]=='p') p++;
      |                       ^
a.cc:12:23: error: 'b' was not declared in this scope
   12 |         if(a[1]=='b') b++;
      |                       ^
a.cc:13:23: error: 'd' was not declared in this scope
   13 |         if(a[1]=='d') d++;
      |                       ^
a.cc:14:23: error: 'q' was not declared in this scope
   14 |         if(a[1]=='q') q++;
      |                       ^
a.cc:15:23: error: 'p' was not declared in this scope
   15 |         if(a[1]=='p') p++;
      |                       ^
a.cc:16:23: error: 'b' was not declared in this scope
   16 |         if(a[2]=='b') b++;
      |                       ^
a.cc:17:23: error: 'd' was not declared in this scope
   17 |         if(a[2]=='d') d++;
      |                       ^
a.cc:18:23: error: 'q' was not declared in this scope
   18 |         if(a[2]=='q') q++;
      |                       ^
a.cc:19:23: error: 'p' was not declared in this scope
   19 |         if(a[2]=='p') p++;
      |                       ^
a.cc:20:23: error: 'b' was not declared in this scope
   20 |         if(a[3]=='b') b++;
      |                       ^
a.cc:21:23: error: 'd' was not declared in this scope
   21 |         if(a[3]=='d') d++;
      |                       ^
a.cc:22:23: error: 'q' was not declared in this scope
   22 |         if(a[3]=='q') q++;
      |                       ^
a.cc:23:23: error: 'p' was not declared in this scope
   23 |         if(a[3]=='p') p++;
      |                       ^
a.cc:24:12: error: 'b' was not declared in this scope
   24 |         if(b==1&&d==1&&p==1&&q==1) cout<<"Yes"<<endl;
      |            ^
a.cc:24:18: error: 'd' was not declared in this scope
   24 |         if(b==1&&d==1&&p==1&&q==1) cout<<"Yes"<<endl;
      |                  ^
a.cc:24:24: error: 'p' was not declared in this scope
   24 |         if(b==1&&d==1&&p==1&&q==1) cout<<"Yes"<<endl;
      |                        ^
a.cc:24:30: error: 'q' was not declared in this scope
   24 |         if(b==1&&d==1&&p==1&&q==1) cout<<"Yes"<<endl;
      |                              ^
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
int main(){
    string a,b;
    cin>>a;
    b=a;
    reverse(a.begin(),a.end());
    for(int i=0;i<a.size();++i)
    {
        if(a[i]=='b') a[i]='d';
        else if(a[i]=='d') a[i]='b';
        else if(a[i]=='p') a[i]='q';
        else if(a[i]=='q') a[i]='p';
    }
    if(a==b)
    cout<<"Yes";
    else
    cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'reverse' was not declared in this scope
    8 |     reverse(a.begin(),a.end());
      |     ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string a;
    cin>>a;
    string b=a;
    reverse(a.begin(),a.end());
    for(int i=0;i<a.size();++i)
    {
        if(a[i]=='b') a[i]='d';
        else if(a[i]=='d') a[i]='b';
        else if(a[i]=='p') a[i]='q';
        else if(a[i]=='q') a[i]='p';
    }
    if(a==b) cout<<"Yes";
    else cout<<"No";
    return 0；
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   18 |     return 0；
      |            ^~~
a.cc:18:15: error: expected ';' before '}' token
   18 |     return 0；
      |               ^
      |               ;
   19 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    string a;
    cin>>a;
    string b=a;
    reverse(a.begin(),a.end());
    for(int i=0;i<a.size();++i)
    {
        if(a[i]=='b') a[i]='d';
        else if(a[i]=='d') a[i]='b';了
        else if(a[i]=='p') a[i]='q';
        else if(a[i]=='q') a[i]='p';
    }
    if(a==b) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:37: error: '\U00004e86' was not declared in this scope
   11 |         else if(a[i]=='d') a[i]='b';了
      |                                     ^~
a.cc:13:9: error: 'else' without a previous 'if'
   13 |         else if(a[i]=='q') a[i]='p';
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
char a[100001],b[10001];
int len;
int main()
{
	cin>>a;
	strcpy(b,a);
	strrev(a);
	len=strlen(a);
	for(int i=0;i<len;i++)
	{
		if(a[i]=='b') a[i]='d';
		else if(a[i]=='d') a[i]='b';
		else if(a[i]=='q') a[i]='p';
		else if(a[i]=='p') a[i]='q';
	}
	if(strcmp(a,b)==0)
	{
		cout<<"Yes";
	}
	else
	{
		cout<<"No";
	}
} 

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

#include <iostream>
#include <cstdio>
using namespace std;
int m,n;
char a[100005],b;
int abs(int x){
	if(x>=0) return x;
	else return x*-1;
}
int main(){
	while((a[++m]=getchar())!='\n');
	if(m%2!=0){
		cout<<"No"<<endl; 
		return 0;
	} 
	for(int i=m;i>=m/2;i--){
		int cha=abs(a[i],a[m-i+1]);
		if(cha!=1&&cha!=2){
			cout<<"No"<<endl;
			return 0;
     	}
	}
	cout<<"Yes"<<endl;
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:17:28: error: no matching function for call to 'abs(char&, char&)'
   17 |                 int cha=abs(a[i],a[m-i+1]);
      |                         ~~~^~~~~~~~~~~~~~~
a.cc:6:5: note: candidate: 'int abs(int)'
    6 | int abs(int x){
      |     ^~~
a.cc:6:5: note:   candidate expects 1 argument, 2 provided
In file included from /usr/include/c++/14/cstdlib:81,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:137:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note:   candidate expects 1 argument, 2 provided
Language: C++

#include<bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long
#define ull unsigned long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL<<(n))
#define BITCNT(n) (__builtin_popcountll(n))
#define SUBS(s,f,t) (s.substr(f-1,t-f+1))
#define ALL(a) (a).begin(),(a).end()
using namespace std;
struct Grid{ll x,y,t;};
struct Edge{ll to,cost;};
struct Graph{vector<vector<Edge>>E;int V;
  const ll Inf = llINF;const int MAX_V=201010;vector<ll>d;
  Graph(int n):E(n){d.resize(MAX_V);E.resize(n);V=n;}
  void init(){for(int i=0;i<MAX_V;i++)d[i]=Inf;}
  void add_edge(ll from,ll to,ll cost){E[from].pb({to,cost});}
};
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;cin>>s;
  if(s.size()%2)cout<<"No"<<endl;
  else{
    map<char,char>MP;
    MP['p']='q';
    MP['q']='p';
    MP['d']='b';
    MP['b']='d';
    bool fl=true;
    for(int i=0;i<n/2;i++){
      if(MP[s[n-i]]!=s[i])fl=false;
    }
    if(fl)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:19: error: 'n' was not declared in this scope
   38 |     for(int i=0;i<n/2;i++){
      |                   ^
Language: C++

#include <iostream>
using namespace std;
int main{
    cout<<"NO";
    return 0;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:15: error: expected '}' before ';' token
    4 |     cout<<"NO";
      |               ^
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:4:9: error: invalid user-defined conversion from 'std::basic_ostream<char>' to 'int' [-fpermissive]
    4 |     cout<<"NO";
      |     ~~~~^~~~~~
In file included from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_ios.h:121:16: note: candidate is: 'std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  121 |       explicit operator bool() const
      |                ^~~~~~~~
/usr/include/c++/14/bits/basic_ios.h:121:16: note:   return type 'bool' of explicit conversion function cannot be converted to 'int' with a qualification conversion
a.cc:5:5: error: expected unqualified-id before 'return'
    5 |     return 0;
      |     ^~~~~~
a.cc:6:1: error: expected declaration before '}' token
    6 | }
      | ^
Language: C++

#include<bits/stdc++.h>//'三玖是天！ '.
using namespace std;
int main()
{
	string s,ss;
	cin>>s;
	ss=s;
	reverse(s.begin(),s.end());
	for(int i=0;i<s.size();i++)
	{
		if(s[i]=='b')s[i]='d';
		else if(s[i]=='d')s[i]='b';
		else if(s[i]=='p')s[i]='q';
		else(s[i]=='q')s[i]='p';
	}
	if(ss==s)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:32: error: expected ';' before 's'
   14 |                 else(s[i]=='q')s[i]='p';
      |                                ^
      |                                ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
string a,s;
int main(){
    cin >> a;
    s = a;
    reverse(a.begin(),a.end());
    for (int i = 0; i < a.size(); i++){
        if (a[i] == "b") a[i] = "d";
        else if (a[i] == "d") a[i] = "b";
        else if (a[i] == "p") a[i] = "q";
        else a[i] = "p";
    }
    if (a == s)
        cout << "Yes";
    else cout << "No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (a[i] == "b") a[i] = "d";
a.cc:9:33: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    9 |         if (a[i] == "b") a[i] = "d";
      |                                 ^~~
      |                                 |
      |                                 const char*
a.cc:10:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         else if (a[i] == "d") a[i] = "b";
a.cc:10:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   10 |         else if (a[i] == "d") a[i] = "b";
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:11:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         else if (a[i] == "p") a[i] = "q";
a.cc:11:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |         else if (a[i] == "p") a[i] = "q";
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:12:21: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   12 |         else a[i] = "p";
      |                     ^~~
      |                     |
      |                     const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;
string a,s;
int main(){
    cin >> a;
    s = a;
    reverse(a.begin(),a.end());
    for (int i = 0; i < a.size(); i++){
        if (a[i] == "b") a[i] = "d";
        else if (a[i] == "d") a[i] = "b";
        else if (a[i] == "p") a[i] = "q";
        else a[i] = "p";
    }
    if (a == b)
        cout << "Yes";
    else cout << "No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (a[i] == "b") a[i] = "d";
a.cc:9:33: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    9 |         if (a[i] == "b") a[i] = "d";
      |                                 ^~~
      |                                 |
      |                                 const char*
a.cc:10:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         else if (a[i] == "d") a[i] = "b";
a.cc:10:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   10 |         else if (a[i] == "d") a[i] = "b";
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:11:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         else if (a[i] == "p") a[i] = "q";
a.cc:11:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |         else if (a[i] == "p") a[i] = "q";
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:12:21: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   12 |         else a[i] = "p";
      |                     ^~~
      |                     |
      |                     const char*
a.cc:14:14: error: 'b' was not declared in this scope
   14 |     if (a == b)
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
string a,s;
int main(){
    cin >> a;
    b = a;
    reverse(a.begin(),a.end());
    for (int i = 0; i < a.size(); i++){
        if (a[i] == "b") a[i] = "d";
        else if (a[i] == "d") a[i] = "b";
        else if (a[i] == "p") a[i] = "q";
        else a[i] = "p";
    }
    if (a == b)
        cout << "Yes";
    else cout << "No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'b' was not declared in this scope
    6 |     b = a;
      |     ^
a.cc:9:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (a[i] == "b") a[i] = "d";
a.cc:9:33: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    9 |         if (a[i] == "b") a[i] = "d";
      |                                 ^~~
      |                                 |
      |                                 const char*
a.cc:10:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         else if (a[i] == "d") a[i] = "b";
a.cc:10:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   10 |         else if (a[i] == "d") a[i] = "b";
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:11:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         else if (a[i] == "p") a[i] = "q";
a.cc:11:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |         else if (a[i] == "p") a[i] = "q";
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:12:21: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   12 |         else a[i] = "p";
      |                     ^~~
      |                     |
      |                     const char*
Language: C++

#include <cstdio>
#include <string>
#include <iostream>
int main() {
	std::string a, b;
	std::cin >> a;
	b = a;
	std::reverse(a.begin(), a.end());
	int len = a.size();
	for (int i = 0; i < len; ++i)
	{
		if (a[i] == 'b') a[i] = 'd';
		else if (a[i] == 'd') a[i] = 'b';
		else if (a[i] == 'p') a[i] = 'q';
		else if (a[i] == 'q') a[i] = 'p';
	}
	if (a == b) std::cout << "Yes" << std::endl;
	else std::cout << "No" << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'reverse' is not a member of 'std'
    8 |         std::reverse(a.begin(), a.end());
      |              ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
	cin>>s;
	string s1=s;
	int n=s.length();
	for(int i=0;i<n/2;++i)
	{	
		if(s1[i]=='b')s1[i]=='d';
		if(s1[i]=='d')s1[i]=='b';
		if(s1[i]=='q')s1[i]=='p';
		if(s1[i]=='p')s1[i]=='q';
		if(s1[n-i-1]=='b')s1[n-i-1]=='d';
		if(s1[n-i-1]=='d')s1[n-i-1]=='b';
		if(s1[n-i-1]=='q')s1[n-i-1]=='p';
		if(s1[n-i-1]=='p')s1[n-i-1]=='q';
		char t=s1[i];s1[i]=s1[n-i-1];s1[n-i-1]=t;
	}
	if(s1==s)cout<<"Yes";
	else cout<<"No";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 's' was not declared in this scope
    5 |         cin>>s;
      |              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
string a,b;
int main()
{
    cin>>a;
    a=b;
    reverse(a.begin(),a.end());
    for(int i=0;i<a.size();++i)
    {
        if(a[i]=='b') a[i]='d';
        else if(a[i]=='d') a[i]='b';
        else if(a[i]=='p') a[i]='q';
        else if(a[i]=='q') a[i]='p';
    }
    if(a==b) 
    cout<<"Yes";/
    else 
    cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: expected primary-expression before '/' token
   17 |     cout<<"Yes";/
      |                 ^
a.cc:18:5: error: expected primary-expression before 'else'
   18 |     else
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
char s[100010];
int main()
{
	scanf("%s",s);
	int l=strlen(s);
	for(i=0;i<=l/2;i++)
	{
		if(s[i]=='b'&&s[l-i]!='d'||s[i]=='d'&&s[l-i]!='b'||s[i]=='p'&&s[l-i]!='q'||s[i]=='q'&&s[l-i]!='p')
		{
			cout<<"No";
			return 0;
		}
	}
	cout<<"Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'i' was not declared in this scope
    8 |         for(i=0;i<=l/2;i++)
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
char a[10001],b[10001];
int main()
{
	gets_s(a);
	int l=strlen(a);
	for(int i=0;i<l;i++)
	{
		b[l-i-1]=a[i];
		if(a[i]=='b') a[i]='d';
		else if(a[i]=='d') a[i]='b';
		else if(a[i]=='p') a[i]='q';
		else if(a[i]=='q') a[i]='p';
	}
	for(int i=0;i<l;i++)
		if(a[i]!=b[i]) puts("No"),exit(0);
	puts("Yes");
	return 0;
}

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

#include<bits/stdc++.h>
char s[200000];
int get[128];
int main()
{
    get['b'] = 0;
	get['p'] = 1;
	get['d'] = 2;
	get['q'] = 3;
    scanf("%s",s+1);
    for(int i=strlen(s+1),i=1;i<=(l>>1)+1;++i)
    {
        if(get[s[i]]^((get[s[l-i+1]]+2)%4))
		{
		return printf("No\n"),0;	
		 } 
    } 
    return printf("Yes\n"),0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: redeclaration of 'int i'
   11 |     for(int i=strlen(s+1),i=1;i<=(l>>1)+1;++i)
      |                           ^
a.cc:11:13: note: 'int i' previously declared here
   11 |     for(int i=strlen(s+1),i=1;i<=(l>>1)+1;++i)
      |             ^
a.cc:11:35: error: 'l' was not declared in this scope
   11 |     for(int i=strlen(s+1),i=1;i<=(l>>1)+1;++i)
      |                                   ^
Language: C++

#include<cstdio>
#include<iostream>
#include<cstring>
#include<stack>
using namespace std;
stack<char>s;
string a;
int main()
{
    cin>>a;
    int n=a.size();
    for(int i=0;i<n;i++)
	{
        s.push(a[i]);
    }
    bool j=1;
    for(int i=0;i<n;i++)
	{
        char t=s.t();
        if(t=='b') 
		{
		    t='d';
		}
        else 
		{
		    if(t=='d') 
			{
			    t='b';
			}
            else 
			{
			    if(t=='p') 
				{
				    t='q';
				
			    }
                else
				{
				    if(t=='q')
					{
					    t='p';
					}
				}
            }
        }
        if(t==a[i])
		{
            j=1;
            s.pop();
        }
        else
		{
            j=0;
            break;
        }
    }
    if(j==0) 
	{
	    cout<<"NO"<<endl;
	}
    else cout<<"YES"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:18: error: 'class std::stack<char>' has no member named 't'
   19 |         char t=s.t();
      |                  ^
Language: C++

#include <bits/stdc++.h>  
using namespace std; 
int main(){
    char a[100005],b[100005];
    cin>>a;
    int a1=strlen(a),ans=0;
    for(int i=0;i<a1;i++){
        if(a[i]=='b') b[i]='d';
        if(a[i]=='d') b[i]='b';
        if(a[i]=='q') b[i]='p';
        if(a[i]=='p') b[i]='q';
    }
    for(int i=0;i<a1;i++){
        if(a[i]!=b[a1ppqb-i-1]){
            cout<<"No";
            return 0;
        }
    }
    cout<<"Yes";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: 'a1ppqb' was not declared in this scope
   14 |         if(a[i]!=b[a1ppqb-i-1]){
      |                    ^~~~~~
Language: C++

#include <bits/stdc++.h>  
using namespace std; 
int main(){
	char a[100005],b[100005];
	cin>>a;
	int a1=strlen(a),ans=0;
	for(int i=0;i<a1;i++){
		if(a[i]=='b') b[i]='d';
		if(a[i]=='d') b[i]='b';
		if(a[i]=='q') b[i]='p';
		if(a[i]=='p') b[i]='q';
	}
	for(int i=0;i<a1;i++){
		if(a[i]!=b[a1ppqb-i-1]){
			cout<<"No";
			return 0;
		}
	}
	cout<<"Yes";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:28: error: 'a1ppqb' was not declared in this scope
   14 |                 if(a[i]!=b[a1ppqb-i-1]){
      |                            ^~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
    string a,b;
    cin>>a;
    int l=a.size()-1,t=l;
    for(int i=0;i<l;i++){
        b[i]=a[t--];
    }
    t=0;
    for(int i=0;i<=l;i++){
        if(b[i]=="d")b[t++]="b";
        if(b[i]=="b")b[t++]="d";
        if(b[i]=="p")b[t++]="q";
        if(b[i]=="q")b[t++]="p";
    }
    if(a==b)cout<<"Yes";
    else
    cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |         if(b[i]=="d")b[t++]="b";
a.cc:14:29: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   14 |         if(b[i]=="d")b[t++]="b";
      |                             ^~~
      |                             |
      |                             const char*
a.cc:15:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(b[i]=="b")b[t++]="d";
a.cc:15:29: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   15 |         if(b[i]=="b")b[t++]="d";
      |                             ^~~
      |                             |
      |                             const char*
a.cc:16:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |         if(b[i]=="p")b[t++]="q";
a.cc:16:29: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   16 |         if(b[i]=="p")b[t++]="q";
      |                             ^~~
      |                             |
      |                             const char*
a.cc:17:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         if(b[i]=="q")b[t++]="p";
a.cc:17:29: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   17 |         if(b[i]=="q")b[t++]="p";
      |                             ^~~
      |                             |
      |                             const char*
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
    string a,b;
    cin>>a;
    int l=a.size()-1;
    for(int i=l;i>=0;i--){
        if(a[i]=="d")b[l-i]="b";
        if(a[i]=="b")b[l-i]="d";
        if(a[i]=="p")b[l-i]="q";
        if(a[i]=="q")b[l-i]="p";
    }
    if(a==b)cout<<"Yes";
    else
    cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(a[i]=="d")b[l-i]="b";
a.cc:10:29: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   10 |         if(a[i]=="d")b[l-i]="b";
      |                             ^~~
      |                             |
      |                             const char*
a.cc:11:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(a[i]=="b")b[l-i]="d";
a.cc:11:29: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |         if(a[i]=="b")b[l-i]="d";
      |                             ^~~
      |                             |
      |                             const char*
a.cc:12:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if(a[i]=="p")b[l-i]="q";
a.cc:12:29: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   12 |         if(a[i]=="p")b[l-i]="q";
      |                             ^~~
      |                             |
      |                             const char*
a.cc:13:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         if(a[i]=="q")b[l-i]="p";
a.cc:13:29: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   13 |         if(a[i]=="q")b[l-i]="p";
      |                             ^~~
      |                             |
      |                             const char*
Language: C++

#include<stdio.h>
#include<cstring>
char s[100005];
char f['z'];
int len;
int main(){
	f['b']='d';
	f['d']='b';
	f['p']='q';
	f['q']='p';
	gets(s+1);
	len=strlen(s+1);
	int p=len>>1;
	for (int i=1;i<=p;i++){
		if (f[s[i]]!=s[len-i+1]){
			puts("No");
			return 0;
		}
	}
	puts("Yes");
	return 0;
}

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

#include<stdio.h>
#include<cstring>
char s[100005];
char f[500];
int len;
int main(){
	f['b']='d';
	f['d']='b';
	f['p']='q';
	f['q']='p';
	gets(s+1);
	len=strlen(s+1);
	int p=len>>1;
	for (int i=1;i<=p;i++){
		if (f[s[i]]!=s[len-i+1]){
			puts("No");
			return 0;
		}
	}
	puts("Yes");
	return 0;
}

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

#include<stdio.h>
#include<string.h>
char s[100005];
char f[500];
int len;
int main(){
	f['b']='d';
	f['d']='b';
	f['p']='q';
	f['q']='p';
	gets(s+1);
	len=strlen(s+1);
	int p=len>>1;
	for (int i=1;i<=p;i++){
		if (f[s[i]]!=s[len-i+1]){
			puts("No");
			return 0;
		}
	}
	puts("Yes");
	return 0;
}

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

#include<stdio.h>
#include<string.h>
char s[100005];
int f[500];
int len;
int main(){
	f['b']='d';
	f['d']='b';
	f['p']='q';
	f['q']='p';
	gets(s+1);
	len=strlen(s+1);
	int p=len>>1;
	for (int i=1;i<=p;i++){
		if (f[s[i]]!=s[len-i+1]){
			puts("No");
			return 0;
		}
	}
	puts("Yes");
	return 0;
}

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