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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'n' was not declared in this scope
    9 |     if(n%2 != 0){
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: expected ';' before 'printf'
   20 |     flag  printf("Yes\n") : printf("No\n");
      |         ^ ~~~~~~
      |         ;
Language: C++

#include<bits/stdc++.h>							
typedef long long ll;
#define pb push_back
#define mod 1000000007ll
const ll maxn = 9e18;
using namespace std;
const ll maxsize = 100000009;

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

int main() {
	ios_base :: sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	cout.precision(35);
	solve();
	return 0;
}
 
 
 



Compiler output:
a.cc: In function 'void solve()':
a.cc:13:16: error: redeclaration of 'std::string t'
   13 |         string t = s.substr(n / 2);
      |                ^
a.cc:11:19: note: 'std::string t' previously declared here
   11 |         string s, t;
      |                   ^
Language: C++

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

//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007    //10^9+7:合同式の法
#define MAXR 100000       //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first      //pairの一つ目の要素
#define S second     //pairの二つ目の要素
#define Z class
// OTHER
// xの二乗を返す (関数テンプレート版)
template <typename T>
T square(T x) { return x * x; }
#define chmax(x, y) (x = max(x, y))
#define chmin(x, y) (x = min(x, y))
// loop
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= ll(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= ll(b); i--)
#define FORA(i, I) for (const auto &i : I)

// vector
#define ALL(x) x.begin(), x.end()

// output
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define isYES(x) printf("%s\n", (x) ? "YES" : "NO")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define ln cout << '\n'
template <Z A>
void pr(A a)
{
  cout << a;
  ln;
}
template <Z A, Z B>
void pr(A a, B b)
{
  cout << a << ' ';
  pr(b);
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

int main()
{
  int n;
  string s;
  cin >> n >> s;
  if (n % 2 != 0)
  {
    No();
    return 0:
  }
  else
  {
    rep(i, n / 2)
    {
      if (s[i] != s[n / 2 + i])
      {
        No();
        return 0;
      }
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:64:13: error: expected ';' before ':' token
   64 |     return 0:
      |             ^
      |             ;
a.cc:64:13: error: expected primary-expression before ':' token
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'substr' was not declared in this scope; did you mean 'strstr'?
   10 |     t=substr(0,n/2);
      |       ^~~~~~
      |       strstr
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: no match for 'operator%' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
    9 |         if (N % 2 == 1) {
      |             ~ ^ ~
      |             |   |
      |             |   int
      |             std::string {aka std::__cxx11::basic_string<char>}
a.cc:12:32: error: no match for 'operator/' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   12 |         frontS = S.substr(0, N / 2);
      |                              ~ ^ ~
      |                              |   |
      |                              |   int
      |                              std::string {aka std::__cxx11::basic_string<char>}
a.cc:13:28: error: no match for 'operator/' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   13 |         backS = S.substr(N / 2, N / 2);
      |                          ~ ^ ~
      |                          |   |
      |                          |   int
      |                          std::string {aka std::__cxx11::basic_string<char>}
a.cc:13:35: error: no match for 'operator/' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   13 |         backS = S.substr(N / 2, N / 2);
      |                                 ~ ^ ~
      |                                 |   |
      |                                 |   int
      |                                 std::string {aka std::__cxx11::basic_string<char>}
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:16:10: error: 'count' undeclared (first use in this function)
   16 |          count++;
      |          ^~~~~
main.c:16:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=0;i<n;i++)
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:10: error: 'count' undeclared (first use in this function)
   16 |          count++;
      |          ^~~~~
Language: Java


import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class codeforces{
	static BufferedReader br;
	static int cin() throws Exception
	{
		return Integer.valueOf(br.readLine());
	}
	static int[] split() throws Exception
	{
		String[] cmd=br.readLine().split(" ");
		int[] ans=new int[cmd.length];
		for(int i=0;i<cmd.length;i++)
		{
			ans[i]=Integer.valueOf(cmd[i]);
		}                                              
		return ans;
	} 
    public static void main(String[] args) throws Exception {
        br = new BufferedReader(new InputStreamReader(System.in));
        int n=cin();
        String s=br.readLine();
        if(n%2!=0)
        	System.out.println("No");
        else
        {
        	int x=n/2;
        	String t=s.substring(0,x);
        	if((t+t).equals(s))
        		System.out.println("Yes");
        	else
        		System.out.println("No");
        }
    }
}

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

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

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

#include<stdio.h>
int main()
{
  int n;
  scanf("%d",&n);
  int s[n+1];
  scanf("%s",s);
  if(n%2==1)
    printf("No\n");
  else
  {
    int f=0;
    for(i=0;i<n/2;i++)
      if(s[i]!=s[i+n/2])
      {
      f=1;
      break;
      }
    if(f==1)
      printf("No\n");
    else
      printf("Yes\n");
  }
  return 0;
}
#include<stdio.h>
int main()
{
  int n;
  scanf("%d",&n);
  char s[n+1];
  scanf("%s",s);
  if(n%2==1)
    printf("No\n");
  else
  {
    int f=0;
    for(i=0;i<n/2;i++)
      if(s[i]!=s[i+n/2])
      {
      f=1;
      break;
      }
    if(f==1)
      printf("No\n");
    else
      printf("Yes\n");
  }
  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/2;i++)
      |         ^
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:27:5: error: redefinition of 'main'
   27 | int main()
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int()'
    2 | int main()
      |     ^~~~
main.c: In function 'main':
main.c:38:9: error: 'i' undeclared (first use in this function)
   38 |     for(i=0;i<n/2;i++)
      |         ^
Language: C

#include<stdio.h>
int main()
{
  int n;
  scanf("%d",&n);
  int s[n+1];
  scanf("%s",s);
  if(n%2==1)
    printf("No\n");
  else
  {
    int f=0;
    for(i=0;i<n/2;i++)
      if(s[i]!=s[i+n/2])
      {
      f=1;
      break;
      }
    if(f==1)
      printf("No\n");
    else
      printf("Yes\n");
  }
  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/2;i++)
      |         ^
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <stdio.h>
int main(){
	int n, total;
	scanf("%d",&n);
	
	for (int i = 1; i<= n; i++);
		if(i % 3 && i % 5 == 0);{
			printf("FizzBuzz");			
		}
		else if( i % 5 == 0);{
			printf("Buzz");
		}
		else if(i % 3  == 0);{
			printf("Fizz");
		}
		else {
			printf(int total += i);
		}		
	printf("%d", total);			
	
	return 0;
}
	
	
	

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'i' was not declared in this scope
    7 |                 if(i % 3 && i % 5 == 0);{
      |                    ^
a.cc:10:17: error: 'else' without a previous 'if'
   10 |                 else if( i % 5 == 0);{
      |                 ^~~~
a.cc:10:26: error: 'i' was not declared in this scope
   10 |                 else if( i % 5 == 0);{
      |                          ^
a.cc:13:17: error: 'else' without a previous 'if'
   13 |                 else if(i % 3  == 0);{
      |                 ^~~~
a.cc:13:25: error: 'i' was not declared in this scope
   13 |                 else if(i % 3  == 0);{
      |                         ^
a.cc:16:17: error: 'else' without a previous 'if'
   16 |                 else {
      |                 ^~~~
a.cc:17:32: error: expected primary-expression before 'int'
   17 |                         printf(int total += i);
      |                                ^~~
Language: C

#include <stdio.h>

bool echo(int N, char S[]) {
  for(int i = 0; i < N/2; i++) {
    if(S[i] != S[i + N/2]) {
      return false;
    }
  }

  return true;
}

int main() {
  int N;
  char S[102];
  scanf("%d %s", &N, S);
  (N % 2 == 0 && echo(N, S)) ? puts("Yes") : puts("No");
  
  return 0;
}

Compiler output:
main.c:3:1: error: unknown type name 'bool'
    3 | bool echo(int N, char S[]) {
      | ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c: In function 'echo':
main.c:6:14: error: 'false' undeclared (first use in this function)
    6 |       return false;
      |              ^~~~~
main.c:6:14: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:10: error: 'true' undeclared (first use in this function)
   10 |   return true;
      |          ^~~~
main.c:10:10: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C++

#include <stdio.h>
#include <string.h>

int main() {
    int N;
    char S[102], ans[] = "Yes";
    scanf("%d %s", &n, s);

  if(N % 2) {
        for(int i = 0; i < N/2; i++) {
            if(S[i] != S[i + N/2]) {
        strcpy(ans, "No");
        break;
      }
        }
  }

  printf("%s\n", ans);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'n' was not declared in this scope
    7 |     scanf("%d %s", &n, s);
      |                     ^
a.cc:7:24: error: 's' was not declared in this scope
    7 |     scanf("%d %s", &n, s);
      |                        ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else{
      | ^~~~
Language: C++

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:25: error: 'puts1' was not declared in this scope; did you mean 'puts'?
   27 |                         puts1("No");
      |                         ^~~~~
      |                         puts
Language: C++

#include <stdio.h>


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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:19: error: expected ';' before string constant
   23 |             printf"No");
      |                   ^~~~
      |                   ;
Language: C++

#include <stdio.h>

int main (){
	int n;
	scanf ("%d", &n);
	char str[n + 1]; // untk null terminator
	scanf ("%s", str);
	
	if (n % 2 == 1){
		puts ("No");
		}	
	else {
		int half = 1;
		// 1 == benar
		// 0 == salah
		for (int i = 0; i < n / 2; i++){
			if (str[i] != str[i + n / 2]){
				half = 0;
			}
		}
	}
		if (half){
			puts ("Yes");
		}
		else {
			puts ("No");
		}
	
	return 0;
}

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

#include <stdio.h>

int main() {
	int n;
	char str[n+1];
	scanf("%d", &n);
	scanf("%s", str);
	if(n%2 != 0){
		printf("No\n");
	}
	else{
		int flag = 1;
		for( int i = 0; i , n/2; i++){
			if (str[i] != str [i+n/2; i++]){
				flag = 0;
			}
		}
		if(flag){
			puts("Yes");
		}
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:49: error: expected ']' before ';' token
   14 |                         if (str[i] != str [i+n/2; i++]){
      |                                                 ^
      |                                                 ]
a.cc:14:49: error: expected ')' before ';' token
   14 |                         if (str[i] != str [i+n/2; i++]){
      |                            ~                    ^
      |                                                 )
a.cc:14:54: error: expected ';' before ']' token
   14 |                         if (str[i] != str [i+n/2; i++]){
      |                                                      ^
      |                                                      ;
Language: C++

#include <stdio.h>
 int main() {
 	int n;
 	scanf("%d", &n);
 	char echo[n + 1]; // + 1 untuk null terminator
 	scanf("%s", str);
 	if (n % 2 == 1) {
 		puts("NO");
	 }
	else {
		//abcabc
		// abc | abc
		// 012 = 345
		int flag = 1;
		// 1 = benar
		// 2 = salah
		for(int i = 0; i < n / 2; i++) {
			if (str[i] != str[i + n / 2]) {
				flag = 0;
			}
		}
		if (flag) {
			puts("YES");
		}
	}
 	return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |         scanf("%s", str);
      |                     ^~~
      |                     std
Language: C++

#include <stdio.h>
#include <string.h>
int main(){
	int n;
	int flag = 0;
	scanf("%d", &n);
	char arr[n+1];
	scanf("%s", arr);
	if(n % 2 == 1){
		puts("No");
	}
	for(int i = 0; i < n/2 - 1; i++){
	if(arr[i] == arr[n+i)/2]){
		flag = 1;
	} else{
		flag = 0;
	}
}	
	if(flag == 1){
		puts("Yes");
	} else{
		puts("No");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:29: error: expected ']' before ')' token
   13 |         if(arr[i] == arr[n+i)/2]){
      |                             ^
      |                             ]
a.cc:13:30: error: expected primary-expression before '/' token
   13 |         if(arr[i] == arr[n+i)/2]){
      |                              ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sunstr'; did you mean 'substr'?
   12 |     string sf = s.sunstr(0, n / 2);
      |                   ^~~~~~
      |                   substr
Language: Java

package abc;

import java.util.Scanner;

public class MainABC145B {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println(run(sc));
        sc.close();
    }

    private static String run(Scanner sc) {
        int n = Integer.parseInt(sc.next());
        String s = sc.next();
        if ((n % 2) != 0) {
            return "No";
        }
        String first = s.substring(0, n / 2);
        String last = s.substring((n / 2));
        if (first.equals(last)) {
            return "Yes";
        }
        return "No";
    }
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:34: error: expected ']' before ')' token
   14 |         if(s[i]!=s[s.length()/2+i){
      |                                  ^
      |                                  ]
Language: C++

/*
h s, d't skp th si tll i's sved
 * ABC141 E
*/
#include<bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;
int main()
{
int n;
cin>>n;
stirng s;
cin>>s;
string ans="No";
if(n%2==0)
{
if(s.substr(0,n/2)==s.substr(n/2,n/2))
{
ans="Yes";
}
}
cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: 'stirng' was not declared in this scope
   13 | stirng s;
      | ^~~~~~
a.cc:14:6: error: 's' was not declared in this scope
   14 | cin>>s;
      |      ^
Language: C++

/*
h s, d't skp th si tll i's sved
 * ABC141 E
*/
#include<bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;
int main()
{
int n;
cin>>n;
stirng s;
cin>>s;
int ans="No";
if(n%2==0)
{
if(s.substr(0,n/2)==s.substr(n/2,n/2))
{
ans="Yes";
}
}
cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: 'stirng' was not declared in this scope
   13 | stirng s;
      | ^~~~~~
a.cc:14:6: error: 's' was not declared in this scope
   14 | cin>>s;
      |      ^
a.cc:15:9: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   15 | int ans="No";
      |         ^~~~
      |         |
      |         const char*
a.cc:20:5: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   20 | ans="Yes";
      |     ^~~~~
      |     |
      |     const char*
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int n;
    string s;
    cin >> n;
    cin >> s;
    if (check(n, s)) {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
    return 0;
}

bool check(int n, string s) {
    if (s.length() != n) {
        return false;
    }
    string t = s.substr(0, n / 2);
    if (t + t != s) {
        return false;
    }
    return true;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'check' was not declared in this scope
   10 |     if (check(n, s)) {
      |         ^~~~~
Language: C++

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

int main(){
  int a;
  string s;
  cin >> a >> s;
  if( a % 2 != 0 ) cout << "No" << endl;
  else if{
    bool flag = true;
    for( int i = 0; i < a; i++){
      if( s[i] != s[a/2] ) {
        flag = false;
      }
    }
    if(flag) cout << "Yes" << endl;
    else cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected '(' before '{' token
    9 |   else if{
      |          ^
      |          (
Language: C++

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

int main(){
  int a;
  string s;
  cin >> a >> s;
  if( a % 2 != 0 ) cout << "No" << endl;
  else if{
    bool flag = true;
    for( int i = 0; i < a; i++){
      if( s[i] != s[a/2] ) {
        flag = false;
      }
    }
    if(flag) cout << "Yes" << endl;
    else cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected '(' before '{' token
    9 |   else if{
      |          ^
      |          (
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int N;
    string S,ans="No";
    cin >> N >> S;
    if(N%2==0){
        int n = N/2;
        string T = S.substr(0,n);
        if(S=T+T) ans = "Yes";
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>](T))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |         if(S=T+T) ans = "Yes";
      |            ~^~~~
      |             |
      |             std::__cxx11::basic_string<char>
Language: Java

import java.util.*;
import java.lang.*;
import java.io.*;

public class Main{
    public static void main(String[] args) throws IOException{
        FastReader in = new FastReader();
        FastWriter out = new FastWriter();
        int n = in.nextInt();
        String a = in.nextLine();
        if (n % 2 != 0){
            out.pl("No");
        }else if (!(s.substring(0, n/2).equals(s.substring(n/2, n)))){
            out.pl("No");
        }else{
            out.pl("Yes");
        }
        /*
        if (n % 2 != 0){
            out.pl("No");
        }else{
            HashSet<Character> h = new HashSet<Character>();
            for (int i = 0; i < n; i++){
                h.add(s.charAt(i));
            }
            if (n / 2 == h.size()){
                out.pl("Yes");
            }else{
                out.pl("No");
            }
        }
        */
        out.close();
    } 
}
class FastReader{ 
    BufferedReader br; 
    StringTokenizer st; 
    public FastReader() { 
        br = new BufferedReader(new InputStreamReader(System.in)); 
    } 
    String next(){ 
        while (st == null || !st.hasMoreElements()) { 
            try{ 
                st = new StringTokenizer(br.readLine()); 
            }catch (IOException  e){ 
                e.printStackTrace(); 
            } 
        } 
        return st.nextToken(); 
    } 
    int nextInt(){ 
        return Integer.parseInt(next()); 
    } 
    long nextLong(){ 
        return Long.parseLong(next()); 
    } 
    double nextDouble(){ 
      return Double.parseDouble(next()); 
    } 
    String nextLine(){ 
        String str = ""; 
        try{ 
            str = br.readLine(); 
        } 
        catch (IOException e){ 
            e.printStackTrace(); 
        } 
        return str; 
    } 
}
class FastWriter{
    PrintWriter out;
    FastWriter(){
        out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
	out.flush();
    }
    void pl(Object o){
        out.write(o.toString());
	    out.write("\n");
        out.flush();
    }
    void pl(){
        out.write("\n");
    }
    void p(Object o){
        out.write(o.toString());
    }
    void close(){
        out.flush();
        out.close();
    }  
}


Compiler output:
Main.java:13: error: cannot find symbol
        }else if (!(s.substring(0, n/2).equals(s.substring(n/2, n)))){
                    ^
  symbol:   variable s
  location: class Main
Main.java:13: error: cannot find symbol
        }else if (!(s.substring(0, n/2).equals(s.substring(n/2, n)))){
                                               ^
  symbol:   variable s
  location: class Main
2 errors
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:4: error: expected '}' before 'else'
   12 |    else (N % 2 == 0 ){
      |    ^~~~
a.cc:10:18: note: to match this '{'
   10 |   if(N % 2 != 0 ){
      |                  ^
a.cc:12:22: error: expected ';' before '{' token
   12 |    else (N % 2 == 0 ){
      |                      ^
      |                      ;
a.cc: At global scope:
a.cc:22:3: error: 'cout' does not name a type
   22 |   cout << "Yes" << endl ;
      |   ^~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#define int long long
using namespace std;
signed main() {
	int N;
	string S;
	cin >> N >> S;
	int A = N / 2 - 1;
	bool A = false;
	for (int i = 0; i < A; i++) {
		for (int j = N/2; j < N; j++) {
			if (S.at(i) == S.at(j)) {
				A = true;
			}
		}
	}
	if (A == true) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:14: error: conflicting declaration 'bool A'
   25 |         bool A = false;
      |              ^
a.cc:24:13: note: previous declaration as 'long long int A'
   24 |         int A = N / 2 - 1;
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define GET_ARRAY_SIZE(a)   (sizeof(a)/sizeof(a[0]))
#define LL long long
#define VI vector<int>
#define VL vector<LL>
#define VII vector< vector<int> >
#define VLL vector< vector<LL> >
#define VS  vector<string>
#define VSS vector< vector<string> >
#define PII pair<int,int>
#define PIS pair<int,string>
#define PSI pair<string,int>
#define PLL pair<LL,LL>
const LL MOD = 1000000007;
const LL INF = 1e16;
LL facctorialMethod(int k);
int main(){
    LL n,n_len_2,n2_start;
    string s;
    cin >> n;
    cin >> s;
    n_len_2 = n / 2;
    n2_start = n / 2 + n%2;
    if(n%2 == 1) {
        cout << "No" << endl;  
        return 0;      
    }
    if(s.substr(0,n_len_2-1) == s.substr(n_len,n_len_2-1)) {
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }


    return 0;
}

LL facctorialMethod(int k){
    int sum = 1;
    for (int i = 1; i <= k; ++i){
        sum *= i;
    }
    return sum;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:42: error: 'n_len' was not declared in this scope; did you mean 'n_len_2'?
   30 |     if(s.substr(0,n_len_2-1) == s.substr(n_len,n_len_2-1)) {
      |                                          ^~~~~
      |                                          n_len_2
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	scanf("%d", &n);
	string s;
	cin >> s;
	string temp = "No";
    int k = n / 2;
    if(n % 2 == 0 && s.substr(0, k) == s.substr(k, k)) tmp = "Yes";
    cout << tmp << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:56: error: 'tmp' was not declared in this scope; did you mean 'temp'?
   11 |     if(n % 2 == 0 && s.substr(0, k) == s.substr(k, k)) tmp = "Yes";
      |                                                        ^~~
      |                                                        temp
a.cc:12:13: error: 'tmp' was not declared in this scope; did you mean 'temp'?
   12 |     cout << tmp << endl;
      |             ^~~
      |             temp
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	scanf("%d", &n);
	string s;
	cin >> s;
    int k = n / 2;
    if(n % 2 == 0 && s.substr(0, k) == s.substr(k, k)) tmp = "Yes";
    cout << tmp << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:56: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   10 |     if(n % 2 == 0 && s.substr(0, k) == s.substr(k, k)) tmp = "Yes";
      |                                                        ^~~
      |                                                        tm
a.cc:11:13: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   11 |     cout << tmp << endl;
      |             ^~~
      |             tm
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define REP2(i, n) for (int i = 1; i <= (int)(n); i++)
#define FOR(i, m, n) for (int i = m; i n; i++)
#define SORT(x) sort(x.begin(), x.end())
#define REVE(x) reverse(x.begin(), x.end())
#define ALL(x) (x).begin(), (x).end()
#define SUM(x) accumulate(ALL(x));
struct initon
{
    initon()
    {
        cin.tie(0);
        ios::sync_with_stdio(false);
    };
};
int k=0,n=0, m=0, l=0,a=0, b=0, c=0, d=0,e=0,ans=0,ans2=0,x=0,y=0;
string s,t,S;
signed main() {
    cin >> n >> s;
    if(n%2==0){
        REP(i,n/2){
            if(s[i]!=s[i+n/2]){
                cout << "No" << endl;
              return 0;
            }
        }
    }else{
        cout << "No" << endl;
      return 0
    }
    cout << "Yes" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:15: error: expected ';' before '}' token
   32 |       return 0
      |               ^
      |               ;
   33 |     }
      |     ~
Language: C++

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

if(n%2==0){
  string t = s.substr(n/2);

  if(s == t+t){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl; 
  }
}else{
    cout << "No" << endl; 
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'cin' was not declared in this scope
    3 | cin >> n;
      | ^~~
a.cc:4:1: error: 'string' was not declared in this scope
    4 | string s;
      | ^~~~~~
a.cc:5:8: error: 's' was not declared in this scope
    5 | cin >> s;
      |        ^
a.cc:8:9: error: expected ';' before 't'
    8 |   string t = s.substr(n/2);
      |         ^~
      |         ;
a.cc:10:11: error: 't' was not declared in this scope
   10 |   if(s == t+t){
      |           ^
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "No" << endl;
      |     ^~~~
a.cc:13:21: error: 'endl' was not declared in this scope
   13 |     cout << "No" << endl;
      |                     ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << "No" << endl;
      |     ^~~~
a.cc:16:21: error: 'endl' was not declared in this scope
   16 |     cout << "No" << endl;
      |                     ^~~~
Language: C++

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

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

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


public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        String S = scanner.next();

        if (S.length() % 2 != 0) {
            System.out.println("No");
            return;
        }

        String first = S.substring(0, S.length() / 2);
        String second = S.substring(S.length() / 2);

        if (first.equals(second)) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

    }
}


Compiler output:
Main.java:4: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C

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

    


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

#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<cmath>
#include<bitset>
#include<deque>
#include<functional>
#include<iterator>
#include<map>
#include<set>
#include<stack>
#include<queue>
#include<utility>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
#define a first
#define b second
#define sz(x) (ll)((x).size())
#define pb push_back
#define mp make_pair
#define bg begin()
#define ed end()
#define all(x) (x).bg,(x).ed
#define rep(i,n) for(ll i=0;i<(n);i++)
#define rep1(i,n) for(ll i=1;i<=(n);i++)
#define rrep(i,n) for(ll i=(n)-1;i>=0;i--)
#define rrep1(i,n) for(ll i=(n);i>=1;i--)
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
const ll MOD=1000000007;
const ll INF=1000000000000000;
template<class T> inline bool chmin(T& a, T b){if(a>b){a=b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b){if(a<b){a=b;return true;}return false;}
ll maxx(ll x,ll y,ll z){return max(max(x,y),z);}
ll minn(ll x,ll y,ll z){return min(min(x,y),z);}
ll gcd(ll x,ll y){if(x%y==0) return y;else return gcd(y,x%y);}
ll lcm(ll x,ll y){return x*(y/gcd(x,y));}

vector<ll> pw2(51,1);vector<ll> pw10(19,1);
int main(){
    {rep1(i,50) pw2[i]=2*pw2[i-1];}
    {rep1(i,18) pw10[i]=10*pw10[i-1];}
    
    ll N; cin>>N;
    string s; cin>>s;
    if(N%2==1){
        cout<<"No"<<<endl;
    }
    else{
        ll t=N/2;
        rep(i,t){
            if(s[i]!=s[i+t]){
                cout<<"No"<<endl;
                return 0;
            }
        }
        cout<<"Yes"<<endl;
    }
    
}




Compiler output:
a.cc: In function 'int main()':
a.cc:48:21: error: expected primary-expression before '<' token
   48 |         cout<<"No"<<<endl;
      |                     ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: 'A' was not declared in this scope
    6 |   if(A%2==1)
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'N' was not declared in this scope
   11 |     for(int i=0; i<N/2-1; i++){
      |                    ^
a.cc:16:11: error: 'N' was not declared in this scope
   16 |     if(L==N/2)
      |           ^
Language: C++

#include <bits/stdc++.h>

#define int long long
#define fast_io(); ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define loop(i,a,b) for(int i=a;i<b;i++)
#define all(x) x.begin(),x.end()
#define us unordered_set
#define um unordered_map
#define ms multiset
#define mm multimap
#define pb push_back
#define pf push_front
#define ins insert
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define _max max_element
#define _min min_element
#define tc(T) int T; cin>>T; while(T--)
#define q(q) int q; cin>>q; while(q--)
#define pi 3.1415926535897932384626433832
const int pinf=((int)2e18);
const int ninf=((int)-2e18);
const int mod=1000000007;

using namespace std;

int power(int x,int n,int M)
{
    if(n==0)
        return 1;
    else if(n%2 == 0)
        return power((x*x)%M,n/2,M);
    else
        return (x*power((x*x)%M,(n-1)/2,M))%M;
}

bool vowel(char c)
{
    return(c=='a' or c=='e' or c=='i' or c=='o' or c=='u' or c=='A' or c=='E' or c=='I' or c=='U' or c=='O');
}

int32_t main()
{
    fast_io();

    //FILE *fptr1=freopen("in.txt","r",stdin);
    //FILE *fptr2=freopen("out.txt","w",stdout);

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


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:52:10: error: 'nl' was not declared in this scope; did you mean 'n'?
   52 |     cin>>nl
      |          ^~
      |          n
a.cc:54:10: error: 's' was not declared in this scope
   54 |     cin>>s;
      |          ^
Language: C

#include<stdio.h>
#include<string.h>
 
#define max 1000
 
int main(){
  int len;
  char str[max];
  
  scanf("%d", &len);
  scanf("%s", str);
  
  if(len % 2 == 1){
    printf("No\n");
    return 0;
  }else{
    int i,j;
    char tmp[max];
    char tmp2[max];
    
    for(i = 0; i < len/2; i++){
      tmp[i] = str[i];
    }
    for(j = len/2; j < len+1; j++){
      tmp2[j-len/2] = str[j];
    }
    
    if(strcmp(str, tmp)==0){
      printf("Yes\n");
      return 0;
    }
  }
}
#include<stdio.h>
#include<string.h>
 
#define max 1000
 
int main(){
  int len;
  char str[max];
  
  scanf("%d", &len);
  scanf("%d", &str);
  
  if(len % 2 == 1){
    printf("No\n");
    return 0;
  }else{
    int i,j;
    char tmp[max];
    char tmp2[max];
    
    for(i = 0; i < len/2; i++){
      tmp[i] = str[i];
    }
    for(j = len/2; j < len+1; j++){
      tmp2[j-len/2] = str[j];
    }
    
    if(strcmp(str, tmp)==0){
      printf("Yes\n");
      return 0;
    }
  }
}
提出情報

Compiler output:
main.c:39:5: error: redefinition of 'main'
   39 | int main(){
      |     ^~~~
main.c:6:5: note: previous definition of 'main' with type 'int()'
    6 | int main(){
      |     ^~~~
main.c:67:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   67 | 提出情報
      | ^~~~~~~~
Language: C

#include<stdio.h>
#include<string.h>
 
#define max 1000
 
int main(){
  int len;
  char str[max];
  
  scanf("%d", &len);
  scanf("%d", &str);
  
  if(len % 2 == 1){
    printf("No\n");
    return 0;
  }else{
    int i,j;
    char tmp[max];
    char tmp2[max];
    
    for(i = 0; i < len/2; i++){
      tmp[i] = str[i];
    }
    for(j = len/2; j < len+1; j++){
      tmp2[j-len/2] = str[j];
    }
    
    if(strcmp(str, tmp)==0){
      printf("Yes\n");
      return 0;
    }
  }
}
#include<stdio.h>
#include<string.h>
 
#define max 1000
 
int main(){
  int len;
  char str[max];
  
  scanf("%d", &len);
  scanf("%d", str);
  
  if(len % 2 == 1){
    printf("No\n");
    return 0;
  }else{
    int i,j;
    char tmp[max];
    char tmp2[max];
    
    for(i = 0; i < len/2; i++){
      tmp[i] = str[i];
    }
    for(j = len/2; j < len+1; j++){
      tmp2[j-len/2] = str[j];
    }
    
    if(strcmp(str, tmp)==0){
      printf("Yes\n");
      return 0;
    }
  }
}
提出情報

Compiler output:
main.c:39:5: error: redefinition of 'main'
   39 | int main(){
      |     ^~~~
main.c:6:5: note: previous definition of 'main' with type 'int()'
    6 | int main(){
      |     ^~~~
main.c:67:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   67 | 提出情報
      | ^~~~~~~~
Language: C

#include<stdio.h>
#include<string.h>
 
#define max 1000
 
int main(){
  int len;
  char str[max];
  
  scanf("%d", &len);
  scanf("%s", &str);
  
  if(len % 2 == 1){
    printf("No\n");
    return 0;
  }else{
    int i,j;
    char tmp[max];
    char tmp2[max];
    
    for(i = 0; i < len/2; i++){
      tmp[i] = str[i];
    }
    for(j = len/2; j < len+1; j++){
      tmp2[j-len/2] = str[j];
    }
    
    if(strcmp(str, tmp)==0){
      printf("Yes\n");
      return 0;
    }
  }
}
#include<stdio.h>
#include<string.h>
 
#define max 1000
 
int main(){
  int len;
  char str[max];
  
  scanf("%d", &len);
  scanf("%d", &str);
  
  if(len % 2 == 1){
    printf("No\n");
    return 0;
  }else{
    int i,j;
    char tmp[max];
    char tmp2[max];
    
    for(i = 0; i < len/2; i++){
      tmp[i] = str[i];
    }
    for(j = len/2; j < len+1; j++){
      tmp2[j-len/2] = str[j];
    }
    
    if(strcmp(str, tmp)==0){
      printf("Yes\n");
      return 0;
    }
  }
}
提出情報

Compiler output:
main.c:39:5: error: redefinition of 'main'
   39 | int main(){
      |     ^~~~
main.c:6:5: note: previous definition of 'main' with type 'int()'
    6 | int main(){
      |     ^~~~
main.c:67:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   67 | 提出情報
      | ^~~~~~~~
Language: C

#include<stdid.h>
#include<string.h>

#define max 1000
 
int main(){
  int len;
  char str[max];
  
  scanf("%d", &len);
  scanf("%d", &str);
  
  if(len % 2 == 1){
    printf("No\n");
    return 0;
  }else{
    int i,j;
    char tmp[max];
    char tmp2[max];
    
    for(i = 0; i < len/2; i++){
      tmp[i] = str[i];
    }
    for(j = len/2; j < len+1; j++){
      tmp2[j-len/2] = str[j];
    }
    
    if(strcmp(str, tmp)==0){
      printf("Yes\n");
      return 0;
    }
  }
}

Compiler output:
main.c:1:9: fatal error: stdid.h: No such file or directory
    1 | #include<stdid.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: redeclaration of 'int n'
    7 |   int n = s.length();
      |       ^
a.cc:5:7: note: 'int n' previously declared here
    5 |   int n; cin>>n;
      |       ^