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

// ConsoleApplication1.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#define rep(i, m, n) for(int i = m; i < (n); i++)
#define print(x) std::cout << (x) << std::endl;
#define printa(x,n) for(int i = 0; i < n; i++){ std::cout << (x[i]) << " ";} std::cout << std::endl;
#define printa2(x,m,n) for(int i = 0; i < m; i++){ for(int j = 0; j < n; j++){ std::cout << x[i][j] << " ";} std::cout << std::endl;}
#define printp(x,n) for(int i = 0; i < n; i++){ std::cout << "(" << x[i].first << ", " << x[i].second << ") "; } std::cout << std::endl;
#define INF (1e18)
#define ll long long
// C
#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>

#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
#endif

// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>

#if __cplusplus >= 201103L
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#endif
#define __max(a,b) (((a) > (b)) ? (a) : (b))
#define __min(a,b) (((a) < (b)) ? (a) : (b))
class Plot {
public :
	int64_t x = 0;
	int64_t y = 0;
	Plot() :Plot(0, 0) {}
	Plot(int64_t x, int64_t y) {
		this->x = x;
		this->y = y;
	}
};

double Distance(int x1, int y1, int x2, int y2) {
	return sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
}

//階乗 
int fact(int k) {
	int sum = 1;
	for (int i = 1; i <= k; ++i)
	{
		sum *= i;
	}
	return sum;
}

int main()
{
	std::string in, splitA, splitB;
	int len = 0;
	std::cin >> len;
	std::cin >> in;

	if (len < 2 || len % 2 != 0) {
		std::cout << "No" << std::endl;
		return;
	}

	int pos = 0;
	int mid = len / 2;
	bool ok = true;
	for (; pos < mid; pos++)
	{
		if (in[pos] != in[pos + mid]) {
			ok = false;
			break;
		}
	}

	std::cout << (ok ? "Yes" : "No") << std::endl;

	return 0;
}

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

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

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

#include<string>

using namespace std;

