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

#include <bits/stdc++.h>
#include <cstdio>
#include <vector>
#include <iostream>
#include <utility>

#define fir first
#define sec second
#define get(n) scanf("%d",&n);
#define gets(s) string s;cin >> (s);
#define All(s) (c).begin(), (c).end()
#define chmin(x, y) x = min(x, y);
#define chmax(x, y) x = max(x, y);
#define rep(i, j) for (int (i)=0;(i)<(j);(i)++)
#define dump(x)  cout << #x << " = " << (x) << endl;
#define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
using namespace std;
typedef long long int ll;

int N;
vector<pair<int , int> dist(N);

int kaizyou(int n) {//nの階乗をを求める
    if(n != 1) {
        int a = n*kaizyou(n-1);
        return a;
    }
    return 1;
}
void dp(int n , int j) {
    int a = 0;
    for (int i = 0;i<N;i++){
        if(i==j) continue;
        long long double  b;
        b = sqrt(pow(dist[i].first- dist[j].first, 2) + pow(dist[i].second- dist[j].second, 2));
        a += dp(n-1, i) + b;
    }
    retunr a;
}
void input() {
    cin >> N ;
    for(int i=0;i<N;i++){
        int a, b;
        cin >> a >> b;
        dist[i].first = a;//x
        dist[i].second = b;//y
    }
}

void solve(){
    input();
    int n = kaizyou(N);
    ll ans = 0;
    ll sum = 0;
    for (int i=1;i<=N;i++) {//選ぶ町
        sum += dp(N, i);
    }
    ans = sum / n;
    cout << ans << endl;
    return ;
}

int main (){
    solve();
    return 0;
}

Compiler output:
a.cc:21:30: error: template argument 1 is invalid
   21 | vector<pair<int , int> dist(N);
      |                              ^
a.cc:21:30: error: template argument 2 is invalid
a.cc: In function 'void dp(int, int)':
a.cc:34:14: error: 'long long' specified with 'double'
   34 |         long long double  b;
      |              ^~~~
a.cc:35:22: error: 'dist' was not declared in this scope
   35 |         b = sqrt(pow(dist[i].first- dist[j].first, 2) + pow(dist[i].second- dist[j].second, 2));
      |                      ^~~~
a.cc:36:25: error: invalid operands of types 'void' and 'double' to binary 'operator+'
   36 |         a += dp(n-1, i) + b;
      |              ~~~~~~~~~~ ^ ~
      |                |          |
      |                void       double
a.cc:38:5: error: 'retunr' was not declared in this scope
   38 |     retunr a;
      |     ^~~~~~
a.cc: In function 'void input()':
a.cc:45:9: error: 'dist' was not declared in this scope
   45 |         dist[i].first = a;//x
      |         ^~~~
a.cc: In function 'void solve()':
a.cc:56:18: error: void value not ignored as it ought to be
   56 |         sum += dp(N, i);
      |                ~~^~~~~~
Language: C++

#include <bits/stdc++.h>
#include <cstdio>
#include <vector>
#include <iostream>
#include <utility>

#define fir first
#define sec second
#define get(n) scanf("%d",&n);
#define gets(s) string s;cin >> (s);
#define All(s) (c).begin(), (c).end()
#define chmin(x, y) x = min(x, y);
#define chmax(x, y) x = max(x, y);
#define rep(i, j) for (int (i)=0;(i)<(j);(i)++)
#define dump(x)  cout << #x << " = " << (x) << endl;
#define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
using namespace std;
typedef long long int ll;

int N;
string S;

void input() {
    cin >> N ;
    cin >> S
}

void solve(){
    input();
    if (1 == N%2) {
        cout << "No" << endl;
        return ;
    }
    int a = N / 2;
    int j=0;
    for (int i=0;i<a;i++){
        if(S.[i] == S.[i+a]){
            j++;
        }
    }
    if(j==a)cout << "Yes" << endl;
    else cout << "No" << endl;
    return ;
}

int main (){
    solve();
    return 0;
}

Compiler output:
a.cc: In function 'void input()':
a.cc:25:13: error: expected ';' before '}' token
   25 |     cin >> S
      |             ^
      |             ;
   26 | }
      | ~            
