criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.*;

public class BeginnerTest058_1 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        if ((b - a) == (c - b)){
            System.out.print("YES");
        }
        else System.out.print("NO");
    }
}

        }
        else System.out.print("NO");
    }

Compiler output:
Main.java:16: error: class, interface, enum, or record expected
        }
        ^
Main.java:18: error: class, interface, enum, or record expected
    }
    ^
2 errors
Language: Java

public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        if ((b - a) == (c - b)){
            System.out.print("YES");
        }
        else System.out.print("NO");
    }

Compiler output:
Main.java:1: 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)
1 error
Language: C++

#include <stdio.h>
void main(void)
{
char O[999],E[999];
int i;
scanf("%s%s", O,E);
for(i = 0 ; O[i] ; i++)
{
if(O[i]>10) putchar(O[i]);
if(E[i]>10) putchar(E[i]);
}
puts("");
return 0;}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main(void)
      | ^~~~
Language: C++

#include <stdio.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
puts(a+c==b+b?"YES","NO");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: expected ':' before ')' token
    6 | puts(a+c==b+b?"YES","NO");
      |                         ^
      |                         :
a.cc:6:25: error: expected primary-expression before ')' token
Language: C++

using System;
using System.Collections.Generic;
using System.Collections;


class p
{
    
    static void Main(string[] args)
    {
        string[] input = Console.ReadLine().Split();
        long a = long.Parse(input[0]), b = long.Parse(input[1]), c = long.Parse(input[2]);

        if (a + c == 2 * b) Console.WriteLine("YES");
        else Console.WriteLine("NO");
    }   
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Collections;
      |       ^~~~~~
a.cc:9:22: error: 'string' has not been declared
    9 |     static void Main(string[] args)
      |                      ^~~~~~
a.cc:9:31: error: expected ',' or '...' before 'args'
    9 |     static void Main(string[] args)
      |                               ^~~~
a.cc:17:2: error: expected ';' after class definition
   17 | }
      |  ^
      |  ;
a.cc: In static member function 'static void p::Main(int*)':
a.cc:11:9: error: 'string' was not declared in this scope
   11 |         string[] input = Console.ReadLine().Split();
      |         ^~~~~~
a.cc:11:16: error: expected primary-expression before ']' token
   11 |         string[] input = Console.ReadLine().Split();
      |                ^
a.cc:12:18: error: expected primary-expression before 'long'
   12 |         long a = long.Parse(input[0]), b = long.Parse(input[1]), c = long.Parse(input[2]);
      |                  ^~~~
a.cc:14:17: error: 'c' was not declared in this scope
   14 |         if (a + c == 2 * b) Console.WriteLine("YES");
      |                 ^
a.cc:14:26: error: 'b' was not declared in this scope
   14 |         if (a + c == 2 * b) Console.WriteLine("YES");
      |                          ^
a.cc:14:29: error: 'Console' was not declared in this scope
   14 |         if (a + c == 2 * b) Console.WriteLine("YES");
      |                             ^~~~~~~
a.cc:15:14: error: 'Console' was not declared in this scope
   15 |         else Console.WriteLine("NO");
      |              ^~~~~~~
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if ((b-a)==(c-b)){
			System.out.println("YES");
		}
		else{
			System.out.println("NO");
		}
	}	
}


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

#include <iostream>
using namespace std;
int main(void){
    // Here your code !
    int a,b,c;
    cin >> a >> b >> c;
    if( b−a==c−b){
        cout << "YES" << endl;
    }else{
        cout << "NO" << endl;
    }
}