int main(){

	int n;
	string s;
	bool b = false;

	cin >> n >> s;

	if(n % 2 == 0){
		for(int i = 0; i < n/2; i++){
			if(s[i] == s[i+n/2]){
				b = true;
			}
			else{
				b = false;
				break;
			}
		}
	}

	if(b == true) cout << "Yes" << endl;
	else          cout << "No" << endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin >> n >> s;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<string>
  +++ |+#include <iostream>
    2 | 
a.cc:25:23: error: 'cout' was not declared in this scope
   25 |         if(b == true) cout << "Yes" << endl;
      |                       ^~~~
a.cc:25:23: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:25:40: error: 'endl' was not declared in this scope
   25 |         if(b == true) cout << "Yes" << endl;
      |                                        ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<string>
  +++ |+#include <ostream>
    2 | 
a.cc:26:23: error: 'cout' was not declared in this scope
   26 |         else          cout << "No" << endl;
      |                       ^~~~
a.cc:26:23: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:39: error: 'endl' was not declared in this scope
   26 |         else          cout << "No" << endl;
      |                                       ^~~~
a.cc:26:39: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include <stdio.h>
int main(void)
{
  int N ,i;
  char C;
  scanf("%d",N);
  scanf("%c",C);
  if(C[1]=C[(N/2)+1])
  	for(i=1;i<(N/2);i++)
      if(C[i]=C[(N/2)+1+i])
      	printf("Yes\n");
      else
        printf("No\n");
  else
    printf("No\n");
}

Compiler output:
main.c: In function 'main':
main.c:8:7: error: subscripted value is neither array nor pointer nor vector
    8 |   if(C[1]=C[(N/2)+1])
      |       ^
main.c:8:12: error: subscripted value is neither array nor pointer nor vector
    8 |   if(C[1]=C[(N/2)+1])
      |            ^
main.c:10:11: error: subscripted value is neither array nor pointer nor vector
   10 |       if(C[i]=C[(N/2)+1+i])
      |           ^
main.c:10:16: error: subscripted value is neither array nor pointer nor vector
   10 |       if(C[i]=C[(N/2)+1+i])
      |                ^
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
  int a;
  char b[a]; 
  scanf("%d",&a);
  gets(b);
  if (a>=1 && a<=100)
  {
    if (a%2==0)
    {
      int c,d,e;
      c=a/2;
      int f[c],g[c];
      for (d=0;d<c;d++)
      {
        f[d]=b[d];
      }
      for (e=c;e<a;e++)
      {
        g[e]=b[e];
      }
      if(g==f)
        printf("Yes");
    }
    else
      printf("No);
  }
}


Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |   gets(b);
      |   ^~~~
      |   fgets
main.c:28:14: warning: missing terminating " character
   28 |       printf("No);
      |              ^
main.c:28:14: error: missing terminating " character
   28 |       printf("No);
      |              ^~~~~
main.c:29:3: error: expected expression before '}' token
   29 |   }
      |   ^
main.c:28:14: error: expected ';' before '}' token
   28 |       printf("No);
      |              ^
      |              ;
   29 |   }
      |   ~
Language: C

#include <stdio.h>
int main(void)
{
  int N ,i;
  char C;
  scanf("%d",N);
  scanf("%c",C);
  if(c[1]=c[(N/2)+1])
  	for(i=1;i<(N/2);i++)
      if(c[i]=c[(N/2)+1+i])
      	printf("Yes\n");
      else
        printf("No\n");
  else
    printf("No\n");
}

Compiler output:
main.c: In function 'main':
main.c:8:6: error: 'c' undeclared (first use in this function)
    8 |   if(c[1]=c[(N/2)+1])
      |      ^
main.c:8:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
  string str;
  char t[100];
  int n;
  cin>>n;
  strlen(str)=n;
  cin>>t;
 	if(str=t+t)
      cout<<"Yes\n";
  else
    cout<<"No";
	
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'strlen' was not declared in this scope
   10 |   strlen(str)=n;
      |   ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | #include<string>
a.cc:12:17: error: invalid operands of types 'char [100]' and 'char [100]' to binary 'operator+'
   12 |         if(str=t+t)
      |                ~^~
      |                | |
      |                | char [100]
      |                char [100]
Language: C++

int a;
  cin>>a;
  
  string g;
  cin>>g;
  
  if(a%2==0)
  {
    if(g.substr(0,(a/2))== g.substr(a/2,a-1))
      cout<<"Yes";
    
    else
      cout<<"No";
    
  }
  
  else
    cout<<"No";

Compiler output:
a.cc:2:3: error: 'cin' does not name a type
    2 |   cin>>a;
      |   ^~~
a.cc:4:3: error: 'string' does not name a type
    4 |   string g;
      |   ^~~~~~
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>g;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(a%2==0)
      |   ^~
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else
      |   ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:55: error: invalid operands to binary + (have 'char *' and 'char *')
   16 |                                         char t2[n+1]=t+t;
      |                                                      ~^
      |                                                      ||
      |                                                      |char *
      |                                                      char *
main.c:16:54: error: variable-sized object may not be initialized except with an empty initializer
   16 |                                         char t2[n+1]=t+t;
      |                                                      ^
Language: C++

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

int main() {
    int N;
    string S , T , U;
    cin >> N , S;
    T = S.substr(0, (N + 1) / 2)
    U = S - T;
    if(T == U){
        cout << "Yes";
    }
    else{
        cout << "No";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected ';' before 'U'
    8 |     T = S.substr(0, (N + 1) / 2)
      |                                 ^
      |                                 ;
    9 |     U = S - T;
      |     ~
Language: C++

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

int main() {
    int N;
    string S;
    cin >> N , S;
    T = S.substr(0, (N + 1) / 2)
    U = S - T;
    if(T == U){
        cout << "Yes";
    }
    else{
        cout << "No";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'T' was not declared in this scope
    8 |     T = S.substr(0, (N + 1) / 2)
      |     ^
a.cc:10:13: error: 'U' was not declared in this scope
   10 |     if(T == U){
      |             ^
Language: C

#include<stdio.h>
#include<string.h>
main()
{
  int N;
  char S [N];
  char T [50];
  scanf("%d",&N);
  scanf("%s",S);
  if(N%2==0){
    {
    strncpy(T,S+0,N/2);
    T[N/2]='\0';
      strcat(T,T);
     
    }
      if(S==T){
    printf("Yes");}
    else{
      printf("No");
  }
    
  else{
    printf("No");
  }
}
    
  


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:23:3: error: expected '}' before 'else'
   23 |   else{
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;
int main () {
  int a;
  cin >> a;
  int t = "abc";
  int y = "abc";
  if (t == y) {
    cout << "YES";
    }
  else {
    cout << "NO";
    }
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    6 |   int t = "abc";
      |           ^~~~~
      |           |
      |           const char*
a.cc:7:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    7 |   int y = "abc";
      |           ^~~~~
      |           |
      |           const char*
Language: C++

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

int main() {
  int N;
  cin >> N;
  string S;
  cin >> S;
  string T;
  for (int i = 0; i < N/2; i++) {
    T += S.at(i)
  }
  if(S==T+T){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected ';' before '}' token
   11 |     T += S.at(i)
      |                 ^
      |                 ;
   12 |   }
      |   ~
Language: C++

#include  <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define repk(i,m,n) for(ll i=m;i<n;i++)
#define IOS ios::sync_with_stdio(false);cin.tie(0);
typedef long long ll;
using namespace std;
map<ll,ll> m;

int main()
{
    IOS;
    ll n;
    bool x=0;
    string s;
    cin>>n>>s;
    if(n%2==1)
    {
        cout<<"No";
        return 0;
    }
    rep(i,n/2)
    {
        if(s[i]!=s[i+n/2])
            x=1;
    }
    if(x) cout<<"No";
    else cout<<"YES";1
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:23: error: expected ';' before '}' token
   28 |     else cout<<"YES";1
      |                       ^
      |                       ;
   29 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:32: error: array size missing in 'str'
    8 |                           char str[];
      |                                ^~~
main.c:12:34: error: array size missing in 't'
   12 |                             char t[];
      |                                  ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  string S;
  cin >> S;
  string T;
  for (int i = 0; i < N/2; i++) {
    T += str.at(i)
  }
  if(S==T+T){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'str' was not declared in this scope; did you mean 'std'?
   11 |     T += str.at(i)
      |          ^~~
      |          std
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str, str2
  int N,n;
 
  if(N % 2 == 0){
  	int n = N / 2;
    for(int i = 0; i < n; i++){
    	str2 = str.at(i);
    } 
    if(str == str2 + str2){
      	cout << "Yes";
    } else {
      	cout << "No";
    }
  } else {
  	cout << "No";
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'int'
    6 |   int N,n;
      |   ^~~
a.cc:8:6: error: 'N' was not declared in this scope
    8 |   if(N % 2 == 0){
      |      ^
a.cc:11:9: error: 'str2' was not declared in this scope; did you mean 'str'?
   11 |         str2 = str.at(i);
      |         ^~~~
      |         str
a.cc:13:15: error: 'str2' was not declared in this scope; did you mean 'str'?
   13 |     if(str == str2 + str2){
      |               ^~~~
      |               str
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
  int n
  char s[n],t[n],u[n];
  scanf("%d\n",&n);
  scanf("%s",s);
  for(int i=0;i<n/2;i++)
  {
    t[i]=s[i];
  }
  int j=0;
  for(int i=n/2+1;i<n;i++)
  {
    u[j]=s[i];
    j++;
  }
  if(strcmp(t,u)==0)
  {
    printf("YES");
  }
  else
  {
    printf("NO");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected ';' before 'char'
    5 |   int n
      |        ^
      |        ;
    6 |   char s[n],t[n],u[n];
      |   ~~~~  
main.c:6:10: error: 'n' undeclared (first use in this function)
    6 |   char s[n],t[n],u[n];
      |          ^
main.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str, str2
  int N;
 
  if(N % 2 == 0){
  	int n = N / 2;
    for(int i = 0; i < n; i++){
    	str2 = str.at(i);
    } 
    if(str == str2 + str2){
      	cout << "Yes";
    } else {
      	cout << "No";
    }
  } else {
  	cout << "No";
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'int'
    6 |   int N;
      |   ^~~
a.cc:8:6: error: 'N' was not declared in this scope
    8 |   if(N % 2 == 0){
      |      ^
a.cc:11:9: error: 'str2' was not declared in this scope; did you mean 'str'?
   11 |         str2 = str.at(i);
      |         ^~~~
      |         str
a.cc:13:15: error: 'str2' was not declared in this scope; did you mean 'str'?
   13 |     if(str == str2 + str2){
      |               ^~~~
      |               str
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 {
    bool flag = true;
    for (int i = 0; i < N/2; i++) {
      if (S.at(i) != S.at(i + N/2)) {
        flag = false;
      }
    }
  }
  
  if (flag) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:7: error: 'flag' was not declared in this scope
   20 |   if (flag) {
      |       ^~~~
Language: C++

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

signed main(){
  int n; cin >> n;
	string s; cin >> s;
  	if(n%2==1) cout << "No";
  	else{
      	bool ans = true;
    	for(int i=0; i< n/2; ++i) ans &= (s[i] == s[n/2+i]);
      	if(ans) cout << "Yes";
      	else cout  << "No";
    }
}b

Compiler output:
a.cc:14:2: error: 'b' does not name a type
   14 | }b
      |  ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  string S;
  cin >> S;
  string T
  for (int i = 0; i < N/2; i++) {
    T += str.at(i)
  if(S==T+T){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected initializer before 'for'
   10 |   for (int i = 0; i < N/2; i++) {
      |   ^~~
a.cc:10:19: error: 'i' was not declared in this scope
   10 |   for (int i = 0; i < N/2; i++) {
      |                   ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main () {
  int a,b;
  cin >> a >> b;
  if (b / 1000 == b % 1000) {
    cout "YES";
    }
  else {
    cout << "NO";
    }
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ';' before string constant
    7 |     cout "YES";
      |         ^~~~~~
      |         ;
Language: C++

#include<iostream>
#include<string>
#include<sstream>

using namespace std;

std::vector<std::string> StringSplit(const std::string &str, char sep){
    std::vector<std::string> v;
    std::stringstream ss(str);
    std::string buffer;
    while( std::getline(ss, buffer, sep) ) {
        v.push_back(buffer);
    }
    return v;
}

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

}

Compiler output:
a.cc:7:6: error: 'vector' in namespace 'std' does not name a template type
    7 | std::vector<std::string> StringSplit(const std::string &str, char sep){
      |      ^~~~~~
a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    3 | #include<sstream>
  +++ |+#include <vector>
    4 |
Language: C

#include<stdio.h>
#include<string.h>
main()
{
  int N;
  char S [N];
  char T [50];
  scanf("%d",&N);
  scanf("%s",S);
  if(N%2==0){
    {
    strncpy(T,S+0,N/2);
    T[N/2]='\0';}
      if(S==2*T){
    printf("Yes");}
    else{
      printf("No");
  }
    
  else{
    printf("No");
  }
}
    
  


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:14:14: error: invalid operands to binary * (have 'int' and 'char *')
   14 |       if(S==2*T){
      |              ^
      |              |
      |              char *
main.c:20:3: error: expected '}' before 'else'
   20 |   else{
      |   ^~~~
Language: C++

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

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

#includde<stdio.h>
#include<string.h>
main()
{
  int N;
  char S [N];
  char T [50];
  scanf("%d",&N);
  scanf("%s",S);
  if(N%2==0){
    {
    strncpy(T,S+0,N/2);
    T[N/2]='\0';}
      if(S==2*T){
    printf("Yes");}
    else{
      printf("No");
  }
    
  else{
    printf("No");
  }
}
    
  


Compiler output:
main.c:1:2: error: invalid preprocessing directive #includde; did you mean #include?
    1 | #includde<stdio.h>
      |  ^~~~~~~~
      |  include
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |   scanf("%d",&N);
      |   ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include<string.h>
  +++ |+#include <stdio.h>
    3 | main()
main.c:8:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |   scanf("%d",&N);
      |   ^~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:14:14: error: invalid operands to binary * (have 'int' and 'char *')
   14 |       if(S==2*T){
      |              ^
      |              |
      |              char *
main.c:15:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |     printf("Yes");}
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |       printf("No");
      |       ^~~~~~
main.c:17:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:3: error: expected '}' before 'else'
   20 |   else{
      |   ^~~~
main.c:21:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   21 |     printf("No");
      |     ^~~~~~
main.c:21:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(){
  int N,n;
  char S[100],T1[50],T2[50];
  scanf("%d\n", &N);
  scanf("%s\n", S);
  n=N/2;
  
  if (N==0||N%2==1)
    printf("No\n");
  else{
    for(i=0;i<n;i++){
      T1[i]=S[i];
      T2[i]=S[i+n];
      if(T1[i]!=T2[i]){
         printf("No\n");
         break;
      }
      else if(T1[i]==T2[i] && i == n-1){
        printf("Yes\n");
        break;
      }
    }
  }
  return (0);
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: 'i' undeclared (first use in this function)
   13 |     for(i=0;i<n;i++){
      |         ^
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

import itertools
import math

N = int(raw_input());
S = raw_input().strip()

def good(s):
    if len(s) % 2 == 1:
        return False
    
    n = len(s) / 2
    return all(s[i] == s[i+n] for i in range(n))

print "Yes" if good(S) else "No"


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import itertools
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'S' does not name a type
    5 | S = raw_input().strip()
      | ^
Language: C

#include<stdio.h>
#include<string.h>
main()
{
  int N;
  char S [N];
  char T [50]
  scanf("%d",&N);
  scanf("%s",S);
  if(N%2==0 && S==2*T){
    
     strncpy(T,S+0,N/2);
    T[N/2]='\0';
    printf("Yes");
     }
  else{
    printf("No");
  }
}
    
  


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:8:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    8 |   scanf("%d",&N);
      |   ^~~~~
main.c:10:21: error: 'T' undeclared (first use in this function)
   10 |   if(N%2==0 && S==2*T){
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
  int N;
  char S[100],T1[50],T2[50];
  scanf("%d\n",N);
  scanf("%s\n",S);
  n=N/2;
  
  if (N==0||N%2==1)
    printf("No\n");
  else{
    for(i=0;i<n,;i++){
      T1[i]=S[i];
      T2[i]=S[i+n];
      if(T1[i]!=T2[i]){
         printf("No\n");
         break;
      }
      else if(T1[i]==T2[i] && i == n-1){
        printf("Yes\n");
        break;
      }
    }
  }
  return (0);
}
    
    
    
  
  
  

Compiler output:
main.c: In function 'main':
main.c:8:3: error: 'n' undeclared (first use in this function)
    8 |   n=N/2;
      |   ^
main.c:8:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:9: error: 'i' undeclared (first use in this function)
   13 |     for(i=0;i<n,;i++){
      |         ^
main.c:13:17: error: expected expression before ';' token
   13 |     for(i=0;i<n,;i++){
      |                 ^
Language: C

#includde<stdio.h>
#include<string.h>
main()
{
  int N;
  char S [N];
  char T [50]
  scanf("%d",&N);
  scanf("%s",S);
  if(N%2==0 && S==2*T){
    
     strncpy(T,S+0,N/2);
    T[N/2]='\0';
    printf("Yes");
     }
  else{
    printf("No");
  }
}
    
  


Compiler output:
main.c:1:2: error: invalid preprocessing directive #includde; did you mean #include?
    1 | #includde<stdio.h>
      |  ^~~~~~~~
      |  include
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:8:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    8 |   scanf("%d",&N);
      |   ^~~~~
main.c:8:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include<string.h>
  +++ |+#include <stdio.h>
    3 | main()
main.c:8:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |   scanf("%d",&N);
      |   ^~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:21: error: 'T' undeclared (first use in this function)
   10 |   if(N%2==0 && S==2*T){
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   14 |     printf("Yes");
      |     ^~~~~~
main.c:14:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:14:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |     printf("No");
      |     ^~~~~~
main.c:17:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#includde<stdio.h>
#include<string.h>
main()
{
  int N;
  char S [N];
  char T [50]
  scanf("%d",&N);
  scanf("%s",S);
  if(N%2==0 && S==2T){
    
     strncpy(T,S+0,N/2);
    T[N/2]='\0';
    printf("Yes");
     }
  else{
    printf("No");
  }
}
    
  


Compiler output:
main.c:1:2: error: invalid preprocessing directive #includde; did you mean #include?
    1 | #includde<stdio.h>
      |  ^~~~~~~~
      |  include
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:8:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    8 |   scanf("%d",&N);
      |   ^~~~~
main.c:8:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include<string.h>
  +++ |+#include <stdio.h>
    3 | main()
main.c:8:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |   scanf("%d",&N);
      |   ^~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:19: error: invalid suffix "T" on integer constant
   10 |   if(N%2==0 && S==2T){
      |                   ^~
main.c:12:14: error: 'T' undeclared (first use in this function)
   12 |      strncpy(T,S+0,N/2);
      |              ^
main.c:12:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   14 |     printf("Yes");
      |     ^~~~~~
main.c:14:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:14:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |     printf("No");
      |     ^~~~~~
main.c:17:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

int main(void){
  int n;
  cin >> n;
  vector<char> s(n);
  for(int i=0; i < n; ++i){
    cin >> s.at(i);
  }
  int error=0;
  if(n%2 == 1){
    cout << "No" << endl;
  }
  else if(n%2 == 0){
    for(int i=0; i < n/2-1; ++i){
      if(s.at(i) != s.at(i+n/2){
        error++;
      }
    }
    if(error != 0){
      cout << "No" <<endl;
    }
    else cout << "Yes" << endl;
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:17:32: error: expected ')' before '{' token
   17 |       if(s.at(i) != s.at(i+n/2){
      |         ~                      ^
      |                                )
a.cc:20:5: error: expected primary-expression before '}' token
   20 |     }
      |     ^
Language: Java


import java.util.Scanner;

/**
 *
 * @author cs18097
 */
public class ABC145b {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String str = sc.next();
        if(n%2!=0){
            System.out.print("No");
            return;
        }
        
        int i = 0;
        while(i < n/2){
            if(str.charAt(i)!=str.charAt(i+n/2)){
                System.out.print("No");
                return;
            }
            i++;
        }
        System.out.print("Yes");
    }
    
}


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

#include<iostream>
#include<math.h>
#include<string.h>
using namespace std;

int main(){
    int N;
    string S;
    cin >> N>>S;
    if( N % 2 == 0 ){
        string a=S.substr(N/2);
        string b=S.substr(0,N/2);
        if(strcmp(a.c_str(),b.c_str()){
            cout<<"Yes"<<endl;

        }
        else{
            cout<<"No"<<endl;
        }
    }
    else{
        cout<<"No"<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:39: error: expected ')' before '{' token
   13 |         if(strcmp(a.c_str(),b.c_str()){
      |           ~                           ^
      |                                       )
a.cc:20:5: error: expected primary-expression before '}' token
   20 |     }
      |     ^
Language: C++

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

int main(){
    int N;
    cin>>N;
    string S,T;
    cin>>T;
    if ( S = str(2, T) )
        cout<<"Yes"<<endl;
    else 
        cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |     if ( S = str(2, T) )
      |              ^~~
      |              std
Language: C++

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

int main(){
    int N;
    cin>>N;
    string S,T;
    cin>>T;
    if ( S = string str(2, T) )
        cout<<"Yes"<<endl;
    else 
        cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected primary-expression before 'str'
    9 |     if ( S = string str(2, T) )
      |                     ^~~
a.cc:9:20: error: expected ')' before 'str'
    9 |     if ( S = string str(2, T) )
      |        ~           ^~~~
      |                    )
Language: C

#includde<stdio.h>
#include<string.h>
main()
{
  int N;
  char S [N];
  char T[];
  scanf("%d",&N);
  scanf("%s",S);
  if(N%2==0){
     strncpy(T,S+0,N/2);
    T[N/2]='\0';
    printf("Yes");
     }
  else{
    printf("No");
  }
}
    
  

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includde; did you mean #include?
    1 | #includde<stdio.h>
      |  ^~~~~~~~
      |  include
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:7:8: error: array size missing in 'T'
    7 |   char T[];
      |        ^
main.c:8:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |   scanf("%d",&N);
      |   ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include<string.h>
  +++ |+#include <stdio.h>
    3 | main()
main.c:8:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |   scanf("%d",&N);
      |   ^~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |     printf("Yes");
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |     printf("No");
      |     ^~~~~~
main.c:16:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:12:16: error: expected expression before '<' token
   12 |   for(i = 0;i =< n / 2;i++){
      |                ^
main.c:15:22: error: expected expression before '=' token
   15 |     for(i = n/2 + 1; =< n;i++){
      |                      ^
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
  int a;
  char b[a]; 
  scanf("%d",&a);
  gets(b);
  if (a>=1 && a<=100)
  {
    if (b[a]>='a' && b[a]<='z')
    {
      int i;
      for(i=0;i<a;i++)
      {
        for(j=0;j<a;j++)
        {
          if (b[i[==b[j])
                  {
                    printf("Yes");
                  }
          else
          printf("No");
        }
      }
    }
  }
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |   gets(b);
      |   ^~~~
      |   fgets
main.c:16:13: error: 'j' undeclared (first use in this function)
   16 |         for(j=0;j<a;j++)
      |             ^
main.c:16:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:19: error: expected expression before '==' token
   18 |           if (b[i[==b[j])
      |                   ^~
main.c:18:25: error: expected ']' before ')' token
   18 |           if (b[i[==b[j])
      |                         ^
      |                         ]
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#include <iostream>
#include <stdlib.h>
#define REP(i,n) for(int i=0;i<n;i++)
#define MOD (1000000007)
using namespace std; 
 
 
int main(){ 
        int N;
        cin >> N;
        string S;
        cin >> S;
        bool isSame = true;
        if(N%2==0){
          		half = N%2;
                for(int i=0;i<half;i++){
                        if(S[i]!=S[i+half]){isSame = false;}
                }
        }
  		else{
                cout << "No" << endl;
          		return 0;
        }
        if(isSame){
                cout << "Yes" << endl;
        }
        else{
                cout << "No" << endl;
        }
        return 0;         
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: 'half' was not declared in this scope
   17 |                         half = N%2;
      |                         ^~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#include <iostream>
#include <stdlib.h>
#define REP(i,n) for(int i=0;i<n;i++)
#define MOD (1000000007)
using namespace std; 
 
 
int main(){ 
        int N;
        cin >> N;
        string S;
        cin >> S;
        bool isSame = true;
        if(N%2==0){
                for(int i=0;i<half;i++){
                        if(S[i]!=S[i+half]){isSame = false;}
                }
        }
  		else{
                cout << "No" << endl;
          		return 0;
        }
        if(isSame){
                cout << "Yes" << endl;
        }
        else{
                cout << "No" << endl;
        }
        return 0;         
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:31: error: 'half' was not declared in this scope
   17 |                 for(int i=0;i<half;i++){
      |                               ^~~~
Language: Java

N = gets.to_i
S = gets


if N % 2 == 1
  puts "No" 
  exit
end

str = S.slice(0, N/2)

puts S.include?(str*2) ? "Yes" : "No"



Compiler output:
Main.java:1: error: class, interface, enum, or record expected
N = gets.to_i
^
1 error
Language: C++

#include <iostream>


using namespace std;
int main() {
	int n;
	scanf("%d",&n);
	if(n%2==1){
		cout<<"No";
		return 0;
	}
	string s,s1="",s2="";
	cin>>s;
	for(int i=0;i<n/2;i++) s1+=s[i]; 
	for(int i=n/2;i<n;i++) s2+=s[i]; 
	if(s1==s2) cout<<"Yes";
	else cout<<"No"
	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: expected ';' before 'return'
   17 |         else cout<<"No"
      |                        ^
      |                        ;
   18 |         return 0;
      |         ~~~~~~
Language: C++

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

Compiler output:
a.cc:25:12: warning: missing terminating " character
   25 |     printf("No\n);
      |            ^
a.cc:25:12: error: missing terminating " character
   25 |     printf("No\n);
      |            ^~~~~~~
a.cc: In function 'int main()':
a.cc:27:3: error: expected primary-expression before 'return'
   27 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:32: error: 'n\U0000ff0b1' undeclared (first use in this function)
    7 |                       char str[n＋1];
      |                                ^~~~
main.c:7:32: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String s = sc.next();
        String t;
      
        t = s.substring(n/2);
      	
      	if (t + t.equals(s)) {
          System.out.print("Yes");
        } else {
          System.out.print("No");
        }
    }
}
      	

Compiler output:
Main.java:12: error: incompatible types: String cannot be converted to boolean
      	if (t + t.equals(s)) {
      	      ^
1 error
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#include <iostream>
#include <stdlib.h>
#define REP(i,n) for(int i=0;i<n;i++)
#define MOD (1000000007)
using namespace std; 
 
 
int main(){ 
        int N;
        cin >> N;
        string S;
        cin >> S;
        int isSame = 1;
        if(N%2==0){
          		half = N%2;
                for(int i=0;i<half;i++){
                        if(S[i]!=S[i+half]){ isSame = 0; break;}
                }
        } 
        if(N%2==0 && isSame){ 
                cout << "Yes" << endl;
        }
        else{
                cout << "No" << endl;
        }
        return 0;         
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: 'half' was not declared in this scope
   17 |                         half = N%2;
      |                         ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:32: error: 'n\U0000ff0b1' undeclared (first use in this function)
    7 |                       char str[n＋1];
      |                                ^~~~
main.c:7:32: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:28: error: 'n\U0000ff0b1' undeclared (first use in this function)
    7 |                   char str[n＋1];
      |                            ^~~~
main.c:7:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

/*
	Name:
	Author: Xia Ruize
	Date:
*/

/*
bool is_prime(int x)
{
	if(x<2)
		return false;
	for(int i=2;i*i<=x;i++)
	{
		if(x%i==0)
		{
			return false;
		}
	}
	return true;
}
*/

int main()
{
	int n;
	cin>>n;
	string s="";
	cin>>s
	string s1="",s2=""; 
	 s1=s.substr(0,n/2);
	 s2=s.substr(n/2);
	 for(int i=0;i<n/2-1;i++)
	 {
	 	if(s1[i]!=s2[i])
	 	{
	 		cout<<"No"<<endl;
	 		return 0;
		 }
	 }
	 cout<<"Yes"<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:15: error: expected ';' before 'string'
   31 |         cin>>s
      |               ^
      |               ;
   32 |         string s1="",s2="";
      |         ~~~~~~ 
a.cc:33:10: error: 's1' was not declared in this scope; did you mean 's'?
   33 |          s1=s.substr(0,n/2);
      |          ^~
      |          s
a.cc:34:10: error: 's2' was not declared in this scope; did you mean 's'?
   34 |          s2=s.substr(n/2);
      |          ^~
      |          s