a.cc: In function 'void solve()':
a.cc:37:14: error: expected unqualified-id before '[' token
   37 |         if(S.[i] == S.[i+a]){
      |              ^
a.cc:37:23: error: expected unqualified-id before '[' token
   37 |         if(S.[i] == S.[i+a]){
      |                       ^
Language: C++

int main(void){ 

  int i,f=1,n;
  string s, x, y; 
  
  cin >> n >> s;
  
  if (n%2 == 1){
    cout << "NO" << endl;
    return 0;
  }else{
    for(i=0; i < n/2; i++){
      if (x[i] != y[n/2 + i]){
        f = 0;
      }
  }
     if(f == 0){
    cout << "NO" << endl;
     }else{
    cout <<"YES"<< endl; 
     }
}


  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s, x, y;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n >> s;
      |   ^~~
a.cc:6:15: error: 's' was not declared in this scope
    6 |   cin >> n >> s;
      |               ^
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "NO" << endl;
      |     ^~~~
a.cc:9:21: error: 'endl' was not declared in this scope
    9 |     cout << "NO" << endl;
      |                     ^~~~
a.cc:13:11: error: 'x' was not declared in this scope
   13 |       if (x[i] != y[n/2 + i]){
      |           ^
a.cc:13:19: error: 'y' was not declared in this scope
   13 |       if (x[i] != y[n/2 + i]){
      |                   ^
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << "NO" << endl;
      |     ^~~~
a.cc:18:21: error: 'endl' was not declared in this scope
   18 |     cout << "NO" << endl;
      |                     ^~~~
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout <<"YES"<< endl;
      |     ^~~~
a.cc:20:20: error: 'endl' was not declared in this scope
   20 |     cout <<"YES"<< endl;
      |                    ^~~~
Language: C++

#include <iostream>
#include<bits/stdc++.h>
#define ll long long
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    ll n;
    cin>>n;
    string str;
    cin>>str;
    ll c=0;
    ll len = str.size();
    //cout<<len;
    if(n>1){
    for(ll i=0,j=n/2;i<n/2,j<n;i++,j++){
        if(str[i]==str[j]){
            c++;
        }
    }
    else
    {
	cout<<"No\n";
    }
      
    //cout<<c;
    if(c==len/2){
        cout<<"Yes";
    }
    else 
    cout<<"No";
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:5: error: expected '}' before 'else'
   23 |     else
      |     ^~~~
a.cc:17:12: note: to match this '{'
   17 |     if(n>1){
      |            ^
a.cc: At global scope:
a.cc:35:5: error: expected unqualified-id before 'return'
   35 |     return 0;
      |     ^~~~~~
a.cc:36:1: error: expected declaration before '}' token
   36 | }
      | ^
Language: C++

#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector> 
#include<limits>
#include<numeric>
#include<type_traits>
#include<math.h>
#include<fstream>
#include<set>
#include<queue>
using namespace std;
typedef long long ll;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define repi(i,a,b) for(int i = (int)(a); i < (int)(b); i++)
#define out(str) cout << str << endl
#define ALL(a) (a).begin(),(a).end()
#define INF (1<<29)

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

string S;

int main(){
    cin>>S;
    if(S.length()%2==1){
        out("No");
    }
    else{
        int N = S.length()/2;
        rep(i,N){
            if(S[i]!=S[i+N]){
                out("No");
                return 0:
            }
        }
        out("Yes");
    }
    
    
}


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

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

#define what_is(x) cerr << #x << " is " << x << endl;
#define what_is_v(x) cerr << #x << " is "; for(auto&e: (x)) cerr << e << ' '; cerr << '\n'; //vector, set
#define what_is_a(x, n) cerr << #x << " is "; for(int i=0;i<n;i++) cerr << x[i] << ' '; cerr <<  '\n'; //n first element of array
#define IOS ios::sync_with_stdio(false); cin.tie(0);
#define st first
#define nd second
#define cerr_pair(x) '{' << x.st << ", " << x.nd << '}'
#define pwhat_is(x) cerr << #x << " is " << cerr_pair(x) << endl;
#define pwhat_is_v(x) cerr << #x << " is "; for(auto&e: (x)) cerr << cerr_pair(e) << ' '; cerr << '\n'; //vector, set
#define pwhat_is_a(x, n) cerr << #x << " is "; for(int i=0;i<n;i++) cerr << cerr_pair(x[i]) << ' '; cerr <<  '\n'; //n first element of array
#define endl '\n'
// #define int long long

typedef pair<int,int> pii;
const int N = 1e5+5;
const int INF = 1e9;
const int MOD = 1e9+7;

int n;
string s;
int32_t main()
{
	IOS
	//freopen("input.txt", "r", stdin);
	cin >> n >> s;
	if (n&1) return 0*puts("No");
	int mid = n/2;
	for(int i=0; i<mid; i++){
		if (a[i] != a[i+mid]) return 0*puts("No");
	}
	puts("Yes");
	return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:32:21: error: 'a' was not declared in this scope
   32 |                 if (a[i] != a[i+mid]) return 0*puts("No");
      |                     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:13: error: 'a' undeclared (first use in this function)
   13 |   for(i=0,j=a/2;i<a/2,j<n;i++,j++){
      |             ^
main.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:9: error: subscripted value is neither array nor pointer nor vector
   14 |     if(s[i]!=s[j]){
      |         ^
main.c:14:15: error: subscripted value is neither array nor pointer nor vector
   14 |     if(s[i]!=s[j]){
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:19:5: error: expected declaration or statement at end of input
   19 |     return 0;}
      |     ^~~~~~
Language: Java

import java.util.Scanner;

public class ProblemB {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		
		int num = scan.nextInt();
		String str = scan.next();
		scan.close();
		
		int num_half = num / 2;
		
		if(num % 2 != 0) {
			System.out.println("NO");
		}
		
		if((num % 2 == 0) && (str.substring(0,num_half) == str.substring(num_half,num)))
		System.out.println("YES");
	}
}


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

import java.util.Scanner;

/**
 * <p>ClassName:  </p>
 * <p>Description: </p>
 * <p>Company: </p>
 *
 * @author zhangyong
 * @version 1.0.0
 * @date 2019/10/22 7:40
 */
public class Solution {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        String str = in.next();
        if (n % 2 != 0) {
            System.out.println("No");
            return;
        }
        if (str.substring(0, str.length() / 2 - 1).equals(str.substring(str.length() / 2, str.length() - 1))) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}


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

import java.util.Scanner;
  public class Main {
      public static void main(String[] args){
          Scanner sc = new Scanner(System.in);
         int a = Integer.parseInt(sc.next());
        String s = sc.nextLine();

        String ans = "Yes";
        if (s.length() % 2==1) {ans=“No”; }
         else{
          for (int i = 0; i < a; i++) {
             if (s.charAt(i)==s.charAt(i+a/2)) {ans=“No”;} 
         } 
         }

         
         System.out.println(ans);
     }
 }


Compiler output:
Main.java:9: error: illegal character: '\u201c'
        if (s.length() % 2==1) {ans=?No?; }
                                    ^
Main.java:9: error: illegal character: '\u201d'
        if (s.length() % 2==1) {ans=?No?; }
                                       ^
Main.java:9: error: not a statement
        if (s.length() % 2==1) {ans=?No?; }
                                     ^
Main.java:12: error: illegal character: '\u201c'
             if (s.charAt(i)==s.charAt(i+a/2)) {ans=?No?;} 
                                                    ^
Main.java:12: error: illegal character: '\u201d'
             if (s.charAt(i)==s.charAt(i+a/2)) {ans=?No?;} 
                                                       ^
Main.java:12: error: not a statement
             if (s.charAt(i)==s.charAt(i+a/2)) {ans=?No?;} 
                                                     ^
6 errors
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:15:23: error: exponent has no digits
   15 |     if(count==0&&n%2==0e)
      |                       ^~
Language: C

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <conio.h>
int main()
{
    char s[105],s1[105],s2[105];
    int n,i,j,count=0;
    scanf("%d", &n);
    scanf("%s", s);
   for(i=0;i<n/2;i++)
   {
       if(s[i]!=s[n/2+i])
       {
           count=1;
       }
   }
    if(count==0)
    {
        printf("Yes\n");
    }
    else
    {
        printf("No\n");
    }
    return 0;
}


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

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

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



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

#include<bits/stdc++.h>
using namespace std;
char str[110];
int main(){
  int r;
  cin >> r >> str;
  if(r%2 == 1){
    printf("No\n");
    return 0;
  }
  for(int i = 0; i < r/2; i++){
    if(a[i]!=a[i+r/2]){
      printf("No\n");
   	  return 0;
    }
  }
  printf("Yes\n");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: 'a' was not declared in this scope
   12 |     if(a[i]!=a[i+r/2]){
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int n; cin>>n;
	string s; cin>>s;
  	if(n%2==1) cout<<"No"<<endl;
  	else{
    	vector<char> v1,v2;
      	for(int i=0j=n/2;i<n/2;i++,j++){
        	v1.push_back(s[i]);
          	v2.push_back(s[j]);
        }
      	if(v1!=v2) cout<<"Yes"<<endl;
      	else cout<<"No"<<endl;
    }

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: lvalue required as left operand of assignment
    9 |         for(int i=0j=n/2;i<n/2;i++,j++){
      |                   ^~
a.cc:9:36: error: 'j' was not declared in this scope
    9 |         for(int i=0j=n/2;i<n/2;i++,j++){
      |                                    ^
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cahr' was not declared in this scope; did you mean 'char'?
    6 |     cahr s[N];
      |     ^~~~
      |     char
a.cc:7:44: error: 's' was not declared in this scope
    7 |     for(int i = 0; i < n; i++) scanf("%c", s[i]);
      |                                            ^
a.cc:9:9: error: lvalue required as left operand of assignment
    9 |     if(n%2 = 0){
      |        ~^~
a.cc:11:16: error: 's' was not declared in this scope
   11 |             if(s[i] == s[n/2+i]) counter++;
      |                ^
Language: C++

#include <iostream>
#include<string>

using namespace std;

int main()
{
    int n;
    string s;
    cin>>n;
    cin>>s;
    bool fl=false;
    if (n==1) {
        cout<<"No";
        return;
    }
    for (int i=1; i<=n/2; i++)
    {
      if (s[i-1]!=s[n/2+i-1]) fl=true;
    }
    if (!fl) cout<<"Yes"; else cout<<"No";
}


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

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  
  string str;
  
  if(n%2!=0)
    cout<<"No"<<endl;
  else
  {
    int k=n/2;
    if(str.substr(0,k)==str.substr(k,k))
      cout<<"Yes"<<endl;
    cout<<"No"<<endl;
  }
  return 0;
}
#include <iostream>
using namespace std;
int main()

Compiler output:
a.cc:23:11: error: expected initializer at end of input
   23 | int main()
      |           ^
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;
cin>>s;
 
int a = n/2;
for(int i = 0; i<a; i++){
        if(s[i]!=s[i+a]){
            cout<<"No"<<endl;
            return 0;
        }
    }
}
 
cout<<"Yes"<<endl;
return 0;
}

Compiler output:
a.cc:22:1: error: 'cout' does not name a type
   22 | cout<<"Yes"<<endl;
      | ^~~~
a.cc:23:1: error: expected unqualified-id before 'return'
   23 | return 0;
      | ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  
  int flag=0;
for(int c=0;c<a/2;c++){
    if(b.at(c)==b.at(c+a/2)){
       
         
      flag=1;
    
}
       else{
       

      }
       }
  for(int c=0;c<a/2;c++){
if(b.at(c)!=b.at(c+N/2)){
cout<<"Yes"<<endl;
}
 } 
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:20: error: 'N' was not declared in this scope
   26 | if(b.at(c)!=b.at(c+N/2)){
      |                    ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  
  int flag=0;
for(int c=0;c<a/2;c++){
    if(b.at(c)==b.at(c+a/2)){
       
         
      flag=1;
    
}
       else{
       

      }
       }
  for(int c=0;c<N/2;c++){
if(b.at(c)!=b.at(c+N/2)){
cout<<"Yes"<<endl;
}
 } 
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: error: 'N' was not declared in this scope
   25 |   for(int c=0;c<N/2;c++){
      |                 ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  
  int flag=0;
for(int c=0;c<a/2;c++){
    if(b.at(c)==b.at(c+a/2)){
       
         
      flag=1;
    
}
       else{
       

      }
       }
  for(int c=0;c<N/2;c++){
if(S.at(c)!=S.at(c+N/2)){
cout<<"Yes"<<endl;
}
 } 
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: error: 'N' was not declared in this scope
   25 |   for(int c=0;c<N/2;c++){
      |                 ^
a.cc:26:4: error: 'S' was not declared in this scope
   26 | if(S.at(c)!=S.at(c+N/2)){
      |    ^
a.cc: At global scope:
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

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

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

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

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
  int flag=0;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      flag=1;
      }        

       else{
       

      }
       }
if (flag==1){
  cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  
  }
}


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

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
  int flag=0;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      flag=1;
      }        

       else{
       

      }
       
if (flag==1){
  cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  
  }
}
  }

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

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
  int flag=0;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      flag=1;
      }        

       else{
       

      }
       
if (flag==1){
  cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:13:21: note: to match this '{'
   13 | for(int c=0;c<d;c++){
      |                     ^
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
  int flag=0;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      flag=1
      }        

       else{
       

      }
       
if (flag==1){
  cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected ';' before '}' token
   17 |       flag=1
      |             ^
      |             ;
   18 |       }
      |       ~      
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:13:21: note: to match this '{'
   13 | for(int c=0;c<d;c++){
      |                     ^
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
  int flag=0;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      flag=1
 }        

       else{
       

      }
       
if (flag==1){
  cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected ';' before '}' token
   17 |       flag=1
      |             ^
      |             ;
   18 |  }
      |  ~           
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:13:21: note: to match this '{'
   13 | for(int c=0;c<d;c++){
      |                     ^
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
  int flag=0;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      flag=1
 }        
}
       else{
       

      }
       
if (flag==1){
  cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  
}
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected ';' before '}' token
   17 |       flag=1
      |             ^
      |             ;
   18 |  }
      |  ~           
a.cc:32:4: error: expected '}' at end of input
   32 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
  int flag=0
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      flag=1
 }        
}
       else{
       

      }
       
if (flag==1){
  cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  
}
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: expected ',' or ';' before 'for'
   13 | for(int c=0;c<d;c++){
      | ^~~
a.cc:13:13: error: 'c' was not declared in this scope
   13 | for(int c=0;c<d;c++){
      |             ^
a.cc:32:4: error: expected '}' at end of input
   32 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
  int flag=0
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      flag=1
 }        
}
       else{
       cout<<"No"<<endl;
          exit;
      }
       
if (flag==1){
  cout<<"Yes"<<endl;
  else{
    cout<<"No"<<endl;
  
}
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: expected ',' or ';' before 'for'
   13 | for(int c=0;c<d;c++){
      | ^~~
a.cc:13:13: error: 'c' was not declared in this scope
   13 | for(int c=0;c<d;c++){
      |             ^
a.cc:31:4: error: expected '}' at end of input
   31 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       
         
      
}
       else{
       cout<<"No"<<endl;
          exit;
      }
       

  }

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

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       
         
      
}
       else{
       cout<<"No"<<endl;
          exit;
      }
       
}
if (c==d-1){
  cout<<"Yes"<<endl;
}
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:24:5: error: 'c' was not declared in this scope
   24 | if (c==d-1){
      |     ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       
         
      
}
       else{
       cout<<"No"<<endl;
          exit;
      }
       
}
if (c==d-1)
  cout<<"Yes"<<endl;

  }

Compiler output:
a.cc: In function 'int main()':
a.cc:24:5: error: 'c' was not declared in this scope
   24 | if (c==d-1)
      |     ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       
         
      
}
       else{
       cout<<"No"<<endl;
          exit;
      }
       

  cout<<"Yes"<<endl;
 }        
}
  }

