Language: C++

include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
  	cin>>s;
  	int n;
  	n=s.size();
  	vector<char>vec1(0);
  	vector<char>vec2(0);
  	vector<char>vec3(0);
  	vector<char>vec4(0);
  	int count1=0;
      
  	for(int i=0;i<(n-1)/2;i++){
    	vec1.push_back(s[i]);
      	vec2.push_back(s[i]);
    }
  	reverse(vec2.begin(),vec2.end());
  	for(int i=0;i<vec1.size();i++){
    	if(vec1[i]!=vec2[i]){
        	break;
        }
      	count1 ++;
    }
  	int count2=0;
  	for(int i=((n+3)/2)-1;i<n;i++){
    	vec3.push_back(s[i]);
      	vec4.push_back(s[i]);
    }
  	reverse(vec4.begin(),vec4.end());
  	for(int i=0;i<vec3.size();i++){
    	if(vec1[i]!=vec2[i]){
        	break;
        }
      	count2 ++;
    }
  	if(count1==vec1.size()&&count2==vec1.size()){
    	cout<<"Yes"<<endl;
    }
  	else{
    	cout<<"No"<<endl;
    }

}

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:9: error: 'string' was not declared in this scope
    4 |         string s;
      |         ^~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>s;
      |         ^~~
a.cc:5:14: error: 's' was not declared in this scope
    5 |         cin>>s;
      |              ^
a.cc:8:9: error: 'vector' was not declared in this scope
    8 |         vector<char>vec1(0);
      |         ^~~~~~
a.cc:8:16: error: expected primary-expression before 'char'
    8 |         vector<char>vec1(0);
      |                ^~~~
a.cc:9:16: error: expected primary-expression before 'char'
    9 |         vector<char>vec2(0);
      |                ^~~~
a.cc:10:16: error: expected primary-expression before 'char'
   10 |         vector<char>vec3(0);
      |                ^~~~
a.cc:11:16: error: expected primary-expression before 'char'
   11 |         vector<char>vec4(0);
      |                ^~~~
a.cc:15:9: error: 'vec1' was not declared in this scope
   15 |         vec1.push_back(s[i]);
      |         ^~~~
a.cc:16:9: error: 'vec2' was not declared in this scope
   16 |         vec2.push_back(s[i]);
      |         ^~~~
a.cc:18:17: error: 'vec2' was not declared in this scope
   18 |         reverse(vec2.begin(),vec2.end());
      |                 ^~~~
a.cc:18:9: error: 'reverse' was not declared in this scope
   18 |         reverse(vec2.begin(),vec2.end());
      |         ^~~~~~~
a.cc:19:23: error: 'vec1' was not declared in this scope
   19 |         for(int i=0;i<vec1.size();i++){
      |                       ^~~~
a.cc:27:9: error: 'vec3' was not declared in this scope
   27 |         vec3.push_back(s[i]);
      |         ^~~~
a.cc:28:9: error: 'vec4' was not declared in this scope
   28 |         vec4.push_back(s[i]);
      |         ^~~~
a.cc:30:17: error: 'vec4' was not declared in this scope
   30 |         reverse(vec4.begin(),vec4.end());
      |                 ^~~~
a.cc:31:23: error: 'vec3' was not declared in this scope
   31 |         for(int i=0;i<vec3.size();i++){
      |                       ^~~~
a.cc:32:12: error: 'vec1' was not declared in this scope
   32 |         if(vec1[i]!=vec2[i]){
      |            ^~~~
a.cc:37:20: error: 'vec1' was not declared in this scope
   37 |         if(count1==vec1.size()&&count2==vec1.size()){
      |                    ^~~~
a.cc:38:9: error: 'cout' was not declared in this scope; did you mean 'count2'?
   38 |         cout<<"Yes"<<endl;
      |         ^~~~
      |         count2
a.cc:38:22: error: 'endl' was not declared in this scope
   38 |         cout<<"Yes"<<endl;
      |                      ^~~~
a.cc:41:9: error: 'cout' was not declared in this scope; did you mean 'count2'?
   41 |         cout<<"No"<<endl;
      |         ^~~~
      |         count2
a.cc:41:21: error: 'endl' was not declared in this scope
   41 |         cout<<"No"<<endl;
      |                     ^~~~