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

#include <iostream>
#include <set>
#include <map>
#include <string>
#include <math.h>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <bitset>
#include <string.h>

using namespace std;

// #define for(i,a,b) for (int i=(a);i<(b);++i)
typedef long long ll;
typedef pair<ll,ll> P;
#define REP(i,n) for(long long i = 0; i < (long long)(n); i++)
#define pb push_back // vectorに要素追加
#define INF (ll)1e18

ll mod = 1e9+7;
  
// 検索タグ
int main() {
	// 入力
	ll A[2];
    REP(i,2)cin>>A[i];
    
	// 解法
	sort(A, A + 2;  // a[0:N] を大きい順にソート

	//出力
	cout << ans << endl;
	printf("%lld\n", ans);
	if (A[0]==1 & A[1]==2) printf("3\n");
	else if (A[0]==2 & A[1]==3) printf("1\n");
	else printf("2\n");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:22: error: expected ')' before ';' token
   31 |         sort(A, A + 2;  // a[0:N] を大きい順にソート
      |             ~        ^
      |                      )
a.cc:34:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   34 |         cout << ans << endl;
      |                 ^~~
      |                 abs
Language: C

#include<stdio.h>
int main{
  int a,b;
  scanf("%d %d",&a,&b);
  printf("%d\n",6-a-b);
  return 0;
}


Compiler output:
main.c:2:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | int main{
      |         ^
Language: C

#include <stdio.h>
int main (void)
{
    int A,B,n;
    scanf("%d%d",&A,&B);
    n=6-A-B;
    printf("%d\n"n);
return 0 ;
}


Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected ')' before 'n'
    7 |     printf("%d\n"n);
      |           ~      ^
      |                  )
Language: C

#include <stdio.h>
int main (void)
{
    int A,B;
    scanf("%d%d",&A,&B);
    printf("%d\n"6-A-B);
return 0 ;
}


Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected ')' before numeric constant
    6 |     printf("%d\n"6-A-B);
      |           ~      ^
      |                  )
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(Sytem.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    
    if (A == 1 && B == 2) {
      System.out.print("3");
    } else if (A == 2 && B == 3) {
      System.out.print("1");
    } else if (A == 1 && B == 3) {
      System.out.print("2");
    }
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Scanner sc = new Scanner(Sytem.in);
                             ^
  symbol:   variable Sytem
  location: class Main
1 error
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 f, s;
cin >> f >> s;
cout << 6-f-s << endl;


Compiler output:
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> f >> s;
      | ^~~
a.cc:8:1: error: 'cout' does not name a type
    8 | cout << 6-f-s << endl;
      | ^~~~
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 f, s;
cin >> f >> s;
cout >> 6-f-s >> endl;

Compiler output:
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> f >> s;
      | ^~~
a.cc:8:1: error: 'cout' does not name a type
    8 | cout >> 6-f-s >> endl;
      | ^~~~
Language: C++

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

#define rep(i,n) for (int i = 0; i< (n); ++i)
#define vvec(m,n) vector<vector<int>> (int(m), vector<int>(n))
#define ALL(a) (a).begin(), (a).end()

using ll = long long;

int main(){
    int a, b;
    cin >> a >> b;
    int ans = 0;
    if(a == 1){
        if(b == 2){
            ans = 3
        }else{
            ans = 2;
        }
    }else if(a == 2){
        if(b == 1){
            ans = 3;
        }else{
            ans = 1;
        }
    }else{
        if(b == 1){
            ans = 2;
        }else{
            ans = 2;
        }
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: expected ';' before '}' token
   16 |             ans = 3
      |                    ^
      |                    ;
   17 |         }else{
      |         ~
Language: C++

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

int main(){
    int A,B; cin >> A >> B;
    cout << 6-(A+B) << endl;
}

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 <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b;
    cin a;
  cin b;
   cout << 6 - a - b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected ';' before 'a'
    6 |     cin a;
      |        ^~
      |        ;
a.cc:7:6: error: expected ';' before 'b'
    7 |   cin b;
      |      ^~
      |      ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B;
    cin A;
  cin B;
   cout << 6 - A - B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected ';' before 'A'
    6 |     cin A;
      |        ^~
      |        ;
a.cc:7:6: error: expected ';' before 'B'
    7 |   cin B;
      |      ^~
      |      ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B;
    cin A >> B;
   cout << 6 - A - B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected ';' before 'A'
    6 |     cin A >> B;
      |        ^~
      |        ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B
   cin  >> A >> B;
   cout << 6 - A - B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: expected initializer before 'cin'
    6 |    cin  >> A >> B;
      |    ^~~
a.cc:7:20: error: 'B' was not declared in this scope
    7 |    cout << 6 - A - B << endl;
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B;
  cin A,B;
   cout << 6 - A - B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
    6 |   cin A,B;
      |      ^~
      |      ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B;
    cin A,B;
   cout << 6 - A - B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected ';' before 'A'
    6 |     cin A,B;
      |        ^~
      |        ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B
    cin A,B
   cout << 6 - A - B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin A,B
      |     ^~~
Language: C++

#include<iostream>
#include<fstream>
#include<vector>
#include<initializer_list>
#include<string>
#include<stdio.h>
using namespace std;
  int main(){
int A,B;
scanf("%d%d"&A,&B);

if (A==1 && B==2)
{printf("3\n");}
else if (A==1 && B==3)
{printf("2\n");}
else if (A==2 && B ==1)
{printf ("3\n");}
else if (A==2 && B ==3)
{printf ("1\n");}
else if (A==3 && B ==2)
{printf ("1\n");}
else if (A==3 && B ==1)
{printf ("2\n");}}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: invalid operands of types 'const char [5]' and 'int' to binary 'operator&'
   10 | scanf("%d%d"&A,&B);
      |       ~~~~~~^~
      |       |      |
      |       |      int
      |       const char [5]
Language: C++

package main

import (
	"fmt"
)

func main() {
	var A, B int

	fmt.Scanf("%d\n%d\n", &A, &B)
	r := map[int]struct{}{
		1: {},
		2: {},
		3: {},
	}
	delete(r, A)
	delete(r, B)
	for k := range r {
		fmt.Println(k)
	}
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: C++

#include<stdio.h>

int main(void)
{
    int A, B,x;
    int r;

    scanf_s("%d %d", &A, &B);

    x = A * B;
    

    if (A < B) {
        r = A;
        A = B;
        B = r;
    }
    r = A % B;

    while (r != 0) {
        A = B;
        B = r;
        r = A % B;
    }

    //printf("for debug B is %d, A is %d\n", B,A);

    printf("%d", x/B);



        return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    8 |     scanf_s("%d %d", &A, &B);
      |     ^~~~~~~
      |     scanf
Language: Java

import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
 

//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
//map.containsKey(A)

//Map<String, Integer> map = new HashMap<String, Integer>(n);
/*for ( キーのデータ型 key : マップの名前.keySet() ) {
	データのデータ型 data = マップの名前.get( key );
	
	// keyやdataを使った処理;
}*/

//ArrayList<String> cc = new ArrayList<>(n);
//Collections.sort(list);
//Array.sort(list);
//Arrays.asList(c).contains("a")
//list.set(1,"walk");
public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	static long N;
	public static void main(String[] args) {
		int a=sc.nextInt();
		int b=sc.nextInt();
		for(int i=1;i<=3;i++) {
			if(i==a||i==b) {
				continue;
			}
			p(i);
		}
	}
	
	static boolean dfs(int i,long sum) {
		//i個でsum==kになるか確かめる
		//sumはそこまでの合計値
		if(i==i)return sum==N;
		
		if(dfs(i+1,sum))return true;
		if(dfs(i+1,sum*cc.get(i)))return true;
		return false;
		}
	
	
	
}


Compiler output:
Main.java:48: error: cannot find symbol
		if(dfs(i+1,sum*cc.get(i)))return true;
		               ^
  symbol:   variable cc
  location: class Main
1 error
Language: C++

import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
 

//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
//map.containsKey(A)

//Map<String, Integer> map = new HashMap<String, Integer>(n);
/*for ( キーのデータ型 key : マップの名前.keySet() ) {
	データのデータ型 data = マップの名前.get( key );
	
	// keyやdataを使った処理;
}*/

//ArrayList<String> cc = new ArrayList<>(n);
//Collections.sort(list);
//Array.sort(list);
//Arrays.asList(c).contains("a")
//list.set(1,"walk");
public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	static long N;
	public static void main(String[] args) {
		int a=sc.nextInt();
		int b=sc.nextInt();
		for(int i=1;i<=3;i++) {
			if(i==a||i==b) {
				continue;
			}
			p(i);
		}
	}
	
	static boolean dfs(int i,long sum) {
		//i個でsum==kになるか確かめる
		//sumはそこまでの合計値
		if(i==i)return sum==N;
		
		if(dfs(i+1,sum))return true;
		if(dfs(i+1,sum*cc.get(i)))return true;
		return false;
		}
	
	
	
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.ArrayList;
      | ^~~~~~
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.util.Collections;
      | ^~~~~~
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.util.Scanner;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:23:1: error: expected unqualified-id before 'public'
   23 | public class Main {
      | ^~~~~~
Language: C

#include<stdio.h>
int main()
{
    int A,B;
    scanf("%d %d",&A,&B);
  if(A=1 && B=3)
    printf("2");
  if(A=2 && B=3)
    printf("1");
  if(A=2 && B=1)
    printf("3");
    if(A=3 && B=1)
        printf("2");
    if(A=3 && B=2)
        printf("1");
    if(A=1 && B=2)
        printf("3");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:14: error: lvalue required as left operand of assignment
    6 |   if(A=1 && B=3)
      |              ^
main.c:8:14: error: lvalue required as left operand of assignment
    8 |   if(A=2 && B=3)
      |              ^
main.c:10:14: error: lvalue required as left operand of assignment
   10 |   if(A=2 && B=1)
      |              ^
main.c:12:16: error: lvalue required as left operand of assignment
   12 |     if(A=3 && B=1)
      |                ^
main.c:14:16: error: lvalue required as left operand of assignment
   14 |     if(A=3 && B=2)
      |                ^
main.c:16:16: error: lvalue required as left operand of assignment
   16 |     if(A=1 && B=2)
      |                ^
Language: C

#include<stdio.h>
int main()
{
    int A,B;
    scanf("%d %d",&A,&B);
  if((A=1 && B=3)
    printf("2");
      if((A=2 && B=3) 
    printf("1");
      if((A=1 && B=2) 
    printf("3");
if(A=3 && B=1)
printf("2");
if(A=3 && B=2)
printf("1");
if(A=2 && B=1)
printf("3");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:15: error: lvalue required as left operand of assignment
    6 |   if((A=1 && B=3)
      |               ^
main.c:6:18: error: expected ')' before 'printf'
    6 |   if((A=1 && B=3)
      |     ~            ^
      |                  )
    7 |     printf("2");
      |     ~~~~~~        
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
    int A,B;
    scanf("%d %d",&A,&B);
  if((A=1 && B=3)|| (A=3 && B=1))
    printf("2");
      if((A=2 && B=3) || (A=3 && B=2))
    printf("1");
      if((A=1 && B=2) || (A=2 && B=1))
    printf("3");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:15: error: lvalue required as left operand of assignment
    6 |   if((A=1 && B=3)|| (A=3 && B=1))
      |               ^
main.c:6:30: error: lvalue required as left operand of assignment
    6 |   if((A=1 && B=3)|| (A=3 && B=1))
      |                              ^
main.c:8:19: error: lvalue required as left operand of assignment
    8 |       if((A=2 && B=3) || (A=3 && B=2))
      |                   ^
main.c:8:35: error: lvalue required as left operand of assignment
    8 |       if((A=2 && B=3) || (A=3 && B=2))
      |                                   ^
main.c:10:19: error: lvalue required as left operand of assignment
   10 |       if((A=1 && B=2) || (A=2 && B=1))
      |                   ^
main.c:10:35: error: lvalue required as left operand of assignment
   10 |       if((A=1 && B=2) || (A=2 && B=1))
      |                                   ^
Language: C

#include<stdio.h>
int main()
{
    int A,B;
    scanf("%d %d %d",&A,&B);
  if((A=1 && B=3) || (A=3 && B=1))
    printf("2");
      if((A=2 && B=3) || (A=3 && B=2))
    printf("1");
      if((A=1 && B=2) || (A=2 && B=1))
    printf("3");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:15: error: lvalue required as left operand of assignment
    6 |   if((A=1 && B=3) || (A=3 && B=1))
      |               ^
main.c:6:31: error: lvalue required as left operand of assignment
    6 |   if((A=1 && B=3) || (A=3 && B=1))
      |                               ^
main.c:8:19: error: lvalue required as left operand of assignment
    8 |       if((A=2 && B=3) || (A=3 && B=2))
      |                   ^
main.c:8:35: error: lvalue required as left operand of assignment
    8 |       if((A=2 && B=3) || (A=3 && B=2))
      |                                   ^
main.c:10:19: error: lvalue required as left operand of assignment
   10 |       if((A=1 && B=2) || (A=2 && B=1))
      |                   ^
main.c:10:35: error: lvalue required as left operand of assignment
   10 |       if((A=1 && B=2) || (A=2 && B=1))
      |                                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int,int>;




int main(){
    vector<book> S(4,1);
    int A;
    cin >> A;
    bool[A]=0;
    int B;
    cin >> B;
    bool[B]=0;
    for(int i=1;i<4;i++){
        if(bool[i]==1)
        cout<<i<<endl;
    ;}


    

return 0;


}  



Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'book' was not declared in this scope; did you mean 'bool'?
   10 |     vector<book> S(4,1);
      |            ^~~~
      |            bool
a.cc:10:16: error: template argument 1 is invalid
   10 |     vector<book> S(4,1);
      |                ^
a.cc:10:16: error: template argument 2 is invalid
a.cc:10:23: error: expression list treated as compound expression in initializer [-fpermissive]
   10 |     vector<book> S(4,1);
      |                       ^
a.cc:13:9: error: structured binding declaration cannot have type 'bool'
   13 |     bool[A]=0;
      |         ^~~
a.cc:13:9: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:13:10: error: conflicting declaration 'auto A'
   13 |     bool[A]=0;
      |          ^
a.cc:11:9: note: previous declaration as 'int A'
   11 |     int A;
      |         ^
a.cc:16:9: error: structured binding declaration cannot have type 'bool'
   16 |     bool[B]=0;
      |         ^~~
a.cc:16:9: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:16:10: error: conflicting declaration 'auto B'
   16 |     bool[B]=0;
      |          ^
a.cc:14:9: note: previous declaration as 'int B'
   14 |     int B;
      |         ^
a.cc:18:16: error: expected unqualified-id before '[' token
   18 |         if(bool[i]==1)
      |                ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define INF 1000000007
#define LINF (1LL << 60)
#define PI 3.14159265358979

typedef long long i64;
typedef pair<i64,i64> P;

inline i64 mod(i64 a, i64 m) { return (a % m + m) % m; }

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



int a,b;
void solve(){
	cin >> a >> b;
	cout << a^b << endl;
}

int main(){
	std::cin.tie(0);
	std::ios::sync_with_stdio(false);
	int t = 1;
	//cin >> t;
	while(t--){
		solve();
	}
	
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:22:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   22 |         cout << a^b << endl;
      |                   ~~^~~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <utility>
#include <cmath>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <numeric>
#include <functional>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll>> vvl;
typedef pair<ll, ll> P;
#define rep(i, n) for(ll i = 0; i < n; i++)
#define exrep(i, a, b) for(ll i = a; i <= b; i++)
#define out(x) cout << x << endl
#define exout(x) printf("%.10f\n", x)
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define pb push_back
#define re0 return 0
const ll mod = 1000000007;
const ll INF = 1e16;
const ll MAX_N = 100010;
 
int main() {
    ll a, b;
    cin >> a >> b;
    out(a^b);
    re0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:26: error: invalid operands of types 'll' {aka 'long long int'} and '<unresolved overloaded function type>' to binary 'operator<<'
   20 | #define out(x) cout << x << endl
      |                          ^
a.cc:35:5: note: in expansion of macro 'out'
   35 |     out(a^b);
      |     ^~~
Language: C

#include<stdio.h>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
if((a==1&&b==2)||(a==2&&b==1){
printf("2\n");
}
else if((a==1&&b==3)||(a==3&&b==1)){
printf("2\n);
}
else if((a=2&&b==3)||(a==3&&b==2))
{
printf("1\n);
}
}

Compiler output:
main.c: In function 'main':
main.c:6:30: error: expected ')' before '{' token
    6 | if((a==1&&b==2)||(a==2&&b==1){
      |   ~                          ^
      |                              )
main.c:10:8: warning: missing terminating " character
   10 | printf("2\n);
      |        ^
main.c:10:8: error: missing terminating " character
   10 | printf("2\n);
      |        ^~~~~~
main.c:14:8: warning: missing terminating " character
   14 | printf("1\n);
      |        ^
main.c:14:8: error: missing terminating " character
   14 | printf("1\n);
      |        ^~~~~~
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define Rep(i,s,n) for(int i=s;i<n;i++)
typedef long long int ll;
typedef pair<int, int> P;
typedef long double ld;
void ans(bool x){if(x) cout<<"Yes"<<endl;else cout<<"No"<<endl;}

const ll INF=1001001001;

int main(){
  int a,b;cin>>a>>b;
  if(a!=1 && b!=1){
    cout<<1<<endl;
  }
  
  if(a!=2 && b!=2){
    cout<<2<<endl;
  }
  
  if(a!=3 && b!=3){
    cout<<3<<endl;
  }

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

#include<bits/stdc++.h>

#define EB emplace_back
#define int long long
#define F first
#define S second
#define N 100005
#define ALL(x) x.begin(),x.end()
#define endl '\n'
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)


using namespace std;


int32_t main()
{
    IOS;

    int tt=1;
    //cin>>tt;
    while(tt--)
    {
		map<int,int> mp;
      	mp[1] = 1;
      	mp[2] = 2;
      	mp[3] = 3;
      	int a,b; cin>>a>>b;
        mp[a] = 0;
      	mp[b] = 0;
      	auto it = mp.begin();
      	cout<<*it.S;
    }
    return 0;

}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:6:11: error: 'struct std::_Rb_tree_iterator<std::pair<const long long int, long long int> >' has no member named 'second'
    6 | #define S second
      |           ^~~~~~
a.cc:32:19: note: in expansion of macro 'S'
   32 |         cout<<*it.S;
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int A, B;
  cin A >> B;
  A += B;
  cout << 6 - A << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
    6 |   cin A >> B;
      |      ^~
      |      ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define F first
#define S second
//-std=c++11
#define print(x) printf("%.12f",x);
#define sz(x) (int)x.size()
#define all(x) (x).begin(), (x).end()
#define Red ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define rep(i, n) for(int i =0 ; i < n; ++i)
#define repr(i, n) for(int i=n-1;i>=0;i--)
#define Rep(i,a,b) for(int i=a;i<=b;i++)
#define Repr(i,a,b) for(int i=a;i>=b;i--)
#define pii pair < int, int >
#define iter ::iterator
#define forit(a) for(it=a.begin();it!=a.end();it++)
typedef vector<int> vi;
typedef  long long ll;
const int inf = int(1e9);
const int mod = 998244353;
const int N = (int)2e5 + 5;



int used[4];

void solve(){
	int a,b;
	cin>>a>>b;
	used[a]=1;
	used[b]=1;
	for(i=1;i<4;i++){
		if(!used[i]){
			cout<<i;
		}
	}

}


int main(){
	Red;
	int t=1;
	//cin>>t;
	while(t--)
	solve();
	return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:34:13: error: 'i' was not declared in this scope
   34 |         for(i=1;i<4;i++){
      |             ^
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
int a,b;
  cin>>a>>b;
  cout><<6-a-b<<endl;
  
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected primary-expression before '<<' token
    9 |   cout><<6-a-b<<endl;
      |        ^~
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
int a,b;
  cin>>a>>b;
  if(a*b==2) cout<<3<<endl;
    if(a*b==3) cout<<2<<endl;
    if(a*b==6) cout<<1<<endl;
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected '}' at end of input
   11 |     if(a*b==6) cout<<1<<endl;
      |                              ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

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

int main(){
  	int a.b;
  cin>>a>>b;
  cout<<6-a-b<<endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected initializer before '.' token
    9 |         int a.b;
      |              ^
a.cc:10:8: error: 'a' was not declared in this scope
   10 |   cin>>a>>b;
      |        ^
a.cc:10:11: error: 'b' was not declared in this scope; did you mean 'pb'?
   10 |   cin>>a>>b;
      |           ^
      |           pb
Language: C++

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

int main() {
    int a, b;
    cin >> a >> b;
    cout << 6 - a - b << endl;
    return 0
};

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

#include<iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
int Max = 1000000;
int main(){
	int a, b:
  	cin >> a >> b;

  	for(int i=1;i<=3;i++){
  		if(i!=a && i!=b) cout << i <<endl;
  	}

    
  	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: found ':' in nested-name-specifier, expected '::'
   11 |         int a, b:
      |                 ^
      |                 ::
a.cc:11:16: error: 'b' has not been declared
   11 |         int a, b:
      |                ^
a.cc:12:13: error: qualified-id in declaration before '>>' token
   12 |         cin >> a >> b;
      |             ^~
a.cc:15:31: error: 'b' was not declared in this scope
   15 |                 if(i!=a && i!=b) cout << i <<endl;
      |                               ^
Language: Java

import java.util.*;
public class Main {
    /**
     * @param args
     */
    public static void main(final String[] args) {
          
        //入力の例
        Scanner sc = new Scanner(System.in);
        final String aStrA = sc.next();
        final String aStrB = sc.next();

	aSum = Integer.parseInt(aStrA) + Integer.parseInt(aStrB);

	int aSum;

	if(aSum == 3) aSum = 3;
	else if(aSum == 4) aSum = 2;
	else if(aSum == 5) aSum = 1;
	else return;
        //出力の例
        System.out.println(aSum);

    }
}




Compiler output:
Main.java:13: error: cannot find symbol
	aSum = Integer.parseInt(aStrA) + Integer.parseInt(aStrB);
	^
  symbol:   variable aSum
  location: class Main
1 error
Language: C++

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

int main (){
int A,B;
  cin >> A;
  cin >> B;
  if(A == "1" && B == "3" || A == "3" && B == "1")
    cout << "2" << endl;
if(A == "1" && B == "2" || A == "2" && B == "1")
    cout << "3" << endl;
  if(A == "2" && B == "3" || A == "3" && B == "2")
    cout << "1" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(A == "1" && B == "3" || A == "3" && B == "1")
      |      ~~^~~~~~
a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(A == "1" && B == "3" || A == "3" && B == "1")
      |                  ~~^~~~~~
a.cc:8:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(A == "1" && B == "3" || A == "3" && B == "1")
      |                              ~~^~~~~~
a.cc:8:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(A == "1" && B == "3" || A == "3" && B == "1")
      |                                          ~~^~~~~~
a.cc:10:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 | if(A == "1" && B == "2" || A == "2" && B == "1")
      |    ~~^~~~~~
a.cc:10:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 | if(A == "1" && B == "2" || A == "2" && B == "1")
      |                ~~^~~~~~
a.cc:10:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 | if(A == "1" && B == "2" || A == "2" && B == "1")
      |                            ~~^~~~~~
a.cc:10:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 | if(A == "1" && B == "2" || A == "2" && B == "1")
      |                                        ~~^~~~~~
a.cc:12:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(A == "2" && B == "3" || A == "3" && B == "2")
      |      ~~^~~~~~
a.cc:12:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(A == "2" && B == "3" || A == "3" && B == "2")
      |                  ~~^~~~~~
a.cc:12:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(A == "2" && B == "3" || A == "3" && B == "2")
      |                              ~~^~~~~~
a.cc:12:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(A == "2" && B == "3" || A == "3" && B == "2")
      |                                          ~~^~~~~~
Language: Java

import java.util.*;
public class Main {
    /**
     * @param args
     */
    public static void main(final String[] args) {
          
        //入力の例
        Scanner sc = new Scanner(System.in);
        final String aStrA = sc.next();
        final String aStrB = sc.next();

	aSum = Integer.parseInt(aStrA) + Integer.parseInt(aStrB);

	int aSum;

	if(aSum == 3) aSum = 3;
	else if(aSum == 4) aSum = 2;
	else if(aSum == 5) aSum = 1;
	else aSum = 0;
        //出力の例
        System.out.println(aSum);

    }
}




Compiler output:
Main.java:13: error: cannot find symbol
	aSum = Integer.parseInt(aStrA) + Integer.parseInt(aStrB);
	^
  symbol:   variable aSum
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main {
    /**
     * @param args
     */
    public static void main(final String[] args) {
          
        //入力の例
        Scanner sc = new Scanner(System.in);
        final String aStrA = sc.next();
        final String aStrB = sc.next();

	aSum = Integer.parseInt(aStrA) + Integer.parseInt(aStrB);

	int aSum;

	if(aSum == 3) aSum = 3;
	else if(aSum == 4) aSum = 2;
	else if(aSum == 5) aSum = 1;
	else aOut = 0;
        //出力の例
        System.out.println(aSum);

    }
}

Compiler output:
Main.java:13: error: cannot find symbol
	aSum = Integer.parseInt(aStrA) + Integer.parseInt(aStrB);
	^
  symbol:   variable aSum
  location: class Main
Main.java:20: error: cannot find symbol
	else aOut = 0;
	     ^
  symbol:   variable aOut
  location: class Main
2 errors
Language: Java

import java.util.*;
public class Main {
    /**
     * @param args
     */
    public static void main(final String[] args) {
          
        //入力の例
        Scanner sc = new Scanner(System.in);
        final String aStrA = sc.next();
        final String aStrB = sc.next();

	aSum = Integer.parseInt(aStrA) + Integer.parseInt(aStrB);

	int aSum;

	if(aSum == 3) aOut = 3;
	else if(aSum == 4) aOut = 2;
	else if(aSum == 5) aOut = 1;
	else aOut = 0;
        //出力の例
        System.out.println(aSum);

    }
}

Compiler output:
Main.java:13: error: cannot find symbol
	aSum = Integer.parseInt(aStrA) + Integer.parseInt(aStrB);
	^
  symbol:   variable aSum
  location: class Main
Main.java:17: error: cannot find symbol
	if(aSum == 3) aOut = 3;
	              ^
  symbol:   variable aOut
  location: class Main
Main.java:18: error: cannot find symbol
	else if(aSum == 4) aOut = 2;
	                   ^
  symbol:   variable aOut
  location: class Main
Main.java:19: error: cannot find symbol
	else if(aSum == 5) aOut = 1;
	                   ^
  symbol:   variable aOut
  location: class Main
Main.java:20: error: cannot find symbol
	else aOut = 0;
	     ^
  symbol:   variable aOut
  location: class Main
5 errors
Language: Java

import java.util.*;
public class Main {
    /**
     * @param args
     */
    public static void main(final String[] args) {
          
        //入力の例
        Scanner sc = new Scanner(System.in);
        final int aStrA = sc.next();
        final int aStrB = sc.next();

	aSum = aStrA + aStrB;

	int aOut;

	if(aSum == 3) aOut = 3;
	else if(aSum == 4) aOut = 2;
	else if(aSum == 5) aOut = 1;
	else aOut = 0;
        //出力の例
        System.out.println(aOut);

    }
}

Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to int
        final int aStrA = sc.next();
                                 ^
Main.java:11: error: incompatible types: String cannot be converted to int
        final int aStrB = sc.next();
                                 ^
Main.java:13: error: cannot find symbol
	aSum = aStrA + aStrB;
	^
  symbol:   variable aSum
  location: class Main
Main.java:17: error: cannot find symbol
	if(aSum == 3) aOut = 3;
	   ^
  symbol:   variable aSum
  location: class Main
Main.java:18: error: cannot find symbol
	else if(aSum == 4) aOut = 2;
	        ^
  symbol:   variable aSum
  location: class Main
Main.java:19: error: cannot find symbol
	else if(aSum == 5) aOut = 1;
	        ^
  symbol:   variable aSum
  location: class Main
6 errors
Language: Java

import java.util.*;
public class Main {
    /**
     * @param args
     */
    public static void main(final String[] args) {
          
        //入力の例
        Scanner sc = new Scanner(System.in);
        final int aStrA = sc.next();
        final int aStrB = sc.next();

	aSum = aStrA + aStrB;

	int aOut;

	if(aSum = 3) aOut = 3;
	if(aSum = 4) aOut = 2;
	if(aSum = 5) aOut = 1;

        //出力の例
        System.out.println(aOut);

	

    }
}

Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to int
        final int aStrA = sc.next();
                                 ^
Main.java:11: error: incompatible types: String cannot be converted to int
        final int aStrB = sc.next();
                                 ^
Main.java:13: error: cannot find symbol
	aSum = aStrA + aStrB;
	^
  symbol:   variable aSum
  location: class Main
Main.java:17: error: cannot find symbol
	if(aSum = 3) aOut = 3;
	   ^
  symbol:   variable aSum
  location: class Main
Main.java:18: error: cannot find symbol
	if(aSum = 4) aOut = 2;
	   ^
  symbol:   variable aSum
  location: class Main
Main.java:19: error: cannot find symbol
	if(aSum = 5) aOut = 1;
	   ^
  symbol:   variable aSum
  location: class Main
6 errors
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
  vector<int> vec1(2);
  vector<int> vec2(3);
  vec2 = {1,2,3}
  for (int i = 0; i < 2 i++) {
    cin << vec.at(i);
  }
  sort(vec1.begin(), vec2.end() );
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before 'for'
    8 |   vec2 = {1,2,3}
      |                 ^
      |                 ;
    9 |   for (int i = 0; i < 2 i++) {
      |   ~~~            
a.cc:9:19: error: 'i' was not declared in this scope
    9 |   for (int i = 0; i < 2 i++) {
      |                   ^
a.cc: At global scope:
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: Java

package me.awataki;

import java.util.Scanner;

public class P41 {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        boolean[] arr = {true, true, true};
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        arr[a] = false;
        arr[b] = false;
        int i = 0;
        for (boolean v : arr) {
            if (v){
                i++;
                System.out.println(i);
                return;
            }
            i++;
        }
    }
}


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

package me.awataki;

import java.util.Scanner;

public class P41 {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        boolean[] arr = {true, true, true};
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        arr[a] = false;
        arr[b] = false;
        int i = 0;
        for (var v : arr) {
            if (v){
                i++;
                System.out.println(i);
                return;
            }
            i++;
        }
    }
}


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

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int a, b;
  cin >> a >> b;
  if(a>b){
    swap(a, b)
  }
  if(a == 1){
    if(b == 2) cout << 3;
    else cout << 2;
  }else if(a==2) cout << 1;
  cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before '}' token
    8 |     swap(a, b)
      |               ^
      |               ;
    9 |   }
      |   ~
Language: C++

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

int main(){
  int A,B;
  cin>>A>>B;
  ans=6-A-B;
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans=6-A-B;
      |   ^~~
      |   abs
Language: C++

#include<bits/stdc++.h>
using namespece std;
int main()
{
  int a, b;
  cin >> a >> b;
  int ans = 6-(a+b);
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespece'
    2 | using namespece std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << ans << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespece std;
int main()
{
  int a, b;
  cin >> a >> b;
  cout << 6-(a+b) << endl;
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespece'
    2 | using namespece std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << 6-(a+b) << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << 6-(a+b) << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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


int main() {
  int A,B;
  cin>>A>>B;
  
  if((A==1&&B==2)||(A==2&&B==1))
    cout<<3<<endl;;
  else if((A==1&&B==3)||(A=3&&B==1))
    cout<<2<<endl;
  else
    cout<<1<<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else if((A==1&&B==3)||(A=3&&B==1))
      |   ^~~~
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = 123;
    String a = sc.next();
    String b = sc.next();
    String str1 = str.replace(a,"").replace(b,"");
    System.out.println(str1);
  }
}

Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to String
    String str = 123;
                 ^
1 error
Language: C++

//author:luckYrat(twitter:@luckYrat_)
//#include <bits/stdc++.h>

//def
#include <iostream>

#include <cmath>
#include <algorithm>
#include <iomanip>

//array
#include <vector>
#include <set>
#include <stack>
#include <queue>
#include <map>
#include <utility>
#include <climits>



using namespace std;

using ll = long long;
using P = pair<ll,ll>;

#define anyfill(n,s) setw(n) << setfill(s)
#define loop(s) for(int i = 0; s > i; i++)
#define rep(i,q) for(int i = 0; (q) > i; i++)
#define repp(i,n,q) for(int i = n; (q) > i; i++)
#define dep(i,q) for(int i = (q); 0 < i; i--)


#define MAX 1000000000
const int mod = 1000000007;
#define EPS (1e-10)

#define pb push_back
#define fir first
#define scn second
#define ednl endl

#define YesNo(a) (a?"Yes":"No")
#define YESNO(a) (a?"YES":"NO")
#define yesno(a) (a?"yes":"no")


P ar4[4] = {{0,1},{0,-1},{1,0},{-1,0}};
P ar8[8] = {{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1}};
/*
確認ポイント
cout << fixed << setprecision(n) << 小数計算//n桁の小数表記になる
vector.unique()は隣接した同じ要素を削除するので先にソートをする

計算量は変わらないが楽できるシリーズ
C++11以降でmin({a,b,c...})で複数個のmic,maxを処理できる
min(max)_element(iter,iter)で一番小さい(大きい)値のポインタが帰ってくる
count(iter,iter,int)でintがiterからiterの間にいくつあったかを取得できる

*/
__attribute__((constructor))
void initial() {
 cin.tie(0);
 ios::sync_with_stdio(false);
}



int main(){
  
  int a,b;cin>>a>>b;
  cout << 6-a-b < <endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:72:19: error: expected primary-expression before '<' token
   72 |   cout << 6-a-b < <endl;
      |                   ^
Language: C++

# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
A= int(input())
B= int(input())


if A!=1 and B!=1:
    print("1")
elif  A!=2 and B!=2:
    print("2")
else:
    print("3")

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:2:3: error: invalid preprocessing directive #\U000030b9\U000030da\U000030fc\U000030b9\U0000533a\U00005207\U0000308a\U0000306e\U00006574\U00006570\U0000306e\U00005165\U0000529b
    2 | # スペース区切りの整数の入力
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:3:1: error: 'A' does not name a type
    3 | A= int(input())
      | ^
Language: C++

#include <iostream>

using namespace std;

int main() {
  vector<int> vs(2);
  cin >> vs[0] >> vs[1];
  sort(vs.begin(), vs.end());

  if (vs[0] == 2) {
    cout << 1 << endl;
  } else if (vs[1] == 2) {
    cout << 3 << endl;
  } else {
    cout << 2 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> vs(2);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | 
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> vs(2);
      |          ^~~
a.cc:7:10: error: 'vs' was not declared in this scope
    7 |   cin >> vs[0] >> vs[1];
      |          ^~
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |   sort(vs.begin(), vs.end());
      |   ^~~~
      |   short
Language: C++

#include <stdio.h>
#include <string>
#include <stdlib.h>
#include<vector>
#include<iostream>
#include<set>
#include<map>
#include<algorithm>
using namespace std;




int main() {
	int a,b
	cin >> a >> b;
	int data[3] = {0};
	data[a] = 1;
	data[b] = 1;
	
	for(int i=0;i<3;++i){
		if(data[i]==0) cout << i+1 <<endl;
	}
	
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: expected initializer before 'cin'
   16 |         cin >> a >> b;
      |         ^~~
a.cc:19:14: error: 'b' was not declared in this scope
   19 |         data[b] = 1;
      |              ^
Language: C

#include<stdio.h>
main()
{
    int A,B;
    scanf("%d %d"&A,&B);
    if(A,B)
    {
        printf("The correct choice");
    }
    else{
        printf("the not correct choice")
    }
    return 0;
}


Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:5:18: error: invalid operands to binary & (have 'char *' and 'int')
    5 |     scanf("%d %d"&A,&B);
      |           ~~~~~~~^
      |           |
      |           char *
main.c:11:41: error: expected ';' before '}' token
   11 |         printf("the not correct choice")
      |                                         ^
      |                                         ;
   12 |     }
      |     ~
Language: C++

#include<stdio.h>
int main()
{
    int A,B,C;
    scanf("%d %d %d",&A,&B,&C);
    printf("%d",C);
    return 0;





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

#include <bits/stdc++.h>
using namespace std;
int main()
{
    long double div,num,num_1,n,mini,maxi,;
    long long int var;
    cin>>num;cin>>num_1;
    maxi=max(num_1,num);mini=min(num_1,num);
    div=(maxi)/(mini);
    while(1)
    {
        static int i=1,n_1;
        n=(div*i);
        n_1=(div*i);
        if(n-n_1==0)
        {
        if((i*maxi)-(mini*n_1)==0)
        {
            var=(mini*n_1);
            cout<<var<<endl;
            return 0;
        }
        }
        i+=1;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:43: error: expected unqualified-id before ';' token
    5 |     long double div,num,num_1,n,mini,maxi,;
      |                                           ^
Language: C++

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

int main(){
  int a[2];
  cin >> a[0] >> a[1];
  sort(a.begin(), a.end());
  if(a[0] == 2)
    cout << '1' << endl;
  else if(a[1] == 2)
    cout << '3' << endl;
  else
    cout << '2' << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: request for member 'begin' in 'a', which is of non-class type 'int [2]'
    7 |   sort(a.begin(), a.end());
      |          ^~~~~
a.cc:7:21: error: request for member 'end' in 'a', which is of non-class type 'int [2]'
    7 |   sort(a.begin(), a.end());
      |                     ^~~