Compiler output:
a.cc:27:3: error: expected declaration before '}' token
   27 |   }
      |   ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      cout<<"Yes"<<endl;
 }        
}
       else{
       cout<<"No"<<endl;
          exit;
      }
       

  


Compiler output:
a.cc: In function 'int main()':
a.cc:22:8: error: expected '}' at end of input
   22 |       }
      |        ^
a.cc:12:21: note: to match this '{'
   12 | for(int c=0;c<d;c++){
      |                     ^
a.cc:22:8: error: expected '}' at end of input
   22 |       }
      |        ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      cout<<"Yes"<<endl;
 }        
}
       else{
       cout<<"No"<<endl;
          exit;
      }
       
}
  


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

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      cout<<"Yes"<<endl;
 }        
}
       else{
       cout<<"No"<<endl;
          exit;
      }
       

      }
  


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

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      cout<<"Yes"<<endl;
         
}
       else{
       cout<<"No"<<endl;
          exit;
      }
       

      }
  


Compiler output:
a.cc: In function 'int main()':
a.cc:25:8: error: expected '}' at end of input
   25 |       }
      |        ^
a.cc:12:21: note: to match this '{'
   12 | for(int c=0;c<d;c++){
      |                     ^
a.cc:25:8: error: expected '}' at end of input
   25 |       }
      |        ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      cout<<"Yes"<<endl;
         
}
       else{
       cout<<"No"<<endl;
          exit
      }
       

      }
  


Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: expected ';' before '}' token
   21 |           exit
      |               ^
      |               ;
   22 |       }
      |       ~        
