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

#include <iostream?
using namespace std;

int main(){
  int n;
  int S[100], T[100];
  cin >> n;
  cin >> S;
  cin >> T;
  
  for (int i = 0; i < n; i++){
    cout << S[i] << T[i];
  }
  cout << "\n";
  
}

Compiler output:
a.cc:1:20: error: missing terminating > character
    1 | #include <iostream?
      |                    ^
a.cc:1:10: fatal error: iostream?: No such file or directory
    1 | #include <iostream?
      |          ^
compilation terminated.
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){

    Scanner sc=new Scanner(System.in);
    int A=sc.nextInt();
    int B=sc.nextInt();

    for(int i=0;i<100;i++){
for(int j=0;j<100;j++){
  if(A*i==B*j){
System.out.println(A*i);
    break;
  }
}

  }
}

                  


Compiler output:
Main.java:19: error: reached end of file while parsing
}
 ^
1 error
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<string> A(N);
  vector<string> B(N);
  
  for (int i = 0; i < N; i++){
    cin >> A.at(i);
  }
  for (int i = 0; i < N; i++){
    cin >> B.at(i);
  }
  vector<string> vector = {};
  for ( int i = 0;i<N;i++){
    vec.push_back(A.at(i));
    vec.push_back(B.at(i));
  }
  for ( int i = 0;i<N;i++){
    cout << vec.at(i);
  }
  cout << endl;
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'vec' was not declared in this scope
   18 |     vec.push_back(A.at(i));
      |     ^~~
a.cc:22:13: error: 'vec' was not declared in this scope
   22 |     cout << vec.at(i);
      |             ^~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<string> A(N);
  vector<string> B(N);
  
  for (int i = 0; i < N; i++){
    cin >> A.at(i);
  }
  for (int i = 0; i < N; i++){
    cin >> B.at(i);
  }
  vector<string> vector = {A.at(0)};
  for ( int i = 0;i<N;i++){
    vec.push_back(B.at(i));
    vec.push_back(A.at(i+1));
  }
  for ( int i = 0;i<N;i++){
    cout << vec.at(i);
  }
  cout << endl;
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'vec' was not declared in this scope
   18 |     vec.push_back(B.at(i));
      |     ^~~
a.cc:22:13: error: 'vec' was not declared in this scope
   22 |     cout << vec.at(i);
      |             ^~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<string> A(N);
  vector<string> B(N);
  
  for (int i = 0; i < N; i++){
    cin >> A.at(i);
  }
  for (int i = 0; i < N; i++){
    cin >> B.at(i);
  }
  vector<string> vector = {A.(0)};
  for ( int i = 0;i<N;i++){
    vec.push_back(B.at(i));
    vec.push_back(A.at(i+1));
  }
  for ( int i = 0;i<N;i++){
    cout << vec.at(i);
  }
  cout << endl;
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:16:30: error: expected unqualified-id before '(' token
   16 |   vector<string> vector = {A.(0)};
      |                              ^
a.cc:16:33: error: could not convert '{<expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<std::__cxx11::basic_string<char> >'
   16 |   vector<string> vector = {A.(0)};
      |                                 ^
      |                                 |
      |                                 <brace-enclosed initializer list>
a.cc:18:5: error: 'vec' was not declared in this scope
   18 |     vec.push_back(B.at(i));
      |     ^~~
a.cc:22:13: error: 'vec' was not declared in this scope
   22 |     cout << vec.at(i);
      |             ^~~
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){

    Scanner sc=new Scanner(System.in);
    int count;
    String S=sc.nextLine();
    String T=sc.nextLine();
    String U="";
    int N=S.length();
    
for(int i=0;i<N;i++){
  U=U+S.char(N)+T.char(N);
}
  System.out.println("U");
  }
}

                  


Compiler output:
Main.java:14: error: <identifier> expected
  U=U+S.char(N)+T.char(N);
        ^
Main.java:14: error: ';' expected
  U=U+S.char(N)+T.char(N);
            ^
Main.java:14: error: not a statement
  U=U+S.char(N)+T.char(N);
             ^
Main.java:14: error: ';' expected
  U=U+S.char(N)+T.char(N);
              ^
Main.java:14: error: <identifier> expected
  U=U+S.char(N)+T.char(N);
                  ^
Main.java:14: error: not a statement
  U=U+S.char(N)+T.char(N);
                 ^
Main.java:14: error: ';' expected
  U=U+S.char(N)+T.char(N);
                      ^
Main.java:14: error: not a statement
  U=U+S.char(N)+T.char(N);
                       ^
Main.java:14: error: ';' expected
  U=U+S.char(N)+T.char(N);
                        ^
9 errors
Language: C++

#include<iostream>

using namespace std;

