Language: C++

#include<iostream>
using namesapce std;

int main(){
	int n;
  	cin>>n;
  	if(n % 2 == 1){
    	cout<<"No"<<endl;
      	return 0;
    }
  	string s;
  	cin>>s;
  	string t1, t2;
  	for(int i = 0; i < n/2; ++i){
    t1[i] = s[i];
    }
  
  	for(int i = n/2; i < n; ++i){
    t2[] = s[i];
    }
  	
  	if(t1 == t2)
      cout<<"Yes"<endl;
  	else
      cout<<"No"<<endl;

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin>>n;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout<<"No"<<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |         cout<<"No"<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:9: error: 'string' was not declared in this scope
   11 |         string s;
      |         ^~~~~~
a.cc:11:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:12:14: error: 's' was not declared in this scope
   12 |         cin>>s;
      |              ^
a.cc:13:15: error: expected ';' before 't1'
   13 |         string t1, t2;
      |               ^~~
      |               ;
a.cc:15:5: error: 't1' was not declared in this scope; did you mean 'tm'?
   15 |     t1[i] = s[i];
      |     ^~
      |     tm
a.cc:19:5: error: 't2' was not declared in this scope; did you mean 'tm'?
   19 |     t2[] = s[i];
      |     ^~
      |     tm
a.cc:19:8: error: expected primary-expression before ']' token
   19 |     t2[] = s[i];
      |        ^
a.cc:22:12: error: 't1' was not declared in this scope; did you mean 'tm'?
   22 |         if(t1 == t2)
      |            ^~
      |            tm
a.cc:22:18: error: 't2' was not declared in this scope; did you mean 'tm'?
   22 |         if(t1 == t2)
      |                  ^~
      |                  tm
a.cc:23:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |       cout<<"Yes"<endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:23:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   23 |       cout<<"Yes"<endl;
      |                   ^~~~
      |                   std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:25:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   25 |       cout<<"No"<<endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:25:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   25 |       cout<<"No"<<endl;
      |                   ^~~~
      |                   std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:25:24: error: expected '}' at end of input
   25 |       cout<<"No"<<endl;
      |                        ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^