a.cc:25:8: error: expected '}' at end of input
   25 |       }
      |        ^
a.cc:12:21: note: to match this '{'
   12 | for(int c=0;c<d;c++){
      |                     ^
a.cc:25:8: error: expected '}' at end of input
   25 |       }
      |        ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       if (c==d-1){
         
      cout<<"Yes"<<endl;
         
}
       else{
       cout<<"No"<<endl;
          exit
      
       

      }
  


Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: expected ';' before '}' token
   21 |           exit
      |               ^
      |               ;
......
   25 |       }
      |       ~        
a.cc:25:8: error: expected '}' at end of input
   25 |       }
      |        ^
a.cc:13:27: note: to match this '{'
   13 |     if(b.at(c)==b.at(c+d)){
      |                           ^
a.cc:25:8: error: expected '}' at end of input
   25 |       }
      |        ^
a.cc:12:21: note: to match this '{'
   12 | for(int c=0;c<d;c++){
      |                     ^
a.cc:25:8: error: expected '}' at end of input
   25 |       }
      |        ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       
      }
       else{
       cout<<"No"<<endl;
          exit
      
       

      }
  cout<<"Yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: expected ';' before '}' token
   18 |           exit
      |               ^
      |               ;
......
   22 |       }
      |       ~        
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       
      }
       else{
       cout<<"No"<<endl;
          exit
      
       }

      }
  cout<<"Yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: expected ';' before '}' token
   18 |           exit
      |               ^
      |               ;
   19 | 
   20 |        }
      |        ~
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2;
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       
      }
       else{
       cout<<"No"<<endl;
         then exit
      
       }

      }
  cout<<"Yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: 'then' was not declared in this scope
   18 |          then exit
      |          ^~~~
