Language: C++

#include<bits/stdc++.h>
using namespace std;string s;
int main(){cin>>s;bool flag=true;int len=s.length();for(int i=0;i<len/2;i++) if(s[i]!=s[len/2-1-i]) {flag=false;break;}for(int i=len/2+1,t=len-1;i<len;i++,t--) if(s[i]!=s[t] {flag=false;break;} for(int i=0,t=len-1;i<len;i++,t--) if(s[i]!=s[t] {flag=false;break;} if(flag) cout<<"Yes\n";else cout<<"No\n" return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:174: error: expected ')' before '{' token
    3 | int main(){cin>>s;bool flag=true;int len=s.length();for(int i=0;i<len/2;i++) if(s[i]!=s[len/2-1-i]) {flag=false;break;}for(int i=len/2+1,t=len-1;i<len;i++,t--) if(s[i]!=s[t] {flag=false;break;} for(int i=0,t=len-1;i<len;i++,t--) if(s[i]!=s[t] {flag=false;break;} if(flag) cout<<"Yes\n";else cout<<"No\n" return 0;}
      |                                                                                                                                                                   ~          ^~
      |                                                                                                                                                                              )
a.cc:3:215: error: 'i' was not declared in this scope
    3 | int main(){cin>>s;bool flag=true;int len=s.length();for(int i=0;i<len/2;i++) if(s[i]!=s[len/2-1-i]) {flag=false;break;}for(int i=len/2+1,t=len-1;i<len;i++,t--) if(s[i]!=s[t] {flag=false;break;} for(int i=0,t=len-1;i<len;i++,t--) if(s[i]!=s[t] {flag=false;break;} if(flag) cout<<"Yes\n";else cout<<"No\n" return 0;}
      |                                                                                                                                                                                                                       ^
a.cc:3:225: error: 't' was not declared in this scope; did you mean 'tm'?
    3 | int main(){cin>>s;bool flag=true;int len=s.length();for(int i=0;i<len/2;i++) if(s[i]!=s[len/2-1-i]) {flag=false;break;}for(int i=len/2+1,t=len-1;i<len;i++,t--) if(s[i]!=s[t] {flag=false;break;} for(int i=0,t=len-1;i<len;i++,t--) if(s[i]!=s[t] {flag=false;break;} if(flag) cout<<"Yes\n";else cout<<"No\n" return 0;}
      |                                                                                                                                                                                                                                 ^
      |                                                                                                                                                                                                                                 tm
a.cc:3:304: error: expected ';' before 'return'
    3 | int main(){cin>>s;bool flag=true;int len=s.length();for(int i=0;i<len/2;i++) if(s[i]!=s[len/2-1-i]) {flag=false;break;}for(int i=len/2+1,t=len-1;i<len;i++,t--) if(s[i]!=s[t] {flag=false;break;} for(int i=0,t=len-1;i<len;i++,t--) if(s[i]!=s[t] {flag=false;break;} if(flag) cout<<"Yes\n";else cout<<"No\n" return 0;}
      |                                                                                                                                                                                                                                                                                                                ^~~~~~~
      |                                                                                                                                                                                                                                                                                                                ;