int main(){
  int N,i;
  double S,T,A;
 
 cin >>N>>S>>T; //外部入力読み込み方法

// vector<double> S2(N)
  double *S2 = new double [N];
  double *T2 = new double [N];//動的配列割り当て
  
 for(i =1; i<=N; i++){
     S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
     T2[i]=T % 10; // Tを10で割った時のあまり  
    
     S=floor(S/10)  
     T=floor(T/10)
}

  for (i=1; i<=N; i++){

   A=A+T[i]*pow(10,2*(i-1));
   A=A+S[i]*pow(10,2*i-1);
 }

delete[] S2;
delete[] T2;

cout <<A ;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:17:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   17 |      T2[i]=T % 10; // Tを10で割った時のあまり
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:19:8: error: 'floor' was not declared in this scope
   19 |      S=floor(S/10)
      |        ^~~~~
a.cc:25:9: error: invalid types 'double[int]' for array subscript
   25 |    A=A+T[i]*pow(10,2*(i-1));
      |         ^
a.cc:25:13: error: 'pow' was not declared in this scope
   25 |    A=A+T[i]*pow(10,2*(i-1));
      |             ^~~
a.cc:26:9: error: invalid types 'double[int]' for array subscript
   26 |    A=A+S[i]*pow(10,2*i-1);
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
  int n;
  string s,t;
  rep(i,n){
    cout<<a.at(i)<<t.at(i);
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'a' was not declared in this scope
    8 |     cout<<a.at(i)<<t.at(i);
      |           ^
Language: C

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

int main()
{
	char a,b,c;
	int i,j,N;
	scanf("%d",N);
	scanf("%s",a);
	scanf("%s",b);
	for(i=0;;++i)
	{
	j=c[2*i]=a[i];
	c[2*i+1]=b[i];
	if(j == '\0')
	break;
	}
	printf("%s\n%s\n%s\n",a,b,c);
	return 0;
	}


Compiler output:
main.c: In function 'main':
main.c:13:12: error: subscripted value is neither array nor pointer nor vector
   13 |         j=c[2*i]=a[i];
      |            ^
main.c:13:19: error: subscripted value is neither array nor pointer nor vector
   13 |         j=c[2*i]=a[i];
      |                   ^
main.c:14:10: error: subscripted value is neither array nor pointer nor vector
   14 |         c[2*i+1]=b[i];
      |          ^
main.c:14:19: error: subscripted value is neither array nor pointer nor vector
   14 |         c[2*i+1]=b[i];
      |                   ^
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){

    Scanner sc=new Scanner(System.in);
    int count;
    String S=sc.nextLine();
    String T=sc.nextLine();
    
    String U;
    
      U=S.charAt(0)+T.charAt(0)+S.charAt(1)+T.charAt(1);
    
  System.out.println("U");
  }
}

                  


Compiler output:
Main.java:13: error: incompatible types: int cannot be converted to String
      U=S.charAt(0)+T.charAt(0)+S.charAt(1)+T.charAt(1);
                                           ^
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){

    Scanner sc=new Scanner(System.in);
    int count;
    String S=sc.nextLine();
    String T=sc.nextLine();
    S.length()=T.length();
    
    String U="";
    
      U=U+S.charAt(0)+T.charAt(0);
    
  System.out.println("U");
  }
}

                  


Compiler output:
Main.java:10: error: unexpected type
    S.length()=T.length();
            ^
  required: variable
  found:    value