Language: Java

import java.util.Scanner;class Main;
public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
  int n = scan.nextInt();String s = scan.next();
  if(n%2==0&&s.substring(0,n/2).equals(s.substring(n)){
    System.out.println("Yes");}else{System.out.println("No");}

Compiler output:
Main.java:1: error: '{' expected
import java.util.Scanner;class Main;
                                   ^
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: ')' expected
  if(n%2==0&&s.substring(0,n/2).equals(s.substring(n)){
                                                      ^
Main.java:6: error: reached end of file while parsing
    System.out.println("Yes");}else{System.out.println("No");}
                                                              ^
4 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N; 
  string S;
  cin >> N >> S;
  if(N % 2 == 0 && S[0:N/2] == S[N/2:N]) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected ']' before ':' token
    7 |   if(N % 2 == 0 && S[0:N/2] == S[N/2:N]) cout << "Yes" << endl;
      |                       ^
      |                       ]
a.cc:7:23: error: expected ')' before ':' token
    7 |   if(N % 2 == 0 && S[0:N/2] == S[N/2:N]) cout << "Yes" << endl;
      |     ~                 ^
      |                       )
a.cc:7:27: error: expected primary-expression before ']' token
    7 |   if(N % 2 == 0 && S[0:N/2] == S[N/2:N]) cout << "Yes" << endl;
      |                           ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2
