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

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, n) for(int i = 0; i < n; i++)
#define all(a) a.begin(), a.end()
#define P pair<int, int>
#define F first
#define S second
#define mod 1000000007
#define INF 4000000000000000000
int dx8[8]={-1,0,1,1,1,0,-1,-1};
int dy8[8]={1,1,1,0,-1,-1,-1,0};
int dx4[4]={-1,0,1,0};
int dy4[4]={0,-1,0,1};
int gcd(int a,int b){
    if(b==0)return a;
    return gcd(b,a%b);
}
int uni[100010];
int root(int a){
    if(uni[a]<0)return a;
    return uni[a]=root(uni[a]); 
}
bool connect(int a,int b){
    a=root(a);
    b=root(b);
    if(a==b)return false;
    if(uni[a]>uni[b]){
        swap(a,b);
    }
    uni[a]=uni[a]+uni[b];
    uni[b]=a;
    return true;
}
signed main(void){
    int a,b;cin>>a>>b;cout<<a^b<<endl;
}
        


Compiler output:
a.cc: In function 'int main()':
a.cc:36:32: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<'
   36 |     int a,b;cin>>a>>b;cout<<a^b<<endl;
      |                               ~^~~~~~
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;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected primary-expression before '||' token
    7 |   if ((a==1 && b==2))||(a==2 && b==1)){
      |                      ^~
a.cc:10:27: error: expected primary-expression before '||' token
   10 |   else if ((a==1 && b==3))||(a==3 && b==1)){
      |                           ^~
Language: Java

import java.util.*;
import java.util.Collections;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int ans = 6 - A - B;
    System.out.println(ans);
  }
  }
}


Compiler output:
Main.java:13: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

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

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

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

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

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

import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
public class atcodervc11 {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();

    if(a == 1 && b == 2){
        System.out.println(3);
    }else if(a == 1 && b == 3){
        System.out.println(2);
    }else if(a == 2 && b == 1){
        System.out.println(3);
    }else if(a == 2 && b == 3){
        System.out.println(1);
    }else if(a == 3 && b == 1){
        System.out.println(2);
    }else{
        System.out.println(1);
    }

        
    
	}
}

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

#include<stdio.h>

int main(void)
{
  int A,B,C;
  int MIZUNO;
  scanf("%d",&A);
  scanf("%d",&B);
  
  MIZUNO = A+B;
  swich(MIZUNO)
  {
    case 5:
    C = 1;
    break;
    
    case 4:
    C = 2;
    break;
    
    case 3:
    C = 3:
    break;
  }
  
  printf("%d",C);
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:11:3: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration]
   11 |   swich(MIZUNO)
      |   ^~~~~