Compiler output:
a.cc:7:9: error: extended character − is not valid in an identifier
    7 |     if( b−a==c−b){
      |         ^
a.cc:7:14: error: extended character − is not valid in an identifier
    7 |     if( b−a==c−b){
      |              ^
a.cc: In function 'int main()':
a.cc:7:9: error: 'b\U00002212a' was not declared in this scope
    7 |     if( b−a==c−b){
      |         ^~~
a.cc:7:14: error: 'c\U00002212b' was not declared in this scope
    7 |     if( b−a==c−b){
      |              ^~~
Language: Java

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

                        Scanner in = new Scanner(System.in);
			int[] poles = new int[3];
			for (int i = 0; i < 3; i++) {
				poles[i] = in.nextInt();
			}
			List<Integer> arrangement = new ArrayList<>();
			for (int i = 0; i < poles.length; i++) {
				for (int j = 0; j < poles.length; j++) {
					if (i < j) {
						arrangement.add(Math.abs(poles[i]-poles[j]));
					}
				}
			}
			boolean isBeautiful = false;
			for (int i = 0; i < arrangement.size(); i++) {
				for (int j = 1; j < arrangement.size(); j++) {
					if (arrangement.get(i).compareTo(arrangement.get(j)) == 0 && i != j) {
						isBeautiful = true;
					}
				}
			}
			
			System.out.println(isBeautiful);
}
}

Compiler output:
Main.java:1: error: class A is public, should be declared in a file named A.java
public class A {
       ^
Main.java:4: error: cannot find symbol
                        Scanner in = new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class A
Main.java:4: error: cannot find symbol
                        Scanner in = new Scanner(System.in);
                                         ^
  symbol:   class Scanner
  location: class A
Main.java:9: error: cannot find symbol
			List<Integer> arrangement = new ArrayList<>();
			^
  symbol:   class List
  location: class A
Main.java:9: error: cannot find symbol
			List<Integer> arrangement = new ArrayList<>();
			                                ^
  symbol:   class ArrayList
  location: class A
5 errors
Language: Java

// Scanner in = new Scanner(System.in);
			int[] poles = new int[3];
			for (int i = 0; i < 3; i++) {
				poles[i] = in.nextInt();
			}
			List<Integer> arrangement = new ArrayList<>();
			for (int i = 0; i < poles.length; i++) {
				for (int j = 0; j < poles.length; j++) {
					if (i < j) {
						arrangement.add(Math.abs(poles[i]-poles[j]));
					}
				}
			}
			boolean isBeautiful = false;
			for (int i = 0; i < arrangement.size(); i++) {
				for (int j = 1; j < arrangement.size(); j++) {
					if (arrangement.get(i).compareTo(arrangement.get(j)) == 0 && i != j) {
						isBeautiful = true;
					}
				}
			}
			
			System.out.println(isBeautiful);

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
			int[] poles = new int[3];
			^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
			for (int i = 0; i < 3; i++) {
			^
Main.java:3: error: class, interface, enum, or record expected
			for (int i = 0; i < 3; i++) {
			                ^
Main.java:3: error: class, interface, enum, or record expected
			for (int i = 0; i < 3; i++) {
			                       ^
Main.java:5: error: class, interface, enum, or record expected
			}
			^
Main.java:7: error: class, interface, enum, or record expected
			for (int i = 0; i < poles.length; i++) {
			^
Main.java:7: error: class, interface, enum, or record expected
			for (int i = 0; i < poles.length; i++) {
			                ^
Main.java:7: error: class, interface, enum, or record expected
			for (int i = 0; i < poles.length; i++) {
			                                  ^
Main.java:8: error: class, interface, enum, or record expected
				for (int j = 0; j < poles.length; j++) {
				                ^
Main.java:8: error: class, interface, enum, or record expected
				for (int j = 0; j < poles.length; j++) {
				                                  ^
Main.java:11: error: class, interface, enum, or record expected
					}
					^
Main.java:15: error: class, interface, enum, or record expected
			for (int i = 0; i < arrangement.size(); i++) {
			^
Main.java:15: error: class, interface, enum, or record expected
			for (int i = 0; i < arrangement.size(); i++) {
			                ^
Main.java:15: error: class, interface, enum, or record expected
			for (int i = 0; i < arrangement.size(); i++) {
			                                        ^
Main.java:16: error: class, interface, enum, or record expected
				for (int j = 1; j < arrangement.size(); j++) {
				                ^
Main.java:16: error: class, interface, enum, or record expected
				for (int j = 1; j < arrangement.size(); j++) {
				                                        ^
Main.java:19: error: class, interface, enum, or record expected
					}
					^
17 errors
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        new Magatro().Solve();
    }
}

public class Magatro
{
    public void Solve()
    {
        int a, b, c;
        string[] s = Console.ReadLine().Split(' ');
        a = int.Parse(s[0]);
        b = int.Parse(s[1]);
        c = int.Parse(s[2]);
        if (b - a == c - b)
        {
            Console.WriteLine("YES");
        }
        else
        {
            Console.WriteLine("NO");
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:7:22: error: 'string' has not been declared
    7 |     static void Main(string[] args)
      |                      ^~~~~~
a.cc:7:31: error: expected ',' or '...' before 'args'
    7 |     static void Main(string[] args)
      |                               ^~~~
a.cc:11:2: error: expected ';' after class definition
   11 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:9:13: error: expected type-specifier before 'Magatro'
    9 |         new Magatro().Solve();
      |             ^~~~~~~
a.cc: At global scope:
a.cc:13:1: error: expected unqualified-id before 'public'
   13 | public class Magatro
      | ^~~~~~
Language: C++

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC058_A solver = new ABC058_A();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC058_A {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int a = in.nextInt();
            int b = in.nextInt();
            int c = in.nextInt();
            out.println((b - a == c - b) ? "YES" : "NO");
        }

    }
}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.OutputStream;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStream;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.io.PrintWriter;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.Scanner;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:11:1: error: expected unqualified-id before 'public'
   11 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream >

using namespace std;

int main()
{
	int a, b, c;
	
	cin>>a>>b>>c;
	
	cout<< (b-a==c-b?"YES":"NO") <<endl;
}

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

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();
        int c = sc.nextInt();
        if(b-a==c-b)System.out.println("YES");
        else System.out.println("NO");
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <algorithm>
#include <bitset>
#include <cassert>
#include <deque>
#include <fstream>
#include <iostream>
#include <map>
#include <math.h>
#include <memory>
#include <queue>
#include <sstream>
#include <stdio.h>
#include <string>
#include <vector>

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define POW(n) ((n) * (n))
#define ALL(a) (a).begin(), (a).end()
#define dump(v) (cerr << #v << ": " << v << endl)
#define cerr                                                                   \
  if (true)                                                                    \
  cerr

using namespace std;

typedef long long ll;
typedef unsigned long long ull;

typedef vector<int> vi;
typedef vector<double> vd;
typedef vector<string> vs;
typedef vector<unsigned long long> vull;

// ll n = to_T<ll>("114514")
template <class T> T to_T(const string &s) {
  istringstream is(s);
  T res;
  is >> res;
  return res;
}
template <class T> string to_s(const T &a) {
  ostringstream os;
  os << a;
  return os.str();
}

void solve(long long N, long long M) {
  ll ret = min(N, M / 2);
  M -= ret * 2;
  ret += M / 4;

  cout << ret << endl;
}

int main() {
  ios::sync_with_stdio(false);
  int a;
  int b;
  int c;
  cin >> a;
  cin >> b;
  cin >> c;

  int x;
  int y;

  x = abs(b - a);
  y = abs(c - b);

  if(x == y){
    cout << "YES" << endl;
  }else{
    cout << "NO" << endl;
  }

  
  solve(N, M);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:78:9: error: 'N' was not declared in this scope
   78 |   solve(N, M);
      |         ^
a.cc:78:12: error: 'M' was not declared in this scope
   78 |   solve(N, M);
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int a,b,c;
  cin >> a >> b >> c;
  if(b-a==c-b){cout << "YES" << endl;}
  else{cout << "NO" << endl;}
  return 0;

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

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

int mian(){
  int a,b,c;
  cin >> a >> b >> c;
  if(b-a==c-b){cout << "YES" << endl;}
  else{cout << "NO" << endl;}
  return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

a, b, c = map(int(input().split()))
if b-a == c-b:
	print('YES')
else:
	print('NO')

Compiler output:
a.cc:3:15: warning: multi-character character constant [-Wmultichar]
    3 |         print('YES')
      |               ^~~~~
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
    5 |         print('NO')
      |               ^~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c = map(int(input().split()))
      | ^
Language: C++

<?php
list($a, $b, $c) = explode(' ', trim(fgets(STDIN)));
if ($b - $a == $c - $b) {
    echo "YES\n";
} else {
    echo "NO\n";
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if ($b - $a == $c - $b) {
      | ^~
a.cc:5:3: error: expected unqualified-id before 'else'
    5 | } else {
      |   ^~~~
Language: C++


#include<stdio.h>
int main()
{
int m,n,k;
int x[100000],y[100000];
scanf("%d %d",&n,&m);
for(k=0;k<n;k++)
scanf("%d",&x[k]);
for(k=0;k<m;k++)
scanf("%d",&y[k]);
int sum=0;
int a,b,c,d;
for(a=0;a<n-1;a++)
for(b=a+1;b<n,b++)
for(c=0;c<m-1;c++)
for(d=c+1;d<m;d++)
sum=(b-a)*(c-d);
printf("%d",sum/1000000007);
 
return 0;
}

Compiler output:
a.cc:20:1: error: extended character   is not valid in an identifier
   20 |  
      | ^
a.cc: In function 'int main()':
a.cc:15:18: error: expected ';' before ')' token
   15 | for(b=a+1;b<n,b++)
      |                  ^
      |                  ;
a.cc:20:1: error: '\U000000a0' was not declared in this scope
   20 |  
      | ^
Language: C++

#include <iostream>
#include <math.h>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
  int a,b,c,d,e;
  string f,g;
  cin>>a>>b>>c;
  d=b-a;
  e=c-b;
    if(d=e){
     printf(''YES'',f);

}
    else{
     printf(''NO'',g);
 }
}

Compiler output:
a.cc:13:13: error: empty character constant
   13 |      printf(''YES'',f);
      |             ^~~~~
a.cc:13:18: error: empty character constant
   13 |      printf(''YES'',f);
      |                  ^~
a.cc:17:13: error: empty character constant
   17 |      printf(''NO'',g);
      |             ^~~~
a.cc:17:17: error: empty character constant
   17 |      printf(''NO'',g);
      |                 ^~
a.cc: In function 'int main()':
a.cc:13:13: error: unable to find character literal operator 'operator""YES' with 'char' argument
   13 |      printf(''YES'',f);
      |             ^~~~~
a.cc:17:13: error: unable to find character literal operator 'operator""NO' with 'char' argument
   17 |      printf(''NO'',g);
      |             ^~~~
Language: C++

#include<stdio.h>
int main(){
	int a,b,c
	while(scanf("%d%d%d",&a,&b,&c)!=EOF){
		if(a<1||b<1||c<1||a>100||b>100||c>100) continue;
		if(a-b==b-c)
				printf("YES")
		else	printf("NO")
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected initializer before 'while'
    4 |         while(scanf("%d%d%d",&a,&b,&c)!=EOF){
      |         ^~~~~
Language: C++

#include <iostream>
#include <math.h>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
  int a,b,c,d,e;
  string YES;
  string NO;
  cin>>a>>b>>c;
  d=b-a;
  e=c-b;
    if(d=e){
     printf('YES');

}
    else{
     printf('NO');
 }
}

Compiler output:
a.cc:14:13: warning: multi-character character constant [-Wmultichar]
   14 |      printf('YES');
      |             ^~~~~
a.cc:18:13: warning: multi-character character constant [-Wmultichar]
   18 |      printf('NO');
      |             ^~~~
a.cc: In function 'int main()':
a.cc:14:13: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   14 |      printf('YES');
      |             ^~~~~
      |             |
      |             int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:18:13: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   18 |      printf('NO');
      |             ^~~~
      |             |
      |             int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

a,b,c = map(int, raw_input().split())

if b-a == c-b:
    print 'YES'
else:
    print 'NO'

Compiler output:
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print 'YES'
      |           ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print 'NO'
      |           ^~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c = map(int, raw_input().split())
      | ^
Language: C++

#include <iostream>
#include <math.h>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
  int a,b,c,d,e;
  string YES;
  string NO;
  cin>>a>>b>>c;
  d=b-a;
  e=c-b;
    if(d=e){
     printf(YES)

}
    else{
     printf(NO)
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   14 |      printf(YES)
      |             ^~~
      |             |
      |             std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:18:13: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   18 |      printf(NO)
      |             ^~
      |             |
      |             std::string {aka std::__cxx11::basic_string<char>}
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: Java

import java.util.Scanner;


	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();
		int c=stdIn.nextInt();
		if(a-b==b-c)
			System.out.println("YES");
		else
			System.out.println("NO");
		
		

	}



Compiler output:
Main.java:4: 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)
1 error
Language: C

#include <stdio.h>

int main(void)
{
	int a=0,b=0,c=0,d=0,e=0;
	
	scanf_s("%d",&a);
	scanf_s("%d",&b);
	scanf_s("%d",&c);
	
	d=b-a;
	e=c-b;
	if(d<0){
		d=d*-1;
	}
	if(e<0){
		e=e*-1;
	}
	
	if(d==e){
		printf("YES\n");
	}else{
		printf("NO\n");
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%d",&a);
      |         ^~~~~~~
      |         scanf
Language: Java

import java.util.Scanner;
public class Question2 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();
		int c=stdIn.nextInt();
		if(a-b==b-c)
			System.out.println("YES");
		else
			System.out.println("NO");
		
		

	}

}

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

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


Compiler output:
a.cc:7:9: error: extended character − is not valid in an identifier
    7 |     if( b−a == c−b ){
      |         ^
a.cc:7:16: error: extended character − is not valid in an identifier
    7 |     if( b−a == c−b ){
      |                ^
a.cc: In function 'int main()':
a.cc:7:9: error: 'b\U00002212a' was not declared in this scope
    7 |     if( b−a == c−b ){
      |         ^~~
a.cc:7:16: error: 'c\U00002212b' was not declared in this scope
    7 |     if( b−a == c−b ){
      |                ^~~
Language: C++

#include <iostream>

using namespace std;

int main() {
   int A,B,C;
   cin >> A >> B>> C;

   cout << (B-A==C-B : "YES" ? "NO");
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ')' before ':' token
    9 |    cout << (B-A==C-B : "YES" ? "NO");
      |            ~        ^~
      |                     )
Language: C++

#include <iostream>
#include <string>
#define rep(i,n) for(int i = 0; i < n;++i)
using namespace std;

int main(){
	int a,b,c;
	cin >> a >> b >> c;

	if(b-a == c- b)
		cout << "YES"<<endl;
	else
		cout <<< "NO" <<endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected primary-expression before '<' token
   13 |                 cout <<< "NO" <<endl;
      |                        ^
a.cc:13:31: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |                 cout <<< "NO" <<endl;
      |                          ~~~~~^~~~~~
Language: C++

#include <iostream>

using namespace std;

int main() {
   int A,B,C;
   cin >> A >> B>> C;

   cout << (b-a==c-b : "YES" ? "NO");
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'b' was not declared in this scope
    9 |    cout << (b-a==c-b : "YES" ? "NO");
      |             ^
a.cc:9:15: error: 'a' was not declared in this scope
    9 |    cout << (b-a==c-b : "YES" ? "NO");
      |               ^
a.cc:9:18: error: 'c' was not declared in this scope
    9 |    cout << (b-a==c-b : "YES" ? "NO");
      |                  ^
a.cc:9:21: error: expected ')' before ':' token
    9 |    cout << (b-a==c-b : "YES" ? "NO");
      |            ~        ^~
      |                     )
Language: C++

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

int main(){
    int a,b,c;
    cin >> a >> b >> c;
    if(b-a==c-b) cout << YES << endl;
    else cout << NO << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: 'YES' was not declared in this scope
    7 |     if(b-a==c-b) cout << YES << endl;
      |                          ^~~
a.cc:8:18: error: 'NO' was not declared in this scope
    8 |     else cout << NO << endl;
      |                  ^~
Language: C++

#include<stdio.h>
int main()
{
int a,b,c;
scanf(("%d %d %d",&a,&b,&c);
if(b-a==c-b)
printf("YES");
else
printf("NO");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:28: error: expected ')' before ';' token
    5 | scanf(("%d %d %d",&a,&b,&c);
      |      ~                     ^
      |                            )
Language: C

include <stdio.h>

int main(void){

  int a,b,c;

  scanf("%d %d %d",&a,&b,&c);

  if(b-a==c-b){
    printf("YES\n");
  }else{
    printf("NO\n");
  }

  return 0;

}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C++


#include <bits/stdc++.h>
using namespace std;
//int main( int argc, char *argv[] )
{
int A;
int B;
int C;

	// 入力
	cin >> A;
	cin >> B;
	cin >> C;

	// 出力
	if(  A-B==B-C )
		cout << "YES" << endl;
	else
		cout << "NO" << endl;

	return 0;
}






Compiler output:
a.cc:5:1: error: expected unqualified-id before '{' token
    5 | {
      | ^
Language: C++

#incldue<iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(b-a==c-b)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>a>>b>>c;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue<iostream>
a.cc:8:1: error: 'cout' was not declared in this scope
    8 | cout<<"YES"<<endl;
      | ^~~~
a.cc:8:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:14: error: 'endl' was not declared in this scope
    8 | cout<<"YES"<<endl;
      |              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incldue<iostream>
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout<<"NO"<<endl;
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:13: error: 'endl' was not declared in this scope
   10 | cout<<"NO"<<endl;
      |             ^~~~
a.cc:10:13: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

int main(void){
    int a,b,c;
    cin >> a >> b >> c;
    if (b-a == c-b)
        cout << "YES";
    else
        cout << "NO";
    cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b >> c;
      |     ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout << "YES";
      |         ^~~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << "NO";
      |         ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << endl;
      |     ^~~~
a.cc:8:13: error: 'endl' was not declared in this scope
    8 |     cout << endl;
      |             ^~~~
Language: C++

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();
		int c = sc.nextInt();

		if (b−a=c−b) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}


Compiler output:
a.cc:11:21: error: extended character − is not valid in an identifier
   11 |                 if (b−a=c−b) {
      |                     ^
a.cc:11:25: error: extended character − is not valid in an identifier
   11 |                 if (b−a=c−b) {
      |                         ^
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include "bits\stdc++.h"

using namespace std;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

	int a, b, c;

	if (b - a == c - b)
		cout << "YES" << endl;
	else
		cout << "NO" << endl;

	return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected ';' before 'return'
   10 | cout<<"NO"
      |           ^
      |           ;
   11 | return 0;
      | ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
string s,t;
  cin >> s >> t;
  for(int i=0;i<t.size();++i)
  {
  cout << s.at(i) << t.at(i);
  }
  if(t.size<s.size()) cout << s.at(s.size()-1);
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   11 |   if(t.size<s.size()) cout << s.at(s.size()-1);
      |      ~~^~~~
      |            ()
Language: C++

#include<stdio.h>
using namespace std;
int main()
{
string s,t;
  cin >> s >> t;
  for(int i=0;i<t.size();++i)
  {
  cout << s.at(i) << t.at(i);
  }
  if(t.size<s.size()) cout << s.at(s.size()-1);
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string s,t;
      | ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include<stdio.h>
  +++ |+#include <string>
    2 | using namespace std;
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> s >> t;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s >> t;
      |          ^
a.cc:6:15: error: 't' was not declared in this scope
    6 |   cin >> s >> t;
      |               ^
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout << s.at(i) << t.at(i);
      |   ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:23: error: 'cout' was not declared in this scope
   11 |   if(t.size<s.size()) cout << s.at(s.size()-1);
      |                       ^~~~
a.cc:11:23: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<stdio.h>
using namespace std;
int main()
{
string s,t;
  cin >> s >> t;
  for(i=0;i<t.size();++i)
  {
  cout << s.at(i) << t.at(i);
  }
  if(t.size<s.size()) cout << s.at(s.size()-1);
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string s,t;
      | ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include<stdio.h>
  +++ |+#include <string>
    2 | using namespace std;
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> s >> t;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s >> t;
      |          ^
a.cc:6:15: error: 't' was not declared in this scope
    6 |   cin >> s >> t;
      |               ^
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<t.size();++i)
      |       ^
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout << s.at(i) << t.at(i);
      |   ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:23: error: 'cout' was not declared in this scope
   11 |   if(t.size<s.size()) cout << s.at(s.size()-1);
      |                       ^~~~
a.cc:11:23: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);i++)
#define all(v) v.begin(),v.end()
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
const int INF=1e9;
const int di[] = {-1,0,1,0};
const int dj[] = {0,-1,0,1};

int main() {
  string o,e;
  cin>>o>>e;
  string ans;
  if(o.length()-e.length()==0){
    rep(i,o.length()){
      ans+=o[i];
      ans+=e[i];
  }
  if(o.length()-e.length()==1){
    rep(i,o.length()-1){
      ans+=o[i];
      ans+=e[i];
    }
    ans+=o[o.length()-1];
  }
  cout<<ans<<endl;
}

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

#include <bits/stdc++.h>
#define arep(a,i,n) for(ll i=(a);i<(n);i++)
#define rep(i,n) for(ll i=0;i<(n);i++)
#define cinf(x,n) for(ll i=0;i<(n);i++)cin>>x[i];
#define coutf(x,n) for(ll i=0;i<(n);i++)cout<<x[i]<<endl;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;

using namespace std;

int main(){
	string o,e;
	cin >> o;
	cin >> e;
	if(o.length()==e.length()){
		rep(i,o.length()){
			cout<<o[i]<<e[i];
		}
		cout << endl;
	}else{
		rep(i,e.length()){
			cout<<o[i]<<e[i];
		}
		cout<<o[o.length()-1]<<endla;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:40: error: 'endla' was not declared in this scope
   25 |                 cout<<o[o.length()-1]<<endla;
      |                                        ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    string o,e;
    cin>>o;
    cin>>e;
    string ans="";//コノジテンデハ、ハイレツノオオキサハ０デアル
    int ln=o.size()+e.size();
    //ans.resize(ln);
    for(int i=0;i<ln;i++){
        if(i%2==0) ans.push_back(i)=o.at(i/2);
        if(i%2==1) ans.push_back(i)=e.at(i/2);
    }
    cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: invalid use of 'void'
   11 |         if(i%2==0) ans.push_back(i)=o.at(i/2);
      |                    ~~~~~~~~~~~~~^~~
a.cc:12:33: error: invalid use of 'void'
   12 |         if(i%2==1) ans.push_back(i)=e.at(i/2);
      |                    ~~~~~~~~~~~~~^~~
Language: C++

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

int main() {
  string a,b;
  cin >> a >> b;
  for ( 　int i=0 ; i< b.size() ; i++){
    cout << a.at(i) << b.at(i) ;
  }
  if ( a.size() > b.size()){
    cout << a.at(a.size()-1) ;
  }
  cout << endl;
}


Compiler output:
a.cc:7:9: error: extended character 　 is not valid in an identifier
    7 |   for ( 　int i=0 ; i< b.size() ; i++){
      |         ^
a.cc: In function 'int main()':
a.cc:7:9: error: '\U00003000int' was not declared in this scope
    7 |   for ( 　int i=0 ; i< b.size() ; i++){
      |         ^~~~~
a.cc:7:21: error: 'i' was not declared in this scope
    7 |   for ( 　int i=0 ; i< b.size() ; i++){
      |                     ^
Language: C++

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

int main(){
  string s,t;
  cin >> s >> t;
  if(s.size() > t.size()){
    for(int i = 0; i < t.size(); i++){
      cou << s[i] << t[i];
    }
    cout << s[s.size() - 1] << endl;
    return 0;
  }else{
    for(int i = 0; i < t.size(); i++){
      cout << s[i] << t[i];
    }
    cout << endl;
    return 0;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'cou' was not declared in this scope; did you mean 'cos'?
    9 |       cou << s[i] << t[i];
      |       ^~~
      |       cos
Language: C++

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

int main() {
    string s,t;cin>>s>>t;
    int m = s.size();
    int n = t.size();
    rep(i,m){
    cout<<s[i]
    if(i<n)cout<<t[i];
    }
    cout<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected ';' before 'if'
   11 |     cout<<s[i]
      |               ^
      |               ;
   12 |     if(i<n)cout<<t[i];
      |     ~~
Language: C++

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

int main() {
  string S,N;
  cin >> S >> N;
  for(int i = 0;i < 50;i++){
    cout << S[i] << N[i];
}


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

#include<bits/stdc++.h>
using namespace std;
bool comp(pair<long long int,long long int>a,pair<long long int,long long int>b)
{
    if(a.first==b.first)
    {
        if(a.second<=b.second)
        return true;
        else
        return false;
    }
    if(a.first>b.first)
    return true;
    else return false;
}
long long int gcd(long long int bdda,long long int chota)
{
    if(chota==0)
        return bdda;
    return gcd(chota,bdda%chota);
}
void solve()
{
    string s,t;
    cin>>s>>t;
    for(int i=0;i<s.size();i++)cout<<s[i]<<t[i]''
}
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int t;    
    t=1;

    //cin>>t;
    while(t--)
    {
        solve();
    }
}


Compiler output:
a.cc:26:48: error: empty character constant
   26 |     for(int i=0;i<s.size();i++)cout<<s[i]<<t[i]''
      |                                                ^~
a.cc: In function 'void solve()':
a.cc:26:48: error: expected ';' before '\x0'
   26 |     for(int i=0;i<s.size();i++)cout<<s[i]<<t[i]''
      |                                                ^~
      |                                                ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
string a,b;
  cin>>a>>b;
  int k=a.size(),l=b.size();
  string s="";
  if(k>=l){
  for(int i=0;i<k-1;i++){
  s+=k[i]+l[i];
  }
    s +=a[k-1];
    cout << s <<endl;
  }
  else{ 
    for(int i=0;i<k-1;i++){
  s+=l[i]+k[i];
  }
    s +=b[k-1];
    cout << s <<endl;
  
  
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: invalid types 'int[int]' for array subscript
   11 |   s+=k[i]+l[i];
      |       ^
a.cc:11:12: error: invalid types 'int[int]' for array subscript
   11 |   s+=k[i]+l[i];
      |            ^
a.cc:18:7: error: invalid types 'int[int]' for array subscript
   18 |   s+=l[i]+k[i];
      |       ^
a.cc:18:12: error: invalid types 'int[int]' for array subscript
   18 |   s+=l[i]+k[i];
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
string a,b;
  cin>>a>>b;
  int k=a.size(),l=b.size();
  string s;
  if(k>=l){
  for(int i=0;i<k-1;i++){
  s+=k[i]+l[i];
  }
    s +=a[k-1];
    cout << s <<endl;
  }
  else(l>k){ 
    for(int i=0;i<k-1;i++){
  s+=l[i]+k[i];
  }
    s +=b[k-1];
    cout << s <<endl;
  
  
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: invalid types 'int[int]' for array subscript
   11 |   s+=k[i]+l[i];
      |       ^
a.cc:11:12: error: invalid types 'int[int]' for array subscript
   11 |   s+=k[i]+l[i];
      |            ^
a.cc:16:12: error: expected ';' before '{' token
   16 |   else(l>k){
      |            ^
      |            ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string S; string T;
  cin>>S>>T;
  int L=S.size(); int R=T.size();
  if(S.size()==T.size()){
  for(int i=0; i<L; i++){
    cout<<S.at(i)<<T<<at(i);
  }
  }
  else{
    for(int i=0; i<R; i++){
      cout<<S.at(i)<<T.at(i);
    }
    cout<<S.at(S.size()-1);
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: 'at' was not declared in this scope
    9 |     cout<<S.at(i)<<T<<at(i);
      |                       ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string S; string T;
  cin>>S>>T;
  if(S.size()==T.size()){
  for(int i=0; i<S.size(); i++){
    cout<<S.at(i)<<T<<at(i);
  }
  }
  else{
    for(int i=0; i<T.size(); i++){
      cout<<S.at(i)<<T.at(i);
    }
    cout<<S.at(S.size()-1);
  }
}


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

#include<bits/stdc+;.h>
using namespace std;
int main(){
  string S; string T;
  cin>>S>>T;
  if(S.size()==T.size()){
  for(int i=0; i<S.size(); i++){
    cout<<S.at(i)<<T<<at(i);
  }
  }
  else{
    for(int i=0; i<T.size(); i++){
      cout<<S.at(i)<<T.at(i);
    }
    cout<<S.at(S.size()-1);
  }
}

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

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

int main()
{
  string s, t;
  cin >> s >> t;
  string ans = "";
  rep(i, t.size()) {
    ans += s[i];
    ans += t[i];
  }
  if(s.size() > t.size()) an s+= s[s.size() - 1];
  cout << ans << endl;
  

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:27: error: 'an' was not declared in this scope; did you mean 'ans'?
   17 |   if(s.size() > t.size()) an s+= s[s.size() - 1];
      |                           ^~
      |                           ans
Language: C++

s=input()
t=input()
k=[]
for i in range(len(t)):
    k.append(s[i])
    k.append(t[i])
if len(s)>len(t):
    t.append(s[len(s)-1])
print(k)


Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s=input()
      | ^
Language: C++

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

int main() {
	string a,b;
	cin >> a >> b;
	if(a.size()==b.size()){
		rep(i,a.size()) {
			cout << a[i] << b[i];
		}
	}
	else {
		rep(i,b.sise()) {
			cout << a[i] << b[i];
		}
		cout << a[a.size()-1];
	}
	cout << endl;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:23:25: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sise'; did you mean 'size'?
   23 |                 rep(i,b.sise()) {
      |                         ^~~~
a.cc:6:42: note: in definition of macro 'rep'
    6 | #define rep(i,n) for (ll i = 0; i < (ll)(n); ++i)
      |                                          ^
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  char s[50],t[50];
  scanf("%s%s",s,t);
  for(int i=0;i<strlen(s);i++){
    printf("%c%c",s[i],t[i]);
  }


Compiler output:
main.c: In function 'main':
main.c:8:3: error: expected declaration or statement at end of input
    8 |   }
      |   ^
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  char s[50],t[50];
  scanf("%s%s",s,t);
  for(int i=0;i<strlen(s);i++){
    printf("%s%s",s[i],t[i]);
  }


Compiler output:
main.c: In function 'main':
main.c:8:3: error: expected declaration or statement at end of input
    8 |   }
      |   ^
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  char s[50],t[50];
  scanf("%s%s",s,t);
  for(int i=0;i<strlen(a);i++){
    printf("%s%s",s[i],t[i]);
  }

Compiler output:
main.c: In function 'main':
main.c:6:24: error: 'a' undeclared (first use in this function)
    6 |   for(int i=0;i<strlen(a);i++){
      |                        ^
main.c:6:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:3: error: expected declaration or statement at end of input
    8 |   }
      |   ^