for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       cout<<"Yes"<<endl;
      }
       else{
       cout<<"No"<<endl;
      
       }

      }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: expected ',' or ';' before 'for'
   12 | for(int c=0;c<d;c++){
      | ^~~
a.cc:12:13: error: 'c' was not declared in this scope
   12 | for(int c=0;c<d;c++){
      |             ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2
  for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       cout<<"Yes"<<endl;
      }
       else{
       cout<<"No"<<endl;
      
       }

      }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected ',' or ';' before 'for'
   12 |   for(int c=0;c<d;c++){
      |   ^~~
a.cc:12:15: error: 'c' was not declared in this scope
   12 |   for(int c=0;c<d;c++){
      |               ^
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2
  int c=0;
  for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       cout<<"Yes"<<endl;
      }
       else{
       cout<<"No"<<endl;
      
       }

      }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected ',' or ';' before 'int'
   12 |   int c=0;
      |   ^~~
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2
  int c;
  for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       cout<<"Yes"<<endl;
      }
       else{
       cout<<"No"<<endl;
      
       }

      }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected ',' or ';' before 'int'
   12 |   int c;
      |   ^~~
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2
    int c;
  for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d)){
       cout<<"Yes"<<endl;
      }
       else{
       cout<<"No"<<endl;
         then stop
       }

      }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected ',' or ';' before 'int'
   12 |     int c;
      |     ^~~