1 error
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
	int n=0;
	std::string word_1[100];
	std::string word_2[100];
	std::string ans[200];
	for (int i = 0; i < n; i++)
	{
		cin>>word_1[i];
	}
	for (int i = 0; i < n; i++)
	{
		cin>>word_2[i];
	}
	for (int i = 0; i < n; i++)
	{
		ans+=word_1[i];
		ans+=word_2[i];
	}
	for (int i = 0; i < n*2; i++)
	{
		cout<<ans[i];
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:20: error: no match for 'operator+=' (operand types are 'std::string [200]' {aka 'std::__cxx11::basic_string<char> [200]'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   20 |                 ans+=word_1[i];
      |                 ~~~^~~~~~~~~~~
a.cc:21:20: error: no match for 'operator+=' (operand types are 'std::string [200]' {aka 'std::__cxx11::basic_string<char> [200]'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   21 |                 ans+=word_2[i];
      |                 ~~~^~~~~~~~~~~
Language: C++

#include<iostream>

using namespace std;

int main(){
  int N,i;
  double S,T,A;
  cin >>N>>S>>T; //外部入力読み込み方法

// vector<double> S2(N)
  double *S2 = new double[N];
  double *T2 = new double[N];//動的配列割り当て
  
 for(i =1; i<=N; i++){
     S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
     T2[i]=T % 10; // Tを10で割った時のあまり  
    
     S=floor(S/10)  
     T=floor(T/10)
}

  for (i=1; i<=N; i++){

   A=A+T[i]*pow(10,2*(i-1));
   A=A+S[i]*pow(10,2*i-1);
 }

delete[] S2;
delete[] T2;

cout <<A ;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   15 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:16:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |      T2[i]=T % 10; // Tを10で割った時のあまり
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:18:8: error: 'floor' was not declared in this scope
   18 |      S=floor(S/10)
      |        ^~~~~
a.cc:24:9: error: invalid types 'double[int]' for array subscript
   24 |    A=A+T[i]*pow(10,2*(i-1));
      |         ^
a.cc:24:13: error: 'pow' was not declared in this scope
   24 |    A=A+T[i]*pow(10,2*(i-1));
      |             ^~~
a.cc:25:9: error: invalid types 'double[int]' for array subscript
   25 |    A=A+S[i]*pow(10,2*i-1);
      |         ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
char s[101],t[101];
  cin>>s>>t;
  int n=strlen(s);
  char a[201];
  for(int i=0;i<2*n;i+2)
  {
a[i]=s[i];
    a[i+1]=t[i];
  }
  cout<<a<<endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'strlen' was not declared in this scope
    8 |   int n=strlen(s);
      |         ^~~~~~
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 | using namespace std;
Language: C++

#include<iostream>

using namespace std;

int main(){
  int N,i;
  double S,T,A;
  cin >>N>>S>>T; //外部入力読み込み方法

// vector<double> S2(N)
  double *S2 = new int[N];
  double *T2 = new int[N];//動的配列割り当て
  
 for(i =1; i<=N; i++){
     S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
     T2[i]=T % 10; // Tを10で割った時のあまり  
    
     S=floor(S/10)  
     T=floor(T/10)
}

  for (i=1; i<=N; i++){

   A=A+T[i]*pow(10,2*(i-1));
   A=A+S[i]*pow(10,2*i-1);
 }

delete[] S2;
delete[] T2;

cout <<A ;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: cannot convert 'int*' to 'double*' in initialization
   11 |   double *S2 = new int[N];
      |                         ^
      |                         |
      |                         int*
a.cc:12:25: error: cannot convert 'int*' to 'double*' in initialization
   12 |   double *T2 = new int[N];//動的配列割り当て
      |                         ^
      |                         |
      |                         int*
a.cc:15:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   15 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:16:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |      T2[i]=T % 10; // Tを10で割った時のあまり
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:18:8: error: 'floor' was not declared in this scope
   18 |      S=floor(S/10)
      |        ^~~~~
a.cc:24:9: error: invalid types 'double[int]' for array subscript
   24 |    A=A+T[i]*pow(10,2*(i-1));
      |         ^
a.cc:24:13: error: 'pow' was not declared in this scope
   24 |    A=A+T[i]*pow(10,2*(i-1));
      |             ^~~
a.cc:25:9: error: invalid types 'double[int]' for array subscript
   25 |    A=A+S[i]*pow(10,2*i-1);
      |         ^
Language: C++

#include <bits/stdc++.h>
#include <string>    

using namespace std;
 
int main() {
 
  int a;
  string b,c;
  std::string str(a*2,a);

  cin >> a;
  cin >> b >> c;
  
  for (int i = 0; i =< a; i++) {
	  str.at(i*2) = b.at(i);
	  str.at(i*2+1) = c.at(i);
}
  cout << str << endl;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: expected primary-expression before '<' token
   15 |   for (int i = 0; i =< a; i++) {
      |                      ^
Language: C++

#include<iostream>

using namespace std;

int main(){
  int i;
  double N,S,T,A;
  cin >>N>>S>>T; //外部入力読み込み方法

// vector<double> S2(N)
  double *S2 = new double[N];
  double *T2 = new double[N];//動的配列割り当て
  
 for(i =1; i<=N; i++){
     S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
     T2[i]=T % 10; // Tを10で割った時のあまり  
    
     S=floor(S/10)  
     T=floor(T/10)
}

  for (i=1; i<=N; i++){

   A=A+T[i]*pow(10,2*(i-1));
   A=A+S[i]*pow(10,2*i-1);
 }

delete[] S2;
delete[] T2;

cout <<A ;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: expression in new-declarator must have integral or enumeration type
   11 |   double *S2 = new double[N];
      |                           ^
a.cc:12:27: error: expression in new-declarator must have integral or enumeration type
   12 |   double *T2 = new double[N];//動的配列割り当て
      |                           ^
a.cc:15:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   15 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:16:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |      T2[i]=T % 10; // Tを10で割った時のあまり
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:18:8: error: 'floor' was not declared in this scope
   18 |      S=floor(S/10)
      |        ^~~~~
a.cc:24:9: error: invalid types 'double[int]' for array subscript
   24 |    A=A+T[i]*pow(10,2*(i-1));
      |         ^
a.cc:24:13: error: 'pow' was not declared in this scope
   24 |    A=A+T[i]*pow(10,2*(i-1));
      |             ^~~
a.cc:25:9: error: invalid types 'double[int]' for array subscript
   25 |    A=A+S[i]*pow(10,2*i-1);
      |         ^
Language: C++

#include<iostream>

using namespace std;

int main(){
  int i;
  double N,S,T,A;
  cin >>N>>S>>T; //外部入力読み込み方法

// vector<double> S2(N)
  double *S2 = new double(N);
  double *T2 = new double(N);//動的配列割り当て
  
 for(i =1; i<=N; i++){
     S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
     T2[i]=T % 10; // Tを10で割った時のあまり  
    
     S=floor(S/10)  
     T=floor(T/10)
}

  for (i=1; i<=N; i++){

   A=A+T[i]*pow(10,2*(i-1));
   A=A+S[i]*pow(10,2*i-1);
 }

delete[] S2;
delete[] T2;

cout <<A ;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   15 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:16:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |      T2[i]=T % 10; // Tを10で割った時のあまり
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:18:8: error: 'floor' was not declared in this scope
   18 |      S=floor(S/10)
      |        ^~~~~
a.cc:24:9: error: invalid types 'double[int]' for array subscript
   24 |    A=A+T[i]*pow(10,2*(i-1));
      |         ^
a.cc:24:13: error: 'pow' was not declared in this scope
   24 |    A=A+T[i]*pow(10,2*(i-1));
      |             ^~~
a.cc:25:9: error: invalid types 'double[int]' for array subscript
   25 |    A=A+S[i]*pow(10,2*i-1);
      |         ^
Language: C++

#include<iostream>

using namespace std;

int main(){
  int i;
  double N,S,T,A;
  cin >>N>>S>>T; //外部入力読み込み方法

// vector<double> S2(N)
  double *S2 = new double(N);
  double *T2 = new double(N);//動的配列割り当て
  
 for(i =1; i<=N; i++){
     S2(i)=S % 10; //Sを10で割った時のあまり=1桁目の数
     T2(i)=T % 10; // Tを10で割った時のあまり  
    
     S=floor(S/10)  
     T=floor(T/10)
}

  for (i=1; i<=N; i++){

   A=A+T(i)*pow(10,2*(i-1));
   A=A+S(i)*pow(10,2*i-1);
 }

delete() S2;
delete() T2;

cout <<A ;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: 'S2' cannot be used as a function
   15 |      S2(i)=S % 10; //Sを10で割った時のあまり=1桁目の数
      |      ~~^~~
a.cc:15:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   15 |      S2(i)=S % 10; //Sを10で割った時のあまり=1桁目の数
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:16:8: error: 'T2' cannot be used as a function
   16 |      T2(i)=T % 10; // Tを10で割った時のあまり
      |      ~~^~~
a.cc:16:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |      T2(i)=T % 10; // Tを10で割った時のあまり
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:18:8: error: 'floor' was not declared in this scope
   18 |      S=floor(S/10)
      |        ^~~~~
a.cc:24:9: error: 'T' cannot be used as a function
   24 |    A=A+T(i)*pow(10,2*(i-1));
      |        ~^~~
a.cc:24:13: error: 'pow' was not declared in this scope
   24 |    A=A+T(i)*pow(10,2*(i-1));
      |             ^~~
a.cc:25:9: error: 'S' cannot be used as a function
   25 |    A=A+S(i)*pow(10,2*i-1);
      |        ~^~~
a.cc:28:8: error: expected primary-expression before ')' token
   28 | delete() S2;
      |        ^
a.cc:29:8: error: expected primary-expression before ')' token
   29 | delete() T2;
      |        ^
Language: Java

public class HelloWorld{

     public static void main(String []args){
        Scanner s = new Scanner(System. in);
        int N = s.nextInt();
        String S = s.nextLine();
        String Str = S.split(" ");
        if(N==((Str.length)/2)){
        System.out.println(Str);
     }
}
}

Compiler output:
Main.java:1: error: class HelloWorld is public, should be declared in a file named HelloWorld.java
public class HelloWorld{
       ^
Main.java:4: error: cannot find symbol
        Scanner s = new Scanner(System. in);
        ^
  symbol:   class Scanner
  location: class HelloWorld
Main.java:4: error: cannot find symbol
        Scanner s = new Scanner(System. in);
                        ^
  symbol:   class Scanner
  location: class HelloWorld
Main.java:7: error: incompatible types: String[] cannot be converted to String
        String Str = S.split(" ");
                            ^
Main.java:8: error: cannot find symbol
        if(N==((Str.length)/2)){
                   ^
  symbol:   variable length
  location: variable Str of type String
5 errors
Language: C++

#include<iostream>

using namespace std;

int main(){
  int i;
  double N,S,T,A;
  cin>>N>>S>>T; //外部入力読み込み方法

  double *S2 = new double[ N ];
  double *T2 = new double[ N ];//動的配列割り当て
  
 for(i =1; i<=N; i++){
     S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
     T2[i]=T % 10; // Tを10で割った時のあまり  
    
     S=floor(S/10)  
     T=floor(T/10)
}

  for (i=1; i<=N; i++){

   A=A+T[i]*pow(10,2*(i-1));
   A=A+S[i]*pow(10,2*i-1);
 }

delete[] S2;
delete[] T2;

cout <<A ;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: expression in new-declarator must have integral or enumeration type
   10 |   double *S2 = new double[ N ];
      |                            ^
a.cc:11:28: error: expression in new-declarator must have integral or enumeration type
   11 |   double *T2 = new double[ N ];//動的配列割り当て
      |                            ^
a.cc:14:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   14 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:15:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   15 |      T2[i]=T % 10; // Tを10で割った時のあまり
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:17:8: error: 'floor' was not declared in this scope
   17 |      S=floor(S/10)
      |        ^~~~~
a.cc:23:9: error: invalid types 'double[int]' for array subscript
   23 |    A=A+T[i]*pow(10,2*(i-1));
      |         ^
a.cc:23:13: error: 'pow' was not declared in this scope
   23 |    A=A+T[i]*pow(10,2*(i-1));
      |             ^~~
a.cc:24:9: error: invalid types 'double[int]' for array subscript
   24 |    A=A+S[i]*pow(10,2*i-1);
      |         ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
  int a,i,q;
  char *S;
  char *T;
  char *U;
  cin >> a;
  q=a+a;

  char s[a],t[a],u[a];

  cin >>s;
  cin >>t;
  if(s.length!=t.length)
  {
    exit(0);
  }
  S=s;
  T=t;
  U=u;

  for (i=1;i<=a;i++)
  {
    *U=*S;
    U++;
    *U=*T;
    if(i!=a)
    {	U++;
    	S++;
    	T++;
    }
  }
 cout << u;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: request for member 'length' in 's', which is of non-class type 'char [a]'
   18 |   if(s.length!=t.length)
      |        ^~~~~~
a.cc:18:18: error: request for member 'length' in 't', which is of non-class type 'char [a]'
   18 |   if(s.length!=t.length)
      |                  ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
  int a,i,q;
  char *S;
  char *T;
  char *U;
  cin >> a;
  q=a+a;

  char s[a],t[a],u[a];

  cin >>s;
  cin >>t;
  if(length(s)!=length(t))
  {
    exit(0);
  }
  S=s;
  T=t;
  U=u;

  for (i=1;i<=a;i++)
  {
    *U=*S;
    U++;
    *U=*T;
    if(i!=a)
    {	U++;
    	S++;
    	T++;
    }
  }
 cout << u;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:6: error: 'length' was not declared in this scope
   18 |   if(length(s)!=length(t))
      |      ^~~~~~
Language: C++

#include <stdio.h>
#include <iostream>
#include <string>
#include <stdlib.h>
#include<time.h>
#include<cmath>
using namespace std;


int main(void)
{
	int N,i;
	char sum[200] = {};
	char S[100];
	char T[100];
	scanf_s("%d",&N);
	scanf_s("%s", &S);
	scanf_s("%s",&T);
	for (i = 0; i < N; i++)
	{
		sum[i] = sum[i]+S[i] + T[i];
	}
	printf("%s",sum);


	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   16 |         scanf_s("%d",&N);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<iostream>

using namespace std;

int main(){
  int i;
  double N,S,T,A;
  double *S2[];
  double *T2[];
  cin>>N>>S>>T; //外部入力読み込み方法

  double *S2=new double[N];
  T2=new double[N];//動的配列割り当て
  
 for(i =1; i<=N; i++){
     S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
     T2[i]=T % 10; // Tを10で割った時のあまり  
  }

  for (i=1; i<=N; i++){

   A=A+T[i]*pow(10,2*(i-1));
   A=A+S[i]*pow(10,2*i-1);
 }

cout <<A ;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: storage size of 'S2' isn't known
    8 |   double *S2[];
      |           ^~
a.cc:9:11: error: storage size of 'T2' isn't known
    9 |   double *T2[];
      |           ^~
a.cc:12:25: error: expression in new-declarator must have integral or enumeration type
   12 |   double *S2=new double[N];
      |                         ^
a.cc:13:17: error: expression in new-declarator must have integral or enumeration type
   13 |   T2=new double[N];//動的配列割り当て
      |                 ^
a.cc:16:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:17:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   17 |      T2[i]=T % 10; // Tを10で割った時のあまり
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:22:9: error: invalid types 'double[int]' for array subscript
   22 |    A=A+T[i]*pow(10,2*(i-1));
      |         ^
a.cc:22:13: error: 'pow' was not declared in this scope
   22 |    A=A+T[i]*pow(10,2*(i-1));
      |             ^~~
a.cc:23:9: error: invalid types 'double[int]' for array subscript
   23 |    A=A+S[i]*pow(10,2*i-1);
      |         ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
  int a,q,i;
  char *S;
  char *T;
  char *U;
  cin >> a;
  q=a+a:

  char s[a],t[a],u[q];

  cin >>s;
  cin >>t;
  S=s;
  T=t;
  U=u;

  for (i=1;i<=a;i++)
  {
    *U=*S;
    U++;
    *U=*T;
    if(i!=a)
    {	U++;
    	S++;
    	T++;
    }
  }
 cout << u;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: expected ';' before ':' token
   12 |   q=a+a:
      |        ^
      |        ;
a.cc:16:9: error: 's' was not declared in this scope
   16 |   cin >>s;
      |         ^
a.cc:17:9: error: 't' was not declared in this scope
   17 |   cin >>t;
      |         ^
a.cc:20:5: error: 'u' was not declared in this scope
   20 |   U=u;
      |     ^
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){

    Scanner sc=new Scanner(System.in);
    String A=sc.next();
    String B=sc.next();
    String C="";
for(int i=0;i<A.length;i++){
  String C=C+A.charAt(i)+B.charAt(i);
}
  System.out.println(C);
  }
}

                  


Compiler output:
Main.java:10: error: cannot find symbol
for(int i=0;i<A.length;i++){
               ^
  symbol:   variable length
  location: variable A of type String
Main.java:11: error: variable C is already defined in method main(String[])
  String C=C+A.charAt(i)+B.charAt(i);
         ^
2 errors
Language: C++

#include<iostream>
#include<cstdio>
#include<string.h>
using namespace std;
int main()
{
    int n,i,j=0,k;
    char a[100],b[100];
    while(scanf("%d",&n)!=EOF)
    {
        int y=2*n;
        char c[y];
        getchar();
        gets(a);
        gets(b);
        for(i=0,j=0,k=0;k<(y-1);i++,j++,k=k+2)
        {
            c[k]=a[i];
            c[k+1]=b[j];
        }
        c[y]='\0';
        cout<<c<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   14 |         gets(a);
      |         ^~~~
      |         getw
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){

    Scanner sc=new Scanner(System.in);
    String A=sc.next();
    String B=sc.next();
    String C=""
for(int i=0;i<A.length;i++){
  String C=C+A.charAt(i)+B.charAt(i);
}
  System.out.println(C);
  }
}

                  


Compiler output:
Main.java:9: error: ';' expected
    String C=""
               ^
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
  int a,i;
  char *S;
  char *T;
  char *U;
  cin >> a;

  char s[a],t[a],u[2a];

  cin >>s;
  cin >>t;
  S=s;
  T=t;
  U=u;

  for (i=1;i<=a;i++)
  {
    *U=*S;
    U++;
    *U=*T;
    if(i!=a)
    {	U++;
    	S++;
    	T++;
    }
  }
 cout << u;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: unable to find numeric literal operator 'operator""a'
   13 |   char s[a],t[a],u[2a];
      |                    ^~
a.cc:19:5: error: 'u' was not declared in this scope
   19 |   U=u;
      |     ^
Language: C++

#include<iostream>

using namespace std;

int main(){
  int i;
  double N,S,T,A;
  double S2[];
  double T2[];
  cin>>N>>S>>T; //外部入力読み込み方法

  S2=new double[N];
  T2=new double[N];//動的配列割り当て
  
 for(i =1; i<=N; i++){
     S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
     T2[i]=T % 10; // Tを10で割った時のあまり  
  }

  for (i=1; i<=N; i++){

   A=A+T[i]*pow(10,2*(i-1));
   A=A+S[i]*pow(10,2*i-1);
 }

cout <<A ;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: storage size of 'S2' isn't known
    8 |   double S2[];
      |          ^~
a.cc:9:10: error: storage size of 'T2' isn't known
    9 |   double T2[];
      |          ^~
a.cc:12:17: error: expression in new-declarator must have integral or enumeration type
   12 |   S2=new double[N];
      |                 ^
a.cc:13:17: error: expression in new-declarator must have integral or enumeration type
   13 |   T2=new double[N];//動的配列割り当て
      |                 ^
a.cc:16:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:17:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   17 |      T2[i]=T % 10; // Tを10で割った時のあまり
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:22:9: error: invalid types 'double[int]' for array subscript
   22 |    A=A+T[i]*pow(10,2*(i-1));
      |         ^
a.cc:22:13: error: 'pow' was not declared in this scope
   22 |    A=A+T[i]*pow(10,2*(i-1));
      |             ^~~
a.cc:23:9: error: invalid types 'double[int]' for array subscript
   23 |    A=A+S[i]*pow(10,2*i-1);
      |         ^
Language: C++

#include <iostream>
#include <string>
 
int main()
{
  int n;
  std::string s1, s2;
  std::cin >> n;
  std::cin >> s1 >> s2;
  
  for (i = 0; i < n; i++)
  {
    std::cout << s1[i] << s2[i];
  }
  return 0;
}


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

#include<iostream>

using namespace std;

int main(){
  int i;
  double N,S,T,A;
  double *S2;
  double *T2;
  cin>>N>>S>>T; //外部入力読み込み方法

  S2=new double[N];
  T2=new double[N];//動的配列割り当て
  
 for(i =1; i<=N; i++){
     S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
     T2[i]=T % 10; // Tを10で割った時のあまり  
  }

  for (i=1; i<=N; i++){

   A=A+T[i]*pow(10,2*(i-1));
   A=A+S[i]*pow(10,2*i-1);
 }

cout <<A ;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expression in new-declarator must have integral or enumeration type
   12 |   S2=new double[N];
      |                 ^
a.cc:13:17: error: expression in new-declarator must have integral or enumeration type
   13 |   T2=new double[N];//動的配列割り当て
      |                 ^
a.cc:16:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:17:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   17 |      T2[i]=T % 10; // Tを10で割った時のあまり
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:22:9: error: invalid types 'double[int]' for array subscript
   22 |    A=A+T[i]*pow(10,2*(i-1));
      |         ^
a.cc:22:13: error: 'pow' was not declared in this scope
   22 |    A=A+T[i]*pow(10,2*(i-1));
      |             ^~~
a.cc:23:9: error: invalid types 'double[int]' for array subscript
   23 |    A=A+S[i]*pow(10,2*i-1);
      |         ^
Language: C++

#include <iostream>
 
int main()
{
  int n;
  std::string s1, s2;
  std::cin >> n;
  std::cin >> s1 >> s2;
  
  for (i = 0; i < n; i++)
  {
    std::cout << s1[i] << s2[i];
  }
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{ int a;int l=0;int k=0;
 cin>>a;
 string h;
 string g;
 getline(cin,h);
   getline(cin,g);
 while(l<h.lenght() && k<g.length())
 {cout<<h[0]<<g[0];
  k++;
  l++;
 }



return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'lenght'; did you mean 'length'?
   10 |  while(l<h.lenght() && k<g.length())
      |            ^~~~~~
      |            length
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){

    Scanner sc=new Scanner(System.in);
    String A=sc.next();
    String B=sc.next();
   String C;
for(int i=0;i<A.length;i++){
  C=A.charAt(i)+B.charAt(i);
}
  System.out.println(C);
  }
}

                  


Compiler output:
Main.java:10: error: cannot find symbol
for(int i=0;i<A.length;i++){
               ^
  symbol:   variable length
  location: variable A of type String
Main.java:11: error: incompatible types: int cannot be converted to String
  C=A.charAt(i)+B.charAt(i);
               ^
2 errors
Language: C++

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

int main()
{
    string s,t;
    int n;

    cin >> s >> t >> n;

    for(int i = 0; i < n; i++){
        string ans = s[i] + t[i];
    }
        cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:27: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   12 |         string ans = s[i] + t[i];
a.cc:14:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |         cout << ans << endl;
      |                 ^~~
      |                 abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int a;
  string b,c;
  string str;
  str.size() = a;

  cin >> a;
  cin >> b;
  cin >> c;
  
  for (int i = 0; i < a; i++) {
	  cout << b.at(i) << c.at(i) << endl;
}
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: lvalue required as left operand of assignment
    9 |   str.size() = a;
      |   ~~~~~~~~^~
Language: C++

#include<iostream>

using namespace std;

int main(){
  int i;
  double N,S,T,A;
  double *S2;
  double *T2;
     cin>>N>>S>>T;              //外部入力読み込み方法
   
  S2 =new double[N];
  T2 =new double[N];      //動的配列割り当て


  for(i =1; i<=N;i++){
    
     S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
　　 T2[i]=T % 10; // Tを10で割った時のあまり
　  
  }

  for (i=1; i<=2*N; i++){

    A=A+T[i]*pow(10,2*(i-1));
    A=A+S[i]*pow(10,2*i-1);
  }  

cout <<A ;

 return 0;
}


Compiler output:
a.cc:19:1: error: extended character 　 is not valid in an identifier
   19 | 　　 T2[i]=T % 10; // Tを10で割った時のあまり
      | ^
a.cc:19:1: error: extended character 　 is not valid in an identifier
a.cc:20:1: error: extended character 　 is not valid in an identifier
   20 | 　
      | ^
a.cc: In function 'int main()':
a.cc:12:18: error: expression in new-declarator must have integral or enumeration type
   12 |   S2 =new double[N];
      |                  ^
a.cc:13:18: error: expression in new-declarator must have integral or enumeration type
   13 |   T2 =new double[N];      //動的配列割り当て
      |                  ^
a.cc:18:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   18 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:19:1: error: '\U00003000\U00003000' was not declared in this scope
   19 | 　　 T2[i]=T % 10; // Tを10で割った時のあまり
      | ^~~~
a.cc:20:1: error: '\U00003000' was not declared in this scope
   20 | 　
      | ^~
a.cc:25:10: error: invalid types 'double[int]' for array subscript
   25 |     A=A+T[i]*pow(10,2*(i-1));
      |          ^
a.cc:25:14: error: 'pow' was not declared in this scope
   25 |     A=A+T[i]*pow(10,2*(i-1));
      |              ^~~
a.cc:26:10: error: invalid types 'double[int]' for array subscript
   26 |     A=A+S[i]*pow(10,2*i-1);
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int n;
char s[1000],t[1000];
int main()
{
    cin >> n; scanf("%s",s+1);scanf("%s",t+1);
    for(reg int i=1;i<=n;++i)cout<<s[i]<<t[i];
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'reg' was not declared in this scope
    8 |     for(reg int i=1;i<=n;++i)cout<<s[i]<<t[i];
      |         ^~~
a.cc:8:21: error: 'i' was not declared in this scope
    8 |     for(reg int i=1;i<=n;++i)cout<<s[i]<<t[i];
      |                     ^
Language: C

#include<stdio.h>
int main(void) {
	int n,i;
	char s[100], t[100]; 
	scnaf("%d", &n);
	scanf("%c", &s);
	scanf("%c", &t);
	for (i = 0; i < n ; i++) {
		printf("%c%c", s[i * 2], t[i * 2 + 1]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scnaf("%d", &n);
      |         ^~~~~
      |         scanf
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<string> vec(0);
  vector<string> A(N);
  vector<string> B(N);
  
  for (int i = 0; i < N; i++){
    cin >> A.(i);
  }
  for (int i = 0; i < N; i++){
    cin >> B.(i);
  }
  for ( int i = 0;i<N;i++){
    vec.push_back(A.(i));
    vec.push_back(B.(i));
  }
  for ( int i = 0;i<N;i++){
    cout << vec.(i);
  }
}
  
  
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected unqualified-id before '(' token
   12 |     cin >> A.(i);
      |              ^
a.cc:15:14: error: expected unqualified-id before '(' token
   15 |     cin >> B.(i);
      |              ^
a.cc:18:21: error: expected unqualified-id before '(' token
   18 |     vec.push_back(A.(i));
      |                     ^
a.cc:19:21: error: expected unqualified-id before '(' token
   19 |     vec.push_back(B.(i));
      |                     ^
a.cc:22:17: error: expected unqualified-id before '(' token
   22 |     cout << vec.(i);
      |                 ^
a.cc: At global scope:
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: Java

import java.util.*;

public class Main {
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int A =sc.nextInt();
		String a1;
		String a2;

		a1=sc.next();

		a2=sc.next();
		String ans ="";
		for(int i=0;i<A;i++) {
			char aa =a1.charAt(i);
		    char bb =a2.charAt(i);
	        ans += String.valueOf(aa) + String.valueOf(bb);
			
		}
		
		System.out.println(ans);
	    
	    
	     

Compiler output:
Main.java:22: error: reached end of file while parsing
		System.out.println(ans);
		                        ^
1 error
Language: C++

#include <iostream>

int main()
{
  int n;
  string s1, s2;
  std::cin >> n;
  std::cin >> s1 >> s2;
  
  for (i = 0; i < n; i++)
  {
    std::cout << s1[i] << s2[i];
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s1, s2;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:8:15: error: 's1' was not declared in this scope
    8 |   std::cin >> s1 >> s2;
      |               ^~
a.cc:8:21: error: 's2' was not declared in this scope
    8 |   std::cin >> s1 >> s2;
      |                     ^~
a.cc:10:8: error: 'i' was not declared in this scope
   10 |   for (i = 0; i < n; i++)
      |        ^
Language: C++

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

int main()
{
	string s1,s2;
	
	int i,a=0,n;
	cin>>n;
	char s3[2*n];
	cin>>s1;
	cin>>s2;
	
	for(i=0;i<n;i++)
    {
      
	cout<<s3;
	
	
}
	


	
	
	
   



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

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

int main() {
  int N;
  string S,T;
  cin>>N;
  cin>>S>>T;
  vector<string> answer(2*N);
  for(int i=0;i<N;i=i+2{
    answer.at(i)=S.at(i);
    answer.at(i+1)=T.at(i+1);
  }
  
  for(int a=0;a<N*2;a=a+2){
    cout<<answer.at(i);
  }
  cout<<endl;
    
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected ')' before '{' token
   10 |   for(int i=0;i<N;i=i+2{
      |      ~                 ^
      |                        )
a.cc:16:21: error: 'i' was not declared in this scope
   16 |     cout<<answer.at(i);
      |                     ^
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){

    Scanner sc=new Scanner(System.in);
    StringBuilder A=sc.nextLIne();
    StringBuilder B=sc.nextLine();
    StringBuilder str;
for(int i=0;i<A.length();i++){
  str.append("A.charAt(i)");
  str.append("B.charAt(i)");
}
  System.out.println("str");
  }
}

                  


Compiler output:
Main.java:7: error: cannot find symbol
    StringBuilder A=sc.nextLIne();
                      ^
  symbol:   method nextLIne()
  location: variable sc of type Scanner
Main.java:8: error: incompatible types: String cannot be converted to StringBuilder
    StringBuilder B=sc.nextLine();
                               ^
2 errors
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<string> vec(0);
  vector<string> A(N);
  vector<string> B(N);
  
  for (int i = 0; i < N; i++){
    cin >> A.(i);
  }
  for (int i = 0; i < N; i++){
    cin >> B.(i);
  }
  for ( int i = 0;i<N;i++){
    vec.push_back(A.(i));
    vec.push_back(B.(i));
  }
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected unqualified-id before '(' token
   12 |     cin >> A.(i);
      |              ^
a.cc:15:14: error: expected unqualified-id before '(' token
   15 |     cin >> B.(i);
      |              ^
a.cc:18:21: error: expected unqualified-id before '(' token
   18 |     vec.push_back(A.(i));
      |                     ^
a.cc:19:21: error: expected unqualified-id before '(' token
   19 |     vec.push_back(B.(i));
      |                     ^
Language: C++

#include <iosteram>

int main()
{
  int n;
  string s1, s2;
  std::cin >> n;
  std::cin >> s1 >> s2;
  
  for (i = 0; i < n; i++)
  {
    std::cout << s1[i] << s2[i];
  }
  return 0;
}

Compiler output:
a.cc:1:10: fatal error: iosteram: No such file or directory
    1 | #include <iosteram>
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){

    Scanner sc=new Scanner(System.in);
    StringBuilder A=sc.next();
    StringBuilder B=sc.next();
    StringBuilder str;
for(int i=0;i<A.length();i++){
  str.append("A.charAt(i)");
  str.append("B.charAt(i)");
}
  System.out.println("str");
  }
}

                  


Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to StringBuilder
    StringBuilder A=sc.next();
                           ^
Main.java:8: error: incompatible types: String cannot be converted to StringBuilder
    StringBuilder B=sc.next();
                           ^
2 errors
Language: C++

#include<stdio.h>
#include<conio.h>
int main()
{
	int n,i;
	char a[201];
	scanf("%d",&n);
	for(i=0;i<=2*n;i++)
		a[i]=getche();
	for(i=0;i<=n;i++)
	{	
		printf("%c",a[i]);
		printf("%c",a[n+i+1]);
	}
	return 0;
}

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

#include<iostream>

using namespace std;

int main(){
  int N,i;
  double S,T,A;
  
     cin>>N>>S>>T;              //外部入力読み込み方法
   
  double S2 =new int[N];
  double T2 =new int[N];      //動的配列割り当て


  for(i =1; i<=N;i++){
    
     S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
　　 T2[i]=T % 10; // Tを10で割った時のあまり
　  
  }

  for (i=1; i<=2*N; i++){

    A=A+T[i]*pow(10,2*(i-1));
    A=A+S[i]*pow(10,2*i-1);
  }  

cout <<A ;

 return 0;
}


Compiler output:
a.cc:18:1: error: extended character 　 is not valid in an identifier
   18 | 　　 T2[i]=T % 10; // Tを10で割った時のあまり
      | ^
a.cc:18:1: error: extended character 　 is not valid in an identifier
a.cc:19:1: error: extended character 　 is not valid in an identifier
   19 | 　
      | ^
a.cc: In function 'int main()':
a.cc:11:23: error: cannot convert 'int*' to 'double' in initialization
   11 |   double S2 =new int[N];
      |                       ^
      |                       |
      |                       int*
a.cc:12:23: error: cannot convert 'int*' to 'double' in initialization
   12 |   double T2 =new int[N];      //動的配列割り当て
      |                       ^
      |                       |
      |                       int*
a.cc:17:8: error: invalid types 'double[int]' for array subscript
   17 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |        ^
a.cc:17:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   17 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:18:1: error: '\U00003000\U00003000' was not declared in this scope
   18 | 　　 T2[i]=T % 10; // Tを10で割った時のあまり
      | ^~~~
a.cc:19:1: error: '\U00003000' was not declared in this scope
   19 | 　
      | ^~
a.cc:24:10: error: invalid types 'double[int]' for array subscript
   24 |     A=A+T[i]*pow(10,2*(i-1));
      |          ^
a.cc:24:14: error: 'pow' was not declared in this scope
   24 |     A=A+T[i]*pow(10,2*(i-1));
      |              ^~~
a.cc:25:10: error: invalid types 'double[int]' for array subscript
   25 |     A=A+S[i]*pow(10,2*i-1);
      |          ^
Language: C++

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

int main()
{
  int a,i;
  char *S;
  char *T;
  char *U;
  cin >> a;
  
  char s[a],t[a],u[a];
  
  cin >>s;
  cin >>t; 
  S=&s;
  T=&t;
  U=&u;
  
  for (i=0;i<a;i++)
  {
    *U++=*S++;
    *U++=*T++;
  }
 cout << *U;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: cannot convert 'char (*)[a]' to 'char*' in assignment
   16 |   S=&s;
      |     ^~
      |     |
      |     char (*)[a]
a.cc:17:5: error: cannot convert 'char (*)[a]' to 'char*' in assignment
   17 |   T=&t;
      |     ^~
      |     |
      |     char (*)[a]
a.cc:18:5: error: cannot convert 'char (*)[a]' to 'char*' in assignment
   18 |   U=&u;
      |     ^~
      |     |
      |     char (*)[a]
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){

    Scanner sc=new Scanner(System.in);
    String A=sc.next();
    String B=sc.next();
    String str;
for(int i=0;i<A.length();i++){
  str.append("A.charAt(i)");
  str.append("B.charAt(i)");
}
  System.out.println("str");
  }
}

                  


Compiler output:
Main.java:11: error: cannot find symbol
  str.append("A.charAt(i)");
     ^
  symbol:   method append(String)
  location: variable str of type String
Main.java:12: error: cannot find symbol
  str.append("B.charAt(i)");
     ^
  symbol:   method append(String)
  location: variable str of type String
2 errors