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

#nclude<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  string s;
  cin>>s;
  string a=s.substr(0,n/2);
  string b=s.substr(n/2,n/2);
  if(a==b)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
  
  
  
  
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #nclude; did you mean #include?
    1 | #nclude<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #nclude<bits/stdc++.h>
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   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 | #nclude<bits/stdc++.h>
a.cc:8:8: error: 's' was not declared in this scope
    8 |   cin>>s;
      |        ^
a.cc:9:9: error: expected ';' before 'a'
    9 |   string a=s.substr(0,n/2);
      |         ^~
      |         ;
a.cc:10:9: error: expected ';' before 'b'
   10 |   string b=s.substr(n/2,n/2);
      |         ^~
      |         ;
a.cc:11:6: error: 'a' was not declared in this scope
   11 |   if(a==b)
      |      ^
a.cc:11:9: error: 'b' was not declared in this scope
   11 |   if(a==b)
      |         ^
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:18: error: 'endl' was not declared in this scope
   12 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #nclude<bits/stdc++.h>
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:17: error: 'endl' was not declared in this scope
   14 |     cout<<"No"<<endl;
      |                 ^~~~
a.cc:14:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  string s;
  cin>>s;
  bool flag=true;
  if(n%2!=0)
  {
    cout<<"No"<<endl;

  }
  else
  {
    string x="";
    string y="";
    for(int i=0;i<n/2;i++)
    {
      x=x+s[i];
     
     
      
    }
    for(int i=n/2;i<n;i++)
      y=y+s[i];
    
  }
  if(x==y)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;


  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:6: error: 'x' was not declared in this scope
   30 |   if(x==y)
      |      ^
a.cc:30:9: error: 'y' was not declared in this scope
   30 |   if(x==y)
      |         ^
Language: C++

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

#define ff              first
#define ss              second
#define int             long long
#define pb              push_back
#define mp              make_pair
#define pii             pair<int,int>
#define vi              vector<int>
#define mii             map<int,int>
#define pqb             priority_queue<int>
#define pqs             priority_queue<int,vi,greater<int> >
#define setbits(x)      __builtin_popcountll(x)
#define zrobits(x)      __builtin_ctzll(x)
#define mod             1000000007
#define inf             1e18
#define ps(x,y)         fixed<<setprecision(y)<<x
#define mk(arr,n,type)  type *arr=new type[n];
#define w(x)            int x; cin>>x; while(x--)


int nCr(int n , int r ) {
	int p = 1, k = 1;

	if (n - r < r ) {
		r = n - r;
	}
	if (r != 0) {
		while (r != 0) {
			p *= n ;
			k *= r ;
			int m = __gcd(p, k);
			p /= m;
			k /= m;
			n--;
			r--;
		}
	}
	else {
		p = 1;
	}
	return p ;
}

void aryan_p() {
	ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
	return;
}


int32_t main() {


	int n ;
	cin>>n;
	string s ;
	cin>>s; 

	if(n&1){
		cout<<"No;"
	}
	else{
		for(int i = 0 ; i<(n/2) ; i++){
			if(a[i]!=a[i+n/2]){
				cout<<"No";
				return 0 ;
			}
		}
		cout<<"Yes";
	}


	return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:65:28: error: expected ';' before '}' token
   65 |                 cout<<"No;"
      |                            ^
      |                            ;
   66 |         }
      |         ~                   