a.cc:19:10: error: 'then' was not declared in this scope
   19 |          then stop
      |          ^~~~
Language: C++

int main(void){
  string S;
  int N;cin>>N>>S;
  if(N%2!=0){
    cout<<"No"<<endl;
    return 0;
  }

  REP(i,N/2){
    if(S[i]!=S[i+N/2]){
      cout<<"No"<<endl;
      return 0;
    }
  }

  cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string S;
      |   ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |   int N;cin>>N>>S;
      |         ^~~
a.cc:3:17: error: 'S' was not declared in this scope
    3 |   int N;cin>>N>>S;
      |                 ^
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:5:17: error: 'endl' was not declared in this scope
    5 |     cout<<"No"<<endl;
      |                 ^~~~
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   REP(i,N/2){
      |       ^
a.cc:9:3: error: 'REP' was not declared in this scope
    9 |   REP(i,N/2){
      |   ^~~
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout<<"Yes"<<endl;
      |   ^~~~
a.cc:16:16: error: 'endl' was not declared in this scope
   16 |   cout<<"Yes"<<endl;
      |                ^~~~
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d=a/2
    int c;
  for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d){
       cout<<"Yes"<<endl;
      }
       else{
       cout<<"No"<<endl;
         then stop
       }

       }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected ',' or ';' before 'int'
   12 |     int c;
      |     ^~~
a.cc:14:26: error: expected ')' before '{' token
   14 |     if(b.at(c)==b.at(c+d){
      |       ~                  ^
      |                          )
a.cc:22:8: error: expected primary-expression before '}' token
   22 |        }
      |        ^
Language: C

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

}

Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: Java

import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    boolean ans;
    int n = Integer.parseInt(stdIn.next());
    String s = stdIn.next();

    if (n % 2 != 0) {
      ans = false;
    } else {
      String t1 = s1.substring(0, (n - 4) / 2);
      String t2 = s2.substring(n / 2, n - 2);
      if (t1.equals(t2)) {
        ans = true;
      } else {
        ans = false;
      }
    }

    if (ans) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}


Compiler output:
Main.java:13: error: cannot find symbol
      String t1 = s1.substring(0, (n - 4) / 2);
                  ^
  symbol:   variable s1
  location: class Main
Main.java:14: error: cannot find symbol
      String t2 = s2.substring(n / 2, n - 2);
                  ^
  symbol:   variable s2
  location: class Main
2 errors
Language: C++

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