main.c:11:16: error: expected ';' before '{' token
   11 |   swich(MIZUNO)
      |                ^
      |                ;
   12 |   {
      |   ~
Language: C++

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

int main(){
    int A,B;
    cin >> A >> B;
    if(A == 1){
        if(B == 2){
            cout << "3" << endl;
        }
        else cout << "2" << endl;
    }
    else if(A == 2){
        if(B == 1){
            cout << "3" << endl;
        }
        else cout << "1" << endl;
    }
    else if(A == 3){
        if(B == 1)[
            cout << "2" << endl;
        ]
        else cout << "1" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: warning: capture of variable 'std::cout' with non-automatic storage duration
   21 |             cout << "2" << endl;
      |             ^~~~
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:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:21:17: error: expected ',' before '<<' token
   21 |             cout << "2" << endl;
      |                 ^~~
      |                 ,
a.cc:21:18: error: expected identifier before '<<' token
   21 |             cout << "2" << endl;
      |                  ^~
a.cc:21:32: error: expected ']' before ';' token
   21 |             cout << "2" << endl;
      |                                ^
      |                                ]
a.cc: In lambda function:
a.cc:21:32: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:22:9: error: expected primary-expression before ']' token
   22 |         ]
      |         ^
Language: C++

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: lvalue required as left operand of assignment
    9 |   if(A = 1 && B = 2){
      |          ~~^~~~
a.cc:12:17: error: lvalue required as left operand of assignment
   12 |   else if(A = 2 && B = 1){
      |               ~~^~~~
a.cc:15:17: error: lvalue required as left operand of assignment
   15 |   else if(A = 1 && B = 3){
      |               ~~^~~~
a.cc:18:17: error: lvalue required as left operand of assignment
   18 |   else if(A = 3 && B = 1){
      |               ~~^~~~
a.cc:21:17: error: lvalue required as left operand of assignment
   21 |   else if(A = 2 && B = 3){
      |               ~~^~~~
a.cc:24:17: error: lvalue required as left operand of assignment
   24 |   else if(A = 3 && B = 2){
      |               ~~^~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <cmath>
#include <string>
#include <cstring>
#include <vector>
#include <numeric>

#define roop(i, start, end) for(int i=start;i<end;i++)

using namespace std;
using ll = long long int;
using ull = unsigned long long;

float myPower(int a, int n) { // aのn乗の計算
	float x = 1;
	while (n > 0) { // 全てのbitが捨てられるまで
		if ( n & 1) { // 一番右のbitが１のとき
			x *= a;
		}
		a *= a;
		n >>= 1; // bit全体を右に1つシフトして一番右を捨てる
	}
	return x;
}
int fact(int in) {
	int ans = 1;
	if (in > 1) {
		for (int i = 1; i <= in; i++) {
			ans *= i;
		}
	}
	return ans;
}

struct CharaTable {
	char inChar[1];
	int count;
};

int main() {
	int n, i, j, k, m;
	cin >> n;
	string inputString;
	roop(i, 0, n) {
		int down = 1;
		getline(cin, inputString);
		int length = (int)(inputString.length());
		vector<CharaTable> v(length);
		int flag = 0;
		roop(j, 0, length) {
			for (k = 0; k < v.size(); k++) {
				cout << typeof(inputString[j]) << endl;
				// if (inputString[j] == v[k].inChar) {
				// 	v[k].count++;
				// 	flag = 1;
				// 	break;
				// }
			}
			if (flag == 0) {
				v.push_back({inputString[j], 1});
			}
		}
		for (m = 0; m < v.size(); m++) {
			down *= fact(v[m].count);
		}
		cout << fact(inputString.length()) / down << endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:41: error: expected primary-expression before 'typeof'
   56 |                                 cout << typeof(inputString[j]) << endl;
      |                                         ^~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <cmath>
#include <string>
#include <cstring>
#include <vector>
#include <numeric>

#define roop(i, start, end) for(int i=start;i<end;i++)

using namespace std;
using ll = long long int;
using ull = unsigned long long;

float myPower(int a, int n) { // aのn乗の計算
	float x = 1;
	while (n > 0) { // 全てのbitが捨てられるまで
		if ( n & 1) { // 一番右のbitが１のとき
			x *= a;
		}
		a *= a;
		n >>= 1; // bit全体を右に1つシフトして一番右を捨てる
	}
	return x;
}
int fact(int in) {
	int ans = 1;
	if (in > 1) {
		for (int i = 1; i <= in; i++) {
			ans *= i;
		}
	}
	return ans;
}

struct CharaTable {
	char in[1];
	int count;
};

int main() {
	int n, i, j, k, m;
	cin >> n;
	string inputString;
	roop(i, 0, n) {
		int down = 1;
		getline(cin, inputString);
		int length = (int)(inputString.length());
		CharaTable table[length];
		int flag = 0;
		roop(j, 0, length) {
			for (k = 0; table[k].in != '\0'; k++) {
				if (inputString[j] == table[k].in) {
					table[k].count++;
					flag = 1;
					break;
				}
			}
			if (flag == 0) {
				table[tableLength].in = inputString[j];
				table[tableLength].count = 1;
			}
		}
		for (m = 0; table[m].in != '\0'; m++) {
			down *= fact(table[m].count);
		}
		cout << fact(inputString.length()) / down << endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:55:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   55 |                         for (k = 0; table[k].in != '\0'; k++) {
      |                                     ~~~~~~~~~~~~^~~~~~~
a.cc:56:52: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   56 |                                 if (inputString[j] == table[k].in) {
a.cc:63:39: error: 'tableLength' was not declared in this scope
   63 |                                 table[tableLength].in = inputString[j];
      |                                       ^~~~~~~~~~~
a.cc:67:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   67 |                 for (m = 0; table[m].in != '\0'; m++) {
      |                             ~~~~~~~~~~~~^~~~~~~
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    long a = sc.nextLong();
    long b = sc.nextLong();  
    long x = a * b;
    rong = r;
    
  if(a<b){
    long tmp = a;
    a = b;
    b = tmp;
  }
 
  /* ユークリッドの互除法 */
  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
    
    System.out.println(x/b);
    
  }
}


Compiler output:
Main.java:8: error: cannot find symbol
    rong = r;
    ^
  symbol:   variable rong
  location: class Main
Main.java:8: error: cannot find symbol
    rong = r;
           ^
  symbol:   variable r
  location: class Main
Main.java:17: error: cannot find symbol
  r = a % b;
  ^
  symbol:   variable r
  location: class Main
Main.java:18: error: cannot find symbol
  while(r!=0){
        ^
  symbol:   variable r
  location: class Main
Main.java:20: error: cannot find symbol
    b = r;
        ^
  symbol:   variable r
  location: class Main
Main.java:21: error: cannot find symbol
    r = a % b;
    ^
  symbol:   variable r
  location: class Main
6 errors
Language: Java

package com.company;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scan = new Scanner(System.in);
        int a=scan.nextInt()
        int b=scan.nextInt();
        System.out.println(6-a-b);
    }
}


Compiler output:
Main.java:10: error: ';' expected
        int a=scan.nextInt()
                            ^
1 error
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'b' was not declared in this scope
    8 |   cout << 6-N-b-B <<endl;
      |               ^
Language: C++

#include <iostream>
#include <iomanip>
#include <bits/stdc++.h>
#include <vector>
#include <iterator>
#include <string>
#define pan(i,n) for(int i=0;i<n;i++)
#define ll long long int
#define vi vector<int>
#define pb push_back
using namespace std;
 

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: expected primary-expression before '==' token
   18 |     else if(a(==1 && b==3) || (a==3 && b==1)) cout<<2;
      |               ^~
a.cc:18:26: error: 'a' cannot be used as a function
   18 |     else if(a(==1 && b==3) || (a==3 && b==1)) cout<<2;
      |                          ^
Language: Java

import java.util.*;
class Main{
	public static void main(String[]args){
    	Scanner in = new Scanner(System.in);
      	int x = in.nextInt(), y = in.nextInt(), z;	
      	if(x==1&&y==2||x==2&&y==1)
          z = 3;
        else if(x==2&&y==3||x==3&&y==2)
       	  z = 1;
      	else if(x==3&&y==1||x==1&&y==3)
          z = 2;
      	System.out.println(z);
    }
}

Compiler output:
Main.java:12: error: variable z might not have been initialized
      	System.out.println(z);
      	                   ^
1 error
Language: Java


import java.util.Scanner;

public class A {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		System.out.println(6 - a - b);
	}

}


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

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

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

Compiler output:
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;
      |   ^~~
      |   std::cin
In file included 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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<3;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout<<2;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     cout<<1;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include<stdio.h.>
main()
    {
        int A,B,C;
       scanf("%d%d%d",&A,&B,&C);
       if(A!=B){
        printf("%d",C);
       }



       return 0;



}


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

#include<iostream>
using namespace std;
int main(){
  int a, b;
  cin >> a >> b;
  cout << 6 - (a + b) << endl;
  reuturn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'reuturn' was not declared in this scope
    7 |   reuturn 0;
      |   ^~~~~~~
Language: C++

#incllude<iostream>
using namespace std;
int main(){
  int a, b;
  cin >> a >> b;
  cout << 6 - (a + b) << endl;
  reuturn 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incllude; did you mean #include?
    1 | #incllude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> a >> b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incllude<iostream>
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << 6 - (a + b) << endl;
      |   ^~~~
a.cc:6:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:26: error: 'endl' was not declared in this scope
    6 |   cout << 6 - (a + b) << endl;
      |                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incllude<iostream>
a.cc:7:3: error: 'reuturn' was not declared in this scope
    7 |   reuturn 0;
      |   ^~~~~~~
Language: C++

#include <bits/stdc++.h>
#define log(x) cerr<<x<<endl
#define pb push_back
#define rep(i,n) for(int i = 0;i < n;++i)
using namespace std;

int main() {
    int a,b;
    cin >> a;cin >> b;
    if(a==1&&b==2)log(3);
    if(a==1&&b==3)log(2);
    if(a==2&&b==3)log(1));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: expected ';' before ')' token
   12 |     if(a==2&&b==3)log(1));
      |                         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define pb emplace_back
#define mp make_pair
#define f(i,a,n) for(int i=a ; i<n ; i++)
#define F first
#define S second
#define vll vector<ll>
#define fast ios:: sync_with_stdio(false),cin.tie(0);
#define COUT cout<<fixed<<setprecision(12)
#define SET set<ll,greater<ll>>gquiz
#define ITERATOR set<ll,greater<ll>> :: iterator itr
#define V vector<ll>vector
#define sz size()
#define A vector<pair<ll,ll>>vect
ll N=100000,M=100000;
#define B vect.push_back(make_pair(N,M));
ll MOD=1000000007;
 
void solve()
{
	ll a,b;
	cin>>a>>b;
	ll c[3]=0;
	c[a-1]++;
	c[b-1]++;
	if(c[0]==0)
	cout<<1;
	if(c[1]==0)
	cout<<2;
	else
	cout<<3;
}
int main()
{
	solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:26:17: error: array must be initialized with a brace-enclosed initializer
   26 |         ll c[3]=0;
      |                 ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:1: error: expected '}' before 'else'
    9 | else if(a==2&&b==3){
      | ^~~~
main.c:13:2: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   13 | {print("2\n")}
      |  ^~~~~
      |  printf
main.c:13:14: error: expected ';' before '}' token
   13 | {print("2\n")}
      |              ^
      |              ;
Language: C

#include <stdio.h>
int main()
{
    int A, B;
    scanf("%d\n%d", &A, &B);

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

        }


Compiler output:
main.c: In function 'main':
main.c:11:27: error: expected ';' before 'printf'
   11 |         else(A==3 && B==1)
      |                           ^
      |                           ;
   12 |         printf("2\n");
      |         ~~~~~~
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("3");
else if((A==1&&B==3) || (A==3&&B==1))
    printf("2");

else((A==2&&B==3) || (A==3&&B==2))
    printf("1");



return0;
}


Compiler output:
main.c: In function 'main':
main.c:11:35: error: expected ';' before 'printf'
   11 | else((A==2&&B==3) || (A==3&&B==2))
      |                                   ^
      |                                   ;
   12 |     printf("1");
      |     ~~~~~~                         
main.c:16:1: error: 'return0' undeclared (first use in this function)
   16 | return0;
      | ^~~~~~~
main.c:16:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
void main(){

int A,B;
scanf("%d %d",&A,&B);
if((A==1&&B==2) || (A==2&&B==1))
{
    printf("3");
}
else if((A==1&&B==3) || (A==3&&B==1))
 { 
  printf("2");
}
else((A==2&&B==3) || (A==3&&B==2))
 {
   printf("1");
}

}


Compiler output:
main.c: In function 'main':
main.c:14:35: error: expected ';' before '{' token
   14 | else((A==2&&B==3) || (A==3&&B==2))
      |                                   ^
      |                                   ;
   15 |  {
      |  ~
Language: C

#include<stdio.h>
void main(){

int A,B;
scanf("%d %d",&A,&B);
if((A==1&&B==2) || (A==2&&B==1))
    printf("3");
else if((A==1&&B==3) || (A==3&&B==1))
    printf("2");

else((A==2&&B==3) || (A==3&&B==2))
    printf("1");


}


Compiler output:
main.c: In function 'main':
main.c:11:35: error: expected ';' before 'printf'
   11 | else((A==2&&B==3) || (A==3&&B==2))
      |                                   ^
      |                                   ;
   12 |     printf("1");
      |     ~~~~~~
Language: C

#include<stdio.h>
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==1)
    {
        printf("2\n");
    }
    else if(A==3 && B==2)
    {
        printf("1\n");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:20:22: error: expected ';' before '}' token
   20 |         printf("1\n")
      |                      ^
      |                      ;
   21 |     }
      |     ~
Language: C++

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

int main(){
 	int A, B;
  	cin >> A >> B;
 	set<int> se{1,2,3};
  	se.erase(A);
  	se.erase(B);
  	int C = se.front();
  	cout << C << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'class std::set<int>' has no member named 'front'
   10 |         int C = se.front();
      |                    ^~~~~
Language: C++

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

int main(){
 	int A, B;
  	cin >> A >> B;
 	set<int> se{1,2,3};
  	se.erase(A);
  	se.erase(B);
  	int C = se.top();
  	cout << C << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'class std::set<int>' has no member named 'top'
   10 |         int C = se.top();
      |                    ^~~
Language: C

#include <stdio.h>

int main() {
    int a,b;
    printf("Enter the value of a and b:");
    scanf("%d%d",&a,&b);
    if(a!=1&&b!=1){
        printf("1");
    }
    else if(a!=2&&b!==2){
        printf("2");
    }
    else if(a!=3&&b!=3){
        printf("3");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:22: error: expected expression before '=' token
   10 |     else if(a!=2&&b!==2){
      |                      ^
Language: C

#include<stdio.h>
int main(){
int a=1,b=2,c=3,A,B;
scanf("%d%d",&A,&B);

if(a==A&&b==B){
    printf(c);
    }
else if(b==A&&c==B){
    printf(a);
    }
else if(a==A&&c==B){
    print(b);
    }
return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:7:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    7 |     printf(c);
      |            ^
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:10:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   10 |     printf(a);
      |            ^
      |            |
      |            int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:13:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   13 |     print(b);
      |     ^~~~~
      |     printf
Language: C

#include<stdio.h>
int main(){
int a=1,b=2,c=3,A,B;
scanf("%d%d%d",&A,&B);

if(a==A&&b==B){
    printf(c);
    }
else if(b==A&&c==B){
    printf(a);
    }
else if(a==A&&c==B){
    print(b);
    }
return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:7:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    7 |     printf(c);
      |            ^
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:10:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   10 |     printf(a);
      |            ^
      |            |
      |            int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:13:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   13 |     print(b);
      |     ^~~~~
      |     printf
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <vector>
#include <cmath>
#include <ios>
#include <iomanip>
#include <algorithm>
#define REP(i, n) for (int i = 0; i < (int)(n); ++i)
#define REP2(i, m, n) for (int i = (m); i < (int)(n); ++i)
#define REPR(i, n) for (int i = (n)-1; i >= 0; --i)
#define REPR2(i, m, n) for (int i = (n)-1; i >= (m); --i)
#define REPx(x, a) for(auto x : a)
#define ALL(a) a.begin(), a.end()
#define SORT(a) sort(ALL(a))
#define SORTR(a) sort(ALL(a), greater<int>())
#define REVERSE(a) reverse(ALL(a))
#define bit_search(bit, n) REP(bit, 1<<(n))
#define bit_check(bit, i) (bit>>(i)) & 1
#define setpre(n) fixed << setprecision((n))
#define UNIQUE(a) do {SORT(a); (a).erase(unique(ALL(a)), (a).end());} while(0)
#define MAX(a) *max_element(ALL(a))
#define MIN(a) *min_element(ALL(a))
#define bisect_left(a, x) lower_bound(ALL(a), (x)) - a.begin()
#define bisect_right(a, x) upper_bound(ALL(a), (x)) - a.begin()
#define INPUT(a) REP(i, a.size()) cin >> a[i];
#define INPUTP(a) REP(i, a.size()) cin >> a[i].first >> a[i].second;
#define ENDL cout << endl;
using namespace std;
using LL = long long;
using LD = long double;
using PII = pair<int, int>;
using VPII = vector<PII>;
using PLL = pair<LL, LL>;
using VPLL = vector<PLL>;
using VI = vector<int>;
using VVI = vector<VI>;
using VLL = vector<LL>;
using VVLL = vector<VLL>;
using VC = vector<char>;
using VS = vector<string>;
using VB = vector<bool>;
using VD = vector<double>;
const LL INF = 1e18;
const LL MOD = 1e9 + 7;

template<class T> inline bool chmin(T &a, T b){if (a > b) {a = b; return true;} return false;}
template<class T> inline bool chmax(T &a, T b){if (a < b) {a = b; return true;} return false;}

void END(){cout << 1 << endl; exit(0);}

int main()
{
  //cin.tie(0);
  //ios::sync_with_stdio(false);
  int a, b;
  cin >> a >> b;
  if (a != 1 %% b != 1) cout << 1 << endl;
  else if (a != 2 %% b != 2) cout << 2 << endl;
  else if (a != 3 %% b != 3) cout << 3 << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:58:15: error: expected primary-expression before '%' token
   58 |   if (a != 1 %% b != 1) cout << 1 << endl;
      |               ^
a.cc:59:20: error: expected primary-expression before '%' token
   59 |   else if (a != 2 %% b != 2) cout << 2 << endl;
      |                    ^
a.cc:60:20: error: expected primary-expression before '%' token
   60 |   else if (a != 3 %% b != 3) cout << 3 << endl;
      |                    ^
Language: C++

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

int main()
{
    int a, b, c;
    cin >> a >> b;
    num[4] = {0, 0, 0};
    num[a] = 1;
    num[b] = 1;

    for (int i = 1; i <= 3; i++) {
        if (!num[i]) {
            cout <<i << "\n";
            break;
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'num' was not declared in this scope; did you mean 'enum'?
    8 |     num[4] = {0, 0, 0};
      |     ^~~
      |     enum
Language: C++

import java.util.ArrayList

fun main(args: Array<String>) {
    val A = readLine()!!.toInt()
    val B = readLine()!!.toInt()
    var n = ArrayList<Int>()
    n.add(1);n.add(2);n.add(3)
    n.remove(A)
    n.remove(B)
    for(i in n){
        println(i)
    }
}

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'
Language: C++

fun main(args: Array<String>) {
    val A = readLine()!!.toInt()
    val B = readLine()!!.toInt()
    var n = ArrayList<Int>()
    n.add(1);n.add(2);n.add(3)
    n.remove(A)
    n.remove(B)
    for(i in n){
        println(i)
    }
}

Compiler output:
a.cc:1:1: error: 'fun' does not name a type
    1 | fun main(args: Array<String>) {
      | ^~~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:12:10: error: expected expression before ')' token
   12 |     else()
      |          ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'elseif' was not declared in this scope
    9 |   } elseif(A != 2 && B != 2) {
      |     ^~~~~~
a.cc:11:5: error: 'else' without a previous 'if'
   11 |   } else {
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(void) {
  int a,b;
  cin >> a >> b;

  cout << 6 - a - b << endl;}
  
  return 0;
}

Compiler output:
a.cc:10:3: error: expected unqualified-id before 'return'
   10 |   return 0;
      |   ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:11: error: expected ';' before '}' token
   12 |   return 0
      |           ^
      |           ;
   13 | }
      | ~
Language: C++

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

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

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:6: error: lvalue required as left operand of assignment
    7 | if(a + b = 3){
      |    ~~^~~
a.cc:9:11: error: lvalue required as left operand of assignment
    9 | else if(a + b = 4){
      |         ~~^~~
a.cc:12:11: error: expected ';' before '}' token
   12 |   return 0
      |           ^
      |           ;
   13 | }
      | ~
Language: C

#include<Stdio.h>
int main()
{
    int a,b,c,A,B;


    scanf("%d %d",&A,&B);
    if(A==1 && B==2)
    {
        printf("3");
    }
    if(A==2 && B==3)
    {
        printf("1");
    }
    if(A==1 && B==3)
    {
        printf("2");
    }
}


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

,>,,>

+++++
[>+++++ +++++<-]
>--
[>+>+<<-]>>[<<+>>-]
<<
[<<-<->>>-]
<<<
[>>+<<-]
>
[>+<-]
>
>> +++++ + <<
[>>-<<-]
>>.


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

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define int long long int
#define mod 1000000007
#define string_mod 2549536629329_base_255
#define pb push_back
#define F first
#define S second
#define ff first
#define endl "\n"
#define ss second
#define all(v) v.begin(), v.end()
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
int power(int x, unsigned int y, int p)
{
    int res = 1;
    x = x % p;
    //  cout << x << " ";
    while (y > 0)
    {

        if (y & 1)
            res = (res * x) % p;

        y = y >> 1;
        x = (x * x) % p;
    }
    return res % p;
}
int lcm(int a, int b)
{
    return (a * b) / __gcd(a, b);
}

int32_t main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int tc;
    cin >> tc;
    while (tc--)
    {
        int a, b;
        cin >> a >> b;
        for (int i = 1; i <= 3;i++){
            if(i!-a&&i!=b){
                cout << i << endl;
                break;
            }
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:51:17: error: expected ')' before '!' token
   51 |             if(i!-a&&i!=b){
      |               ~ ^
      |                 )
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define int long long int
#define mod 1000000007
#define string_mod 2549536629329_base_255
#define pb push_back
#define F first
#define S second
#define ff first
#define endl "\n"
#define ss second
#define all(v) v.begin(), v.end()
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
int power(int x, unsigned int y, int p)
{
    int res = 1;
    x = x % p;
    //  cout << x << " ";
    while (y > 0)
    {

        if (y & 1)
            res = (res * x) % p;

        y = y >> 1;
        x = (x * x) % p;
    }
    return res % p;
}
int lcm(int a, int b)
{
    return (a * b) / __gcd(a, b);
}
 
int32_t main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int tc;
    tc=1;
    while (tc--)
    {
        int a, b;
        cin >> a >> b;
        for (int i = 1; i <= n;i++){
            if(i!-a&&i!=b){
                cout << i << endl;
                break;
            }
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:50:30: error: 'n' was not declared in this scope
   50 |         for (int i = 1; i <= n;i++){
      |                              ^
a.cc:51:17: error: expected ')' before '!' token
   51 |             if(i!-a&&i!=b){
      |               ~ ^
      |                 )
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A,B,C;
  cin >> A >> B;
  if(A=1,B=2){
    cout << C==3 << endl;
  }
  else if(A=2,B=1){
    cout << C==3 << endl;
  }
  else if(A=1,B=3){
    cout << C==2 << endl;
  }
  else if (A=3,B=1){
    cout << C==2 << endl;
  }
  else if(A=2,B=3){
    cout << C==1 << endl;
  }
  else if(A=3,B=2){
    cout << C==1 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |     cout << C==3 << endl;
      |                ~~^~~~~~~
a.cc:10:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |     cout << C==3 << endl;
      |                ~~^~~~~~~
a.cc:13:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |     cout << C==2 << endl;
      |                ~~^~~~~~~
a.cc:16:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   16 |     cout << C==2 << endl;
      |                ~~^~~~~~~
a.cc:19:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   19 |     cout << C==1 << endl;
      |                ~~^~~~~~~
a.cc:22:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   22 |     cout << C==1 << endl;
      |                ~~^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A,B,C;
  cin >> A >> B;
  if(A=1,B=2){
    cout << C=3 << endl;
  }
  else if(A=2,B=1){
    cout << C=3 << endl;
  }
  else if(A=1,B=3){
    cout << C=2 << endl;
  }
  else if (A=3,B=1){
    cout << C=2 << endl;
  }
  else if(A=2,B=3){
    cout << C=1 << endl;
  }
  else if(A=3,B=2){
    cout << C=1 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |     cout << C=3 << endl;
      |               ~~^~~~~~~
a.cc:10:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |     cout << C=3 << endl;
      |               ~~^~~~~~~
a.cc:13:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |     cout << C=2 << endl;
      |               ~~^~~~~~~
a.cc:16:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   16 |     cout << C=2 << endl;
      |               ~~^~~~~~~
a.cc:19:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   19 |     cout << C=1 << endl;
      |               ~~^~~~~~~
a.cc:22:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   22 |     cout << C=1 << endl;
      |               ~~^~~~~~~
Language: C

#include <stdio.h>
2
3 int main(void){
4 int A, B;
5 scanf("%d%d", &A, &B); // 入力からA, B を受け取る
6
7 int result = 6 - A - B; // 6-A-B を計算し，変数result に格納する
8 printf("%d\n", result); // 出力
9
10 return 0;
11 }


Compiler output:
main.c:2:1: error: expected identifier or '(' before numeric constant
    2 | 2
      | ^
Language: C++

#include<iostream>
using namespace std;

int main{
  char a,b;
  cin << a << endl;
  cin << b << endl;
  if (a+b == 3){
    cout << 3;
  }else if (a+b == 4){
    cout << 2;
  }else if (a+b == 5){
    cout << 1;}
}
return 0

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'char'
    5 |   char a,b;
      |   ^~~~
a.cc:5:3: error: expected '}' before 'char'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin << a << endl;
      |   ^~~
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin << b << endl;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if (a+b == 3){
      |   ^~
a.cc:10:4: error: expected unqualified-id before 'else'
   10 |   }else if (a+b == 4){
      |    ^~~~
a.cc:12:4: error: expected unqualified-id before 'else'
   12 |   }else if (a+b == 5){
      |    ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
a.cc:15:1: error: expected unqualified-id before 'return'
   15 | return 0
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;

int main{
  char a,b;
  cin << a << endl;
  cin << b << endl;
  if (a+b == 3){
    cout << 3;
  }else if (a+b == 4){
    cout << 2;
  }else if (a+b == 5){
    cout << 1;}
return 0

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'char'
    5 |   char a,b;
      |   ^~~~
a.cc:5:3: error: expected '}' before 'char'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin << a << endl;
      |   ^~~
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin << b << endl;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if (a+b == 3){
      |   ^~
a.cc:10:4: error: expected unqualified-id before 'else'
   10 |   }else if (a+b == 4){
      |    ^~~~
a.cc:12:4: error: expected unqualified-id before 'else'
   12 |   }else if (a+b == 5){
      |    ^~~~
a.cc:14:1: error: expected unqualified-id before 'return'
   14 | return 0
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;
#include<string>
int main(){
string A,B;
  cin >> A,B >> std;
  if(A=1,B=2){
  cout << "3" << std;
  }
  if(A=1,B=3){
  cout << "2" << std;
  }
  if(A=2,B=1){
  cout << "3" << std;
  }
  if(A=2,B=3){
  cout << "1" << std;
  }
  if(A=3,B=1){
  cout << "2" << std;
  }
  if(A=3,B=2){
  cout << "1" << std;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected primary-expression before ';' token
    6 |   cin >> A,B >> std;
      |                    ^
a.cc:7:9: error: could not convert '(((void)A.std::__cxx11::basic_string<char>::operator=(1)), B.std::__cxx11::basic_string<char>::operator=(2))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |   if(A=1,B=2){
      |      ~~~^~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:8:21: error: expected primary-expression before ';' token
    8 |   cout << "3" << std;
      |                     ^
a.cc:10:9: error: could not convert '(((void)A.std::__cxx11::basic_string<char>::operator=(1)), B.std::__cxx11::basic_string<char>::operator=(3))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |   if(A=1,B=3){
      |      ~~~^~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:11:21: error: expected primary-expression before ';' token
   11 |   cout << "2" << std;
      |                     ^
a.cc:13:9: error: could not convert '(((void)A.std::__cxx11::basic_string<char>::operator=(2)), B.std::__cxx11::basic_string<char>::operator=(1))' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |   if(A=2,B=1){
      |      ~~~^~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:14:21: error: expected primary-expression before ';' token
   14 |   cout << "3" << std;
      |                     ^
a.cc:16:9: error: could not convert '(((void)A.std::__cxx11::basic_string<char>::operator=(2)), B.std::__cxx11::basic_string<char>::operator=(3))' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 |   if(A=2,B=3){
      |      ~~~^~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:17:21: error: expected primary-expression before ';' token
   17 |   cout << "1" << std;
      |                     ^
a.cc:19:9: error: could not convert '(((void)A.std::__cxx11::basic_string<char>::operator=(3)), B.std::__cxx11::basic_string<char>::operator=(1))' from 'std::__cxx11::basic_string<char>' to 'bool'
   19 |   if(A=3,B=1){
      |      ~~~^~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:20:21: error: expected primary-expression before ';' token
   20 |   cout << "2" << std;
      |                     ^
a.cc:22:9: error: could not convert '(((void)A.std::__cxx11::basic_string<char>::operator=(3)), B.std::__cxx11::basic_string<char>::operator=(2))' from 'std::__cxx11::basic_string<char>' to 'bool'
   22 |   if(A=3,B=2){
      |      ~~~^~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:23:21: error: expected primary-expression before ';' token
   23 |   cout << "1" << std;
      |                     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:8: error: expected initializer before '.' token
    3 |   int a.b.c.d;
      |        ^
a.cc:4:18: error: 'a' was not declared in this scope
    4 |   scanf("%d %d",&a,&b);
      |                  ^
a.cc:4:21: error: 'b' was not declared in this scope
    4 |   scanf("%d %d",&a,&b);
      |                     ^
a.cc:5:3: error: 'c' was not declared in this scope
    5 |   c=6-a-b;
      |   ^
Language: C++

#include <iostream>

int main(){
  int a, b, c;
  std::cin >> a >> b;
  for(int i = 1; i <= 3; ++i)
    if(i != a && i != b)
      c = i;
  std::cout << i << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'i' was not declared in this scope
    9 |   std::cout << i << std::endl;
      |                ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: 'nedl' was not declared in this scope
    7 |   cout << 6 - A -B << nedl;
      |                       ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define INF 1000000010
#define EPS 1e-9
#define fst first
#define scd second

#define debug(x) cout<<x<<endl;
#define repi(i,x,n) for(int i=x;i<n;i++)
#define rep(i,n) repi(i,0,n)
#define lp(i,n) repi(i,0,n)
#define repn(i,n) for(int i=n;i>=0;i--)
#define int long long
#define endl "\n"


signed main(){
  cin.tie(0);	
  ios::sync_with_stdio(false);
  int a,b;
  int ans[3]=[1,1,1];
  cin>>a>>b;
  ans[a-1]=0;
  ans[b-1]=0;
  rep(i,3){
    if(ans[i]==1) cout<<i+1<<endl;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:15: error: expected identifier before numeric constant
   22 |   int ans[3]=[1,1,1];
      |               ^
a.cc:22:16: error: expected ']' before ',' token
   22 |   int ans[3]=[1,1,1];
      |                ^
      |                ]
a.cc: In lambda function:
a.cc:22:16: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:22:14: error: array must be initialized with a brace-enclosed initializer
   22 |   int ans[3]=[1,1,1];
      |              ^~
a.cc:22:17: error: expected unqualified-id before numeric constant
   22 |   int ans[3]=[1,1,1];
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int mod = 1e9 + 7;
const int inf = (1 << 30) - 1;
const ll infll = (1LL << 61) - 1;

int main(){
  int a, b;
  cout << a ^ b << endl;
}

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

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

}

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