a.cc:69:28: error: 'a' was not declared in this scope
   69 |                         if(a[i]!=a[i+n/2]){
      |                            ^
Language: C++

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
#define rep(i,n) for (ll i = 0; i < (ll)(n); ++i)
#define rrep(i,j,n) for(ll i = (ll)(j); i < (ll)(n); i++)
#define mrep(i,n) for (ll i = (ll)(n-1); i > 0; i--)
#define be(v) (v).begin(), (v).end()
#define dcout cout << fixed << setprecision(20) 
ll INF = 1LL << 60;
ll mod = 1e9 + 7;

int main() {
	int n; cin >> n;
	if(n%2==1) {
		cout << "No" << endl;
		return 0;
	}
	string s; cin >> s;
	string h=s.substr(0,(2/n)-1);
	string m=s.substr(2/n,end());
	if(h==m) cout << "Yes" << endl;
	else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:34: error: no matching function for call to 'end()'
   22 |         string m=s.substr(2/n,end());
      |                               ~~~^~
In file included from /usr/include/c++/14/bits/algorithmfwd.h:39,
                 from /usr/include/c++/14/bits/stl_algo.h:59,
                 from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/initializer_list:99:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
   99 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
/usr/include/c++/14/initializer_list:99:5: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/range_access.h:74:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)'
   74 |     end(_Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:74:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:85:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)'
   85 |     end(const _Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:85:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:106:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])'
  106 |     end(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~
/usr/include/c++/14/bits/range_access.h:106:5: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166:
/usr/include/c++/14/valarray:1249:5: note: candidate: 'template<class _Tp> _Tp* std::end(valarray<_Tp>&)'
 1249 |     end(valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/valarray:1249:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/valarray:1265:5: note: candidate: 'template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/valarray:1265:5: note:   candidate expects 1 argument, 0 provided
Language: C

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;

int main(){
  int n;
  string s;
  cin >> n >> s;
  if(n%2!=0) cout << "No" << endl;
  
  string s1 = s.substr(0,n/2);
  string s2 = s.substr(n/2);
  if(s1==s2){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class MAin {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc=new Scanner(System.in);
		
		int n=sc.nextInt();
		String s=sc.next();
		int size=s.length();
		
		if(s.substring(0,n/2).equals(s.substring(size/2))){
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}

}

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

#include <iostream>

using namespace std;

int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    int n;
    string s;
    cin >> n >> s;
    if (n % 2 == 1) {
        cout << "No";
        return;
    }
    for (int i = 0; i < n / 2; i++) {
        if (s[i] != s[i + n / 2]) {
            cout << "No";
            return;
        }
    }
    cout << "Yes";
    return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |         return;
      |         ^~~~~~
a.cc:18:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |             return;
      |             ^~~~~~
a.cc:22:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |     return;
      |     ^~~~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {

  int N;cin>>N;
  string S;cin>>S;
  
  if(N%2==1){
    cout<<"No"<<endl;
  }
  
  int check=0;
  
  else if(N%2==0){
  for(int i=0;i<S.size()/2;i++){
    if(S[i]==S[i+S.size()/2]){
      check++;
    }
    else{
      check+=0;
  }
  }
  }
  
  if(check==S.size()/2){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else if(N%2==0){
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {

  int N;cin>>N;
  string S;cin>>S;
  
  if(N%2==1){
    cout<<"No"<<endl;
  }
  
  int check=0;
  
  if(N%2==0){
  for(int i=0;i<S.size()/2;i++){
    if(S[i]==S[i+S.size()/2]){
      check++;
    }
    else{
      check+=0;
  }
  }
  
  if(check==S.size()/2){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {

  int N;cin>>N;
  string S;cin>>S;
  
  if(N%2==1){
    cout<<"No"<<endl;
  }
  
  int check=0;
  
  else if(N%2==0){
  for(int i=0;i<S.size()/2;i++){
    if(S[i]==S[i+S.size()/2]){
      check++;
    }
  }
  }
  
  if(check==S.size/2){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else if(N%2==0){
      |   ^~~~
a.cc:24:15: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   24 |   if(check==S.size/2){
      |             ~~^~~~
      |                   ()
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void){
	string s;
  	int a;
  	cin >> a;
  	cin >> s;
  	for(int i = 0; i < a / 2; i++){
		for(int j = a / 2; j < a; j++){
				if(s.at(i) == s.at(j)){
					cout << "Yes" << endl;
                  return 0;
        }
          cout << "No" << endl;
    }
  return 0;

}


  


Compiler output:
a.cc: In function 'int main()':
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
  int a;
  cin >> a >> s;
  bool ans = false;
  if(a % 2 == 0){
  		if(s.subsr(0,a/2) == s.substr(a/2,a/2))ans  = true;
  }
  if(ans)cout << "Yes" <<endl;
  else cout << "No" <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'subsr'; did you mean 'substr'?
    9 |                 if(s.subsr(0,a/2) == s.substr(a/2,a/2))ans  = true;
      |                      ^~~~~
      |                      substr
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
  int a;
  cin >> a >> s;
  bool ans = false;
  if(a % 2 == 0){
  		if(s.subsr(0,a/2) == s.substr(a/2,a/2))ans  = trure;
  }
  if(ans)cout << "Yes" <<endl;
  else cout << "No" <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'subsr'; did you mean 'substr'?
    9 |                 if(s.subsr(0,a/2) == s.substr(a/2,a/2))ans  = trure;
      |                      ^~~~~
      |                      substr
a.cc:9:63: error: 'trure' was not declared in this scope
    9 |                 if(s.subsr(0,a/2) == s.substr(a/2,a/2))ans  = trure;
      |                                                               ^~~~~
Language: C++

#include<bits.stdc++.h>
using namespace std;
int main(){
	string s;
  int a;
  cin >> a >> s;
  bool ans = false;
  if(a % 2 == 0){
  		if(s.subsr(0,a/2) == s.substr(a/2,a/2))ans  = trure;
  }
  if(ans)cout << "Yes" <<endl;
  else cout << "No" <<endl;
}


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

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

int main(){
  int N;
  string S;
  cin>>N>>S;
  if(N%2==1){
    cout<<"No"<<endl;
    return 0;
  }
  for(int i=0;i<N/2,i++)
    if(S[i]!=S[i+N/2]){
      cout<<"No"<<endl;
      return 0;
    }
  cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: expected ';' before ')' token
   12 |   for(int i=0;i<N/2,i++)
      |                        ^
      |                        ;
Language: C

#include <stdio.h>
int main(void){
   char s[101];
   int n;
   
   scanf("%d",&n);
   if(!!(n%2)){printf("No");return 0;}
   for(int i=0;i<n/2;i++){
       if(c[i]!=c[n/2+i]){printf("No");return 0;}
   }
   printf("Yes");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:11: error: 'c' undeclared (first use in this function)
    9 |        if(c[i]!=c[n/2+i]){printf("No");return 0;}
      |           ^
main.c:9:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main(){
	int n;
	string s;
	cin >> n >> s;
	
	bool res = true;
	if(n%2 == 1) res = false;
	else{
		rep(i, n/2){
		if(s.at(i) != s.at(n/2+i)) res = false;
	}
	}

	if(res) cout << "Yes" << endl;
	else cout < "No" << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:26: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   19 |         else cout < "No" << endl;
      |                     ~~~~~^~~~~~~
Language: Java

import java.util.*;
import java.math.*;
public class Solution {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.next());
		String s = in.next();
		if(n % 2 != 0) {
			System.out.println("No");
		}else {
			int half = n / 2;
			String t1 = s.substring(0, half);
			String t2 = s.substring(half, n);
			if(t1.equals(t2)) {
				System.out.println("Yes");
			}else {
				System.out.println("No");
			}
		}
	}
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
typedef int64_t Int;
typedef pair<int,int> p;

const int INF = 1e9;

int main() {
  int n;
  string s;
  cin >> n >> s;

  if (n % 2 == 1) cout << "No" << endl;
  else {
    bool flag = true;
    rep(i, n/2) {
      if (s[i] != s[n/2 + i]) flag = false;
    }
    if (flag) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:10:12: note: to match this '{'
   10 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  string s;
  cin >> n >> s;
    if(s.size() % 2 == 1){cout << "No" <<endl;
                         return 0;}
  for(int i=0; i<n/2 ;i++){
    if(string.at(i) == string.at(i+(n/2))){continue;}
    else{cout << "No" << endl;
         return 0;
        }
  }
cout << "Yes" << endl;
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected unqualified-id before '.' token
   10 |     if(string.at(i) == string.at(i+(n/2))){continue;}
      |              ^
Language: C++

#include<stdio.h>

int main() {
    int n, s, x, i;
    char z, w[];
x=n/2;
z=w/2;
s=0;
    scanf("%d",&n);
    scanf("%d",&w);
    for(i ==1;i<=n;i++) {
        if(char[i]==char[w+i]) {
            s++;
        }
    }
    if (s==w) {
        printf("Yes");
    }else {
        printf("No");
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: storage size of 'w' isn't known
    5 |     char z, w[];
      |             ^
a.cc:12:16: error: expected unqualified-id before '[' token
   12 |         if(char[i]==char[w+i]) {
      |                ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main () {
   int N;
   cin>>N;
   string S;
   cin>>S;
   if ((N%2==0)) and (S.compare(0,N/2,S,N/2,N/2)==0)
           cout<<"Yes";
   else
       cout<<"No";
   return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expected identifier before '(' token
   11 |    if ((N%2==0)) and (S.compare(0,N/2,S,N/2,N/2)==0)
      |                      ^
Language: C++

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

int main(){
  string s;
  int n=s.size();
  cin>>n>>s;
  if(n%2==1){
    cout<<"No"<<endl;
  }
  else if(s.substr(0,n/2-1)==s.substr(n/2,n-1){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:47: error: expected ')' before '{' token
   11 |   else if(s.substr(0,n/2-1)==s.substr(n/2,n-1){
      |          ~                                    ^
      |                                               )
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
Language: C++

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

int main(){
  string s;
  int n=s.size();
  cin>>n>>s;
  if(n%2==1){
    cout<<"No"<<endl;
  }
  else if(s.substr(0.n/2-1)==s.substr(n/2.n-1){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: unable to find numeric literal operator 'operator""n'
   11 |   else if(s.substr(0.n/2-1)==s.substr(n/2.n-1){
      |                    ^~~
a.cc:11:41: error: unable to find numeric literal operator 'operator""n'
   11 |   else if(s.substr(0.n/2-1)==s.substr(n/2.n-1){
      |                                         ^~~
a.cc:11:47: error: expected ')' before '{' token
   11 |   else if(s.substr(0.n/2-1)==s.substr(n/2.n-1){
      |          ~                                    ^
      |                                               )
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
Language: C++

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

int main(){
  string s;
  int n=s.size();
  cin>>s;
  if(n%2==1){
    cout<<"No"<<endl;
  }
  else if(s.substr(0.n/2-1)==s.substr(n/2.n-1){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: unable to find numeric literal operator 'operator""n'
   11 |   else if(s.substr(0.n/2-1)==s.substr(n/2.n-1){
      |                    ^~~
a.cc:11:41: error: unable to find numeric literal operator 'operator""n'
   11 |   else if(s.substr(0.n/2-1)==s.substr(n/2.n-1){
      |                                         ^~~
a.cc:11:47: error: expected ')' before '{' token
   11 |   else if(s.substr(0.n/2-1)==s.substr(n/2.n-1){
      |          ~                                    ^
      |                                               )
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
Language: C++

#include<algorithm>//sort,二分探索,など
#include<bitset>//固定長bit集合
#include<cmath>//pow,logなど
#include<complex>//複素数
#include<deque>//両端アクセスのキュー
#include<functional>//sortのgreater
#include<iomanip>//setprecision(浮動小数点の出力の誤差)
#include<iostream>//入出力
#include<iterator>//集合演算(積集合,和集合,差集合など)
#include<map>//map(辞書)
#include<numeric>//iota(整数列の生成),gcdとlcm(c++17)
#include<queue>//キュー
#include<set>//集合
#include<stack>//スタック
#include<string>//文字列
#include<unordered_map>//イテレータあるけど順序保持しないmap
#include<unordered_set>//イテレータあるけど順序保持しないset
#include<utility>//pair
#include<vector>//可変長配列

// vectorの重複削除
// std::sort(test.begin(), test.end());
// test.erase(std::unique(test.begin(), test.end()), test.end());

using namespace std;
using ll = long long;
using P = pair<int, int>; // vector<P> ba(n); みたいな感じですぐ使える ba[i] = P(a, b); make_pairをしなくてもいい
// typedef vector<int> v;
template <class T>ostream &operator<<(ostream &o,const vector<T>&v){o<<"{";for(int i=0;i<(int)v.size();i++)o<<(i>0?", ":"")<<v[i];o<<"}";return o;}
#define debug(v) {cerr<<"\033[1;36m[debug]\033[m "<<#v<<" : "<<v<<endl;}
#define rep(i, c) for(int i = 0; i < int(c); i++)
#define ALL(x) (x).begin(), (x).end() //sort(ALL(obj))みたいな
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値
#define pb push_back //
// const int MOD = 1000000007;
// string alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZ";

int main() {
  int n;
  string s;
  cin>>n>>s;
  int k = n/2;
  string ans = "No"
  if (n%2 == 0 && s.substr(0,k) == s.substr(k,k)) ans = "Yes";
  cout << ans << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:45:3: error: expected ',' or ';' before 'if'
   45 |   if (n%2 == 0 && s.substr(0,k) == s.substr(k,k)) ans = "Yes";
      |   ^~
Language: C++

//Jai Bhole Ki
#include <bits/stdc++.h>
using namespace std;
#define fast static int fastline = []() { std::ios::sync_with_stdio(false); cin.tie(NULL); return 0; }();
#define ll long long
#define LL unsigned ll
#define pb push_back
#define pi pair<ll,ll>
#define debug(x) cout<<x<<"\n";
#define debug cout<<"debugged\n";
#define minval -2e9
#define maxval 2e9
long double PI =3.14159265358979323846;
 
const ll M=1e9+7;
const ll inf=1e18;
const ll ms=2e5+5;
fast;
ll ans,n;
void solve()
{
    cin>>n;
    string s;cin>>s;
    if(n%2)
        {cout<<"No"<<endl;return;}
    for(int i=0;i<n/2;i++)
    {
        if(s[i]!=s[i+n/2])
            {cout<<"No"<<endl;return;}
    }
    cout<<"Yes"<<endl;
}

Compiler output:
a.cc:10:9: warning: "debug" redefined
   10 | #define debug cout<<"debugged\n";
      |         ^~~~~
a.cc:9:9: note: this is the location of the previous definition
    9 | #define debug(x) cout<<x<<"\n";
      |         ^~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int main(){
  string s;
  int n;
  cin>>n>>s;
  if(s.substr(0,n/2)==s.substr(n/2+1,n){
    cout<<"Yes"<<endl;
  }
  else {
    cout<<"No"<<endl;
  }
}
       

Compiler output:
a.cc: In function 'int main()':
a.cc:8:40: error: expected ')' before '{' token
    8 |   if(s.substr(0,n/2)==s.substr(n/2+1,n){
      |     ~                                  ^
      |                                        )
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
Language: C++

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

int main(){
  int n;
  imt i=0;
  string s;
  cin >> n;
  cin >> s;
  if(n%2==1){
    cout << "No";
  }
  else{
  for( i=0;i<n/2;i++){
    if(s[i]!=s[n-i-1]){
      cout << "No";
      break;
    }
  }
    if(i==n/2){
      cout << "Yes";
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'imt' was not declared in this scope; did you mean 'int'?
    7 |   imt i=0;
      |   ^~~
      |   int
a.cc:15:8: error: 'i' was not declared in this scope
   15 |   for( i=0;i<n/2;i++){
      |        ^
a.cc:21:8: error: 'i' was not declared in this scope
   21 |     if(i==n/2){
      |        ^
Language: C++


#include <algorithm>
#include <iostream>
#include <vector>
#include <map>
#include <string>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>

using namespace std;
#define ll long long int

int main(void)
{
	string a;
	cin >> a;
	if (a.size() % 2 == 1)
	{
		cout << "No" << endl;
	}
	else
	{
		for (int i = 0;i < a.size() / 2;i++)
		{
			if (a[i] != a[a.size() / 2])
			{
				cout << "No" << endl;
			}
		}
		cout << "Yes" << endl;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:10: error: expected '}' at end of input
   32 |         }
      |          ^
a.cc:15:1: note: to match this '{'
   15 | {
      | ^
Language: C

#include<stdio.h>
int main()
{
int n,j,c;
  scanf("%d",&n);
  if(n%2==1) printf("No");
 
  else{
  char b[n];
  scanf("%s",b,n);
    c=0;
    for(i=0;i<n/2;++i)
    {
     if(a[i]==a[i+n/2]) c++;
    }
   if(c==n/2) printf("Yes");
    else printf("No");
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:9: error: 'i' undeclared (first use in this function)
   12 |     for(i=0;i<n/2;++i)
      |         ^
main.c:12:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:9: error: 'a' undeclared (first use in this function)
   14 |      if(a[i]==a[i+n/2]) c++;
      |         ^
Language: C

#include<stdio.h>
int main()
{
int n,j,c;
  scanf("%d",&n);
  if(n%2==1) printf("No");
 
  else{
  char b[n];
  scanf("%s",b,n);
    c=0;
    for(i=0;i<n/2;++i)
    {
     if(a[i]==a[i+n/2]) c++;
    }
   if(c==n/2) printf("Yes");
    else printf("No")
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:9: error: 'i' undeclared (first use in this function)
   12 |     for(i=0;i<n/2;++i)
      |         ^
main.c:12:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:9: error: 'a' undeclared (first use in this function)
   14 |      if(a[i]==a[i+n/2]) c++;
      |         ^
main.c:17:22: error: expected ';' before '}' token
   17 |     else printf("No")
      |                      ^
      |                      ;
   18 |   }
      |   ~
Language: C++

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

int main() {
  int n;
  string s;
  cin >> n >> s;
  
  if (n%2==1) cout << "No" << endl;
  
  else {
    judge = true;
    for (int i=0; i<n/2; i++) if (s.at(i) != s.at(i+n/2)) judge = false;
    if (judge) cout << "Yes" << endl;
    else cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'judge' was not declared in this scope
   12 |     judge = true;
      |     ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
  int n;
  cin >> n;
  string  s;
  cin >> s;
  if (n % 2 == 1 ) {
    cout << "No";}
  else {
    string a = "";
    for (int i = 0; i < n / 2; i++) {
      a += s[i];} 
    string b = "";
    for (int i = n /2 ; i < n; i++) {
      b += s[i];
      if (a == b ) {
        cout << "Yes";
    }
    else {
      cout << "No" ; } } }

Compiler output:
a.cc: In function 'int main()':
a.cc:21:27: error: expected '}' at end of input
   21 |       cout << "No" ; } } }
      |                           ^
a.cc:3:13: note: to match this '{'
    3 | int main () {
      |             ^
Language: C++

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

int main(){
  string S;
  int N=S.size();
  for(int i=0;i<N;i++){
    if(N%2!=0){
      cout<<"No"<<endl;
    }
    if(N%2==0 &&(S[i]==S[i+N/2]){
      cout<<"Yes"<<endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: expected ')' before '{' token
   11 |     if(N%2==0 &&(S[i]==S[i+N/2]){
      |       ~                         ^
      |                                 )
a.cc:14:3: error: expected primary-expression before '}' token
   14 |   }
      |   ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  char c[N];
  for (int i = 0; i < N; i++) cin >> char[i];
  
  if (N % 2) {
    cout << "No" << endl;
    return 0;
  } else {
    string ans = "Yes";
    int n = N / 2;
    for (int i = 0; i < n; i++) {
      if (c[i] != c[i + n]) {
        ans = "No";
        break;
      }
    }
    cout << ans << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:38: error: expected primary-expression before 'char'
    8 |   for (int i = 0; i < N; i++) cin >> char[i];
      |                                      ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;
using ll = long long;

int main()
{
	int n;
	cin >> n;
	string s;
	int k = s.size(n);
	cin >> s;
	string t;
	int l = t.size(n/2);
	if(s == t t)
		cout << "Yes";
	else
		cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)'
   12 |         int k = s.size(n);
      |                 ~~~~~~^~~
In file included 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/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 1076 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note:   candidate expects 0 arguments, 1 provided
a.cc:15:23: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int)'
   15 |         int l = t.size(n/2);
      |                 ~~~~~~^~~~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 1076 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note:   candidate expects 0 arguments, 1 provided
a.cc:16:18: error: expected ')' before 't'
   16 |         if(s == t t)
      |           ~      ^~
      |                  )
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
 
using namespace std;
 
typedef long long ll;
typedef unsigned long long u_ll;
typedef pair<int, int> pair_;
 
const int INF = 1001001001;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, -1, 0, 1};
int k;
 
int gcd(int a, int b){
    if(b == 0) return a;
 
    return gcd(b, a%b);
}
 
int main(){

    int n;
    string s;
    int ans=1;
    cin >> n >> s;

    if(n%2==1) ans=0;
    else{
        rep(i,n/2) {
            if(s[i]==s[n-i-1]) continue;
            else {
                ans=0;
                break;
                }

    }
    if(ans) cout << "Yes";
    else cout<< "No";

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:2: error: expected '}' at end of input
   42 | }
      |  ^
a.cc:21:11: note: to match this '{'
   21 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <algorithm>
#include <iomanip>
#include <map>
using namespace std;
string alphabet = "abcdefghijklmnopqrstuvwxyz";
string ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

int main(){
  int n;
  cin >> n;
  string s;
  cin >> s;
  if(n % 2 == 0){
    string k = s.substr(0 , n / 2);
    string l = s.substr(n/2 + 1 , n/2);
    if(k = l)cout << "Yes" << endl;
    else cout << "No" << endl;
  }
  else cout << "No" << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: could not convert 'k.std::__cxx11::basic_string<char>::operator=(l)' from 'std::__cxx11::basic_string<char>' to 'bool'
   17 |     if(k = l)cout << "Yes" << endl;
      |        ~~^~~
      |          |
      |          std::__cxx11::basic_string<char>
Language: C++

#include <iostream>
#include <algorithm>
#include <iomanip>
#include <map>
using namespace std;
string alphabet = "abcdefghijklmnopqrstuvwxyz";
string ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

int main(){
  int n;
  cin >> n;
  string s;
  cin >> s;
  if(n % 2 == 0){
    string k = s.substr(0 , n / 2)
    string l = s.substr(n/2 + 1 , n/2)
    if(k = l)cout << "Yes" << endl;
    else cout << "No" << endl;
  }
  else cout << "No" << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: expected ',' or ';' before 'string'
   16 |     string l = s.substr(n/2 + 1 , n/2)
      |     ^~~~~~
a.cc:18:5: error: expected '}' before 'else'
   18 |     else cout << "No" << endl;
      |     ^~~~
a.cc:14:17: note: to match this '{'
   14 |   if(n % 2 == 0){
      |                 ^
a.cc: At global scope:
a.cc:20:3: error: expected unqualified-id before 'else'
   20 |   else cout << "No" << endl;
      |   ^~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  string S;
  cin>>N>>S;
  int count=0;
  int a=N/2;
  if(N%2==1){
  cout<<"No"<<endl;
  }
  else{
  for(int i=0; i<a; i++){
  if(S.at(i)==S.at(3+i)){
  count++;
  }
  else{
  cout<<"No"<<endl;
  }
  }
  }
  if(count==a){
  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:5:3: error: 'string' was not declared in this scope
    5 |   string S;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>N>>S;
      |   ^~~
a.cc:6:11: error: 'S' was not declared in this scope
    6 |   cin>>N>>S;
      |           ^
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   10 |   cout<<"No"<<endl;
      |   ^~~~
      |   count
a.cc:10:15: error: 'endl' was not declared in this scope
   10 |   cout<<"No"<<endl;
      |               ^~~~
a.cc:18:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   18 |   cout<<"No"<<endl;
      |   ^~~~
      |   count
a.cc:18:15: error: 'endl' was not declared in this scope
   18 |   cout<<"No"<<endl;
      |               ^~~~
a.cc:23:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   23 |   cout<<"No"<<endl;
      |   ^~~~
      |   count
a.cc:23:15: error: 'endl' was not declared in this scope
   23 |   cout<<"No"<<endl;
      |               ^~~~
Language: C++

#include <iostream>
#include <cmath>
using namespace std;

int main() {
	int N;
	string S;
	cin >> N;
	cin >> S;
	if (N % 2 == 0) {
		if (S.substr(0, N / 2) == S.substr(N / 2, N / 2)) {
			cout << "Yes" << endl;
		}
		else {
			cout << "No" << endl;
		};
	}
	else {
		cout << "No" << endl;
	}

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

n = int(input())
s = input()
print('Yes' if s[:n//2] == s[n//2:] else 'No')


Compiler output:
a.cc:3:7: warning: multi-character character constant [-Wmultichar]
    3 | print('Yes' if s[:n//2] == s[n//2:] else 'No')
      |       ^~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;


int main() {
  int n;
  string s;
  cin >> n >> s;
  
  if (n%2 == 1) {
    cout << "No" <<endl;
    return 0;
  }
  string a = s.substr(0,n/2);
  string b = s.subster(n/2);
  if (a == b) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'subster'; did you mean 'substr'?
   17 |   string b = s.subster(n/2);
      |                ^~~~~~~
      |                substr
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
  ll n;
  cin>>n;
  
  string s;
  cin>>s;
  
  ll a[26] = {0};
  
  for(ll i = 0 ; i < n/2 ; i++) a[s[i]]++;
    
  for(ll i = n/2 ; i < n ; i++) a[s[i]]--;
  
  ll flag = 0;
  for(auto i : a) if(i != 0) flag = 1, break;
  
  if(flag == 0) cout<<"Yes"<<endl;
  else cout<<"No";
  
  return 0;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:40: error: expected primary-expression before 'break'
   19 |   for(auto i : a) if(i != 0) flag = 1, break;
      |                                        ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace stdl;
typedef long long ll;
int main()
{
  ll n;
  cin>>n;
  
  string s;
  cin>>s;
  
  ll a[26] = {0};
  
  for(ll i = 0 ; i < n/2 ; i++) a[s[i]]++;
    
  for(ll i = n/2 ; i < n ; i++) a[s[i]]--;
  
  ll flag = 0;
  for(auto i : a) if(i != 0) flag = 1, break;
  
  if(flag == 0) cout<<"Yes"<<endl;
  else cout<<"No";
  
  return 0;
  
}


Compiler output:
a.cc:2:17: error: 'stdl' is not a namespace-name
    2 | using namespace stdl;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>n;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:9:3: error: 'string' was not declared in this scope
    9 |   string s;
      |   ^~~~~~
a.cc:9:3: 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:
/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:10:8: error: 's' was not declared in this scope
   10 |   cin>>s;
      |        ^
a.cc:19:40: error: expected primary-expression before 'break'
   19 |   for(auto i : a) if(i != 0) flag = 1, break;
      |                                        ^~~~~
a.cc:21:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   21 |   if(flag == 0) 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:21:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   21 |   if(flag == 0) cout<<"Yes"<<endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:22:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |   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++

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

int main() {
  string s;
  cin >> s;
  if(s.size()%2==0){
    string t="";
    for(int i=0;i<s.size/2;i++){
      t+=s.at(i);
    }
    if(t+t==s){
      cout << "Yes";
    }else{
      cout << "No";
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    9 |     for(int i=0;i<s.size/2;i++){
      |                   ~~^~~~
      |                         ()
Language: C++

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

#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
typedef long long ll;
//typedef long long int;
const ll M = 1000000007;
ll A, B, C, D, G, H, N, L, K, P, Q, R, W, X, Y, Z;
string S, T;

signed main(){
	std::cin >> N>>S;
    if(N%2>0) cout<<"No"<<endl;
    else{
      if (S.substr(0,N/2)==S.substr(N/2,N))
        cout<<"Yes"<<endl;
      else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:11:14: note: to match this '{'
   11 | signed main(){
      |              ^
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main()
{
	int n;
  	string s;
  
  string s1;
  string s2;
  
  cin>>n;
  cin>>s;
  
  bool flag=true;
  
  if(n%2==0)
  {
      for(int i=0;s.length()/2;i++)
    {
      s1[i]=s[i];
    }

    for(int i=s.length()/2;s.length();i++)
    {
      s2[i-(s.length()/2)]=s[i];
    }
  }

  if(s1==s2)
  {
    cout<<"Yes"<<endl;
  }
  else
  {
    cout<"No"<<endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:14: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   38 |     cout<"No"<<endl;
      |          ~~~~^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int N;
  string S;
  cin>>N>>S;



  
  if(N%2==0&&S.substr(0,N/2-1)==S.substr(N/2,N-1);){
  cout<<"Yes"<<endl;
  }
  else{
  cout<<"No"<<endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:51: error: expected primary-expression before ')' token
   11 |   if(N%2==0&&S.substr(0,N/2-1)==S.substr(N/2,N-1);){
      |                                                   ^
Language: C++

#include <algorithm>
#include <iostream>
#include <string>
#include <vector>


int main()
{
    int n;
    std::string s;
    std::cin >> n >> s;
    if (n == 1)
    {
        std::cout << "No" << std::endl;
        return 0;
    }
    for (int i = 0; i < n / 2; i++)
    {
        if (s[i] != s[(n / 2) + i])
        {
            std::cout << "No" << std::endl;
            return 0;a
        }
    }
    std::cout << "Yes" << std::endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:22: error: 'a' was not declared in this scope
   22 |             return 0;a
      |                      ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
	string s;

    cin>>s;
  	len=s.length();
  	if(len%2==1){
    	cout<<"No";
      return 0;
    }
  	int p=len/2;
    for(int i=0;i<p;i++){
    	if(s[i]!=s[p+i]){
        	cout<<"No"
             return 0;
        }
    }
    cout<<"Yes";
  	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'len' was not declared in this scope; did you mean 'mblen'?
    8 |         len=s.length();
      |         ^~~
      |         mblen
a.cc:16:27: error: expected ';' before 'return'
   16 |                 cout<<"No"
      |                           ^
      |                           ;
   17 |              return 0;
      |              ~~~~~~
Language: Java

import java.util.Scanner;

public class Programdornovato7 {

    public static void main(String[] args) {
Scanner sc1=new Scanner(System.in);
Scanner sc2=new Scanner(System.in);
int N=sc1.nextInt(),bandera=0;
String texto=sc2.nextLine();
texto=texto.toLowerCase();
char superstring[]=new char[N];
for(int i=0;i<texto.length();i++){superstring[i]=texto.charAt(i);}
if(N%2==1){bandera=1;}
else{for(int i=0;i<N/2;i++){if(superstring[i]!=superstring[i+N/2]){bandera=1;}}}
if(bandera==0){System.out.println("Yes");}else{System.out.println("No");}

    }
}

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

import java.util.Scanner;

public class Programdornovato7 {

    public static void main(String[] args) {
Scanner sc1=new Scanner(System.in);
Scanner sc2=new Scanner(System.in);
int N=sc1.nextInt(),bandera=0;
String texto=sc2.nextLine();
char superstring[]=new char[N];
if(N!=texto.length()){bandera=1;}
for(int i=0;i<texto.length();i++){superstring[i]=texto.charAt(i);}
if(N%2==1){bandera=1;}
else{for(int i=0;i<N/2;i++){if(superstring[i]!=superstring[i+N/2]){bandera=1;break;}}}
if(bandera==0){System.out.println("Yes");}else{System.out.println("No");}

    }
}

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

#include <iostream>
#include<conio.h>
#include<string>

using namespace std;

int main()
{
    int n,f=0,j;
    cin>>n;j=n/2;
    string s;cin>>s;
    for(int i=0;i<n/2;i++)
    {
        if(s[i]==s[j])
           {f++;j++;}
        else
            break;
    }
    if(f==n/2&&j==n)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
    return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
  string S;
  cin>>N>>S;
  string ans="No";
  if(N%2==0){
    ans="Yes";
  for(int i=0;i<N/2;i++){
   if(S.at(i)!=S.at(N/2+i){
    ans="No"; break;
   }
  }
  
  } cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: expected ')' before '{' token
   11 |    if(S.at(i)!=S.at(N/2+i){
      |      ~                    ^
      |                           )
a.cc:14:3: error: expected primary-expression before '}' token
   14 |   }
      |   ^