int main() {
  int a;
  string b;

  // 変数aで入力を受け取る
  cin >> a;
  cin>>b;
  int d==a/2
    int c;
  for(int c=0;c<d;c++){
    if(b.at(c)==b.at(c+d){
       cout<<"Yes"<<endl;
      }
       else{
       cout<<"No"<<endl;
         then stop
       }

  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected initializer before '==' token
   11 |   int d==a/2
      |        ^~
a.cc:13:17: error: 'd' was not declared in this scope
   13 |   for(int c=0;c<d;c++){
      |                 ^
a.cc:14:26: error: expected ')' before '{' token
   14 |     if(b.at(c)==b.at(c+d){
      |       ~                  ^
      |                          )
a.cc:23:1: error: expected primary-expression before '}' token
   23 | }
      | ^
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner scan =new java.util.Scanner(System.in);
		int n = scan.nextInt();
		String str = scan.next();
		if(n%2==0) {
			for(int i=0;i < n/2; i++) {
				if(str.charAt(i)!=str.charAt((n/2)+i)) {
					System.out.println("No");
					System.exit(0);
				}
			}
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner scan =new java.util.Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
1 error
Language: C++

#include<iostream>
#include<string>
#include<fstream>
using namespace std;
int main()
{
  string str;
  int n,a;
  cin>>n;
  sizeof(str)=n;
  cin>>str;
  a=str/2;
 	if(str=a+a)
      cout<<"Yes\n";
  else
     cout<<"No";
	
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: lvalue required as left operand of assignment
   10 |   sizeof(str)=n;
      |   ^~~~~~~~~~~
a.cc:12:8: error: no match for 'operator/' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   12 |   a=str/2;
      |     ~~~^~
      |     |   |
      |     |   int
      |     std::string {aka std::__cxx11::basic_string<char>}
a.cc:13:15: error: could not convert 'str.std::__cxx11::basic_string<char>::operator=(((int)((char)(a + a))))' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |         if(str=a+a)
      |            ~~~^~~~
      |               |
      |               std::__cxx11::basic_string<char>
Language: C++

#include<iostream>
#include<string>
#include<fstream>
using namespace std;
int main()
{
  string str,a;
  int n;
  cin>>n;
  sizeof(str)=n;
  gets(str);
  a=str/2;
 	if(str=a+a)
      cout<<"Yes\n";
  else
     cout<<"No";
	
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: lvalue required as left operand of assignment
   10 |   sizeof(str)=n;
      |   ^~~~~~~~~~~
a.cc:11:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
   11 |   gets(str);
      |   ^~~~
      |   getw
a.cc:12:8: error: no match for 'operator/' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   12 |   a=str/2;
      |     ~~~^~
      |     |   |
      |     |   int
      |     std::string {aka std::__cxx11::basic_string<char>}
a.cc:13:15: error: could not convert 'str.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>](a))' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |         if(str=a+a)
      |            ~~~^~~~
      |               |
      |               std::__cxx11::basic_string<char>
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
  string str,a;
  int n;
  cin>>n;
  strlen(str)=n;
  cin>>str;
  a=str/2;
 	if(str=a+a)
      cout<<"Yes\n";
  else
     cout<<"No";
	
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'strlen' was not declared in this scope
    9 |   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:11:8: error: no match for 'operator/' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   11 |   a=str/2;
      |     ~~~^~
      |     |   |
      |     |   int
      |     std::string {aka std::__cxx11::basic_string<char>}
a.cc:12:15: error: could not convert 'str.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>](a))' from 'std::__cxx11::basic_string<char>' to 'bool'
   12 |         if(str=a+a)
      |            ~~~^~~~
      |               |
      |               std::__cxx11::basic_string<char>
Language: C

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

int main(){
  int N,n=0,t;
  char S[99];

  scanf("%d\n", &N);
  scanf("%[^\n]", &S);
  print
  for( int i=0;S[i]!='\0';i++) {
    n=i+1;
  }
  t=n%2;
  if(N>1&&N==n&&t==0){
    for( int i=0;i<n/2;i++){
      if(S[i]!=S[i+n/2]){
        printf("No");
        return 0;
      }
      if(i+1==n/2){
        printf("Yes");
        return 0;
      }
      
    }
  }else{
    printf("No");
    return 0;
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: 'print' undeclared (first use in this function); did you mean 'printf'?
   10 |   print
      |   ^~~~~
      |   printf
main.c:10:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:8: error: expected ';' before 'for'
   10 |   print
      |        ^
      |        ;
   11 |   for( int i=0;S[i]!='\0';i++) {
      |   ~~~