criyle/codenet-compile-errors huggingface dataset:
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 || b==1 && a==3)cout << 2 <<endl;
  else (a==2 && b==3 || a==3 && b==2)cout << 1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:38: error: expected ';' before 'cout'
    8 |   else (a==2 && b==3 || a==3 && b==2)cout << 1 << endl;
      |                                      ^~~~
      |                                      ;
Language: Java

public class _hanif_sir {

    
    public static void main(String[] args) {
         Scanner in =new Scanner(System.in);
       int a=in.nextInt();
       int b=in.nextInt();
       System.out.print(6-(a+b));
    }   
}

Compiler output:
Main.java:1: error: class _hanif_sir is public, should be declared in a file named _hanif_sir.java
public class _hanif_sir {
       ^
Main.java:5: error: cannot find symbol
         Scanner in =new Scanner(System.in);
         ^
  symbol:   class Scanner
  location: class _hanif_sir
Main.java:5: error: cannot find symbol
         Scanner in =new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class _hanif_sir
3 errors
Language: Java

  {
         Scanner in =new Scanner(System.in);
       int a=in.nextInt();
       int b=in.nextInt();
       System.out.print(6-(a+b));
    }   

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
  {
  ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
       int a=in.nextInt();
       ^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
       System.out.print(6-(a+b));
       ^
Main.java:6: error: class, interface, enum, or record expected
    }   
    ^
4 errors
Language: Java

import java.util.Scanner;


public class _hanif_sir {

    
    public static void main(String[] args) {
         Scanner in =new Scanner(System.in);
       int a=in.nextInt();
       int b=in.nextInt();
       System.out.print(6-(a+b));
    }
    
}


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

import java.util.Scanner;
public class A - Hanif Sir  {
   public static void main(String[] args) {
       Scanner in =new Scanner(System.in);
       int a=in.nextInt();
       int b=in.nextInt();
       System.out.print(6-(a+b));
    }    
}

Compiler output:
Main.java:2: error: '{' expected
public class A - Hanif Sir  {
              ^
1 error
Language: Java

import java.util.Scanner;
public class me {
   public static void main(String[] args) {
       Scanner in =new Scanner(System.in);
       int a=in.nextInt();
       int b=in.nextInt();
       System.out.print(6-(a+b));
    }    
}

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

package contest;
import java.util.Scanner;
public class A {
   public static void main(String[] args) {
       Scanner in =new Scanner(System.in);
       int a=in.nextInt();
       int b=in.nextInt();
       System.out.print(6-(a+b));
    }    
}

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

import java.util.Scanner;
public class A {
   public static void main(String[] args) {
       Scanner in =new Scanner(System.in);
       int a=in.nextInt();
       int b=in.nextInt();
       System.out.print(6-(a+b));
    }    
}

Compiler output:
Main.java:2: 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>

using namespace std;

#define rep(i,n) for(int i=0;i<(n);i++)
#define rep1(i,n) for(int i=1;i<(n);i++)
#define all(a)  (a).begin(),(a).end()
using ll = long long;
using ld = long double;
using Pint = pair<int, int>;
const ll mod = 1e9+7;

int main(int argc, char const* argv[])
{
  int a,b;
  cin>>a>>b;
  cout<<a^b<<endl;

  return 0;
}

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

#incude<iostream>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  if(a==1&&b==2)
    cout<<"3";
  else if(a==1&&b==3)
    cout<<"2";
  else if(a==2&&b==1)
    cout<<"3";
  else if(a==2&&b==3)
    cout<<"1";
  else if(a==3&&b==1)
    cout<<"2";
  else
    cout<<"1";
   return 0;
}  
 

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #incude<iostream>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"3";
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"2";
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<"3";
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout<<"1";
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<"2";
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout<<"1";
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#incude<iostream>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  if(a==1&&b==2)
    cout<<"3";
  else if(a==1&&b==3)
    cout<<"2";
  else if(a==2&&b==1)
    cout<<"3";
  else if(a==2&&b==3)
    cout<<"1";
  else if(a==3&&b==1)
    cout<<"2";
  else
    cout<<"1";
   return 0;
}  
    

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #incude<iostream>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"3";
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"2";
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<"3";
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout<<"1";
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<"2";
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout<<"1";
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

import java.util.*;

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



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

123456789101112131415161718192021222324252627282930
  }
  if (A==2 && B==1) {
    cout << 3;
  }
  if (A==3 && B==2) {
    cout <<2;
  }
	return 0;
}

noahAgo

1 2
Please Wait...
if

Compiler output:
a.cc:1:1: warning: integer constant is too large for its type
    1 | 123456789101112131415161718192021222324252627282930
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: expected unqualified-id before numeric constant
a.cc:2:3: error: expected declaration before '}' token
    2 |   }
      |   ^
a.cc:3:3: error: expected unqualified-id before 'if'
    3 |   if (A==2 && B==1) {
      |   ^~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if (A==3 && B==2) {
      |   ^~
a.cc:9:9: error: expected unqualified-id before 'return'
    9 |         return 0;
      |         ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
a.cc:12:1: error: 'noahAgo' does not name a type
   12 | noahAgo
      | ^~~~~~~
Language: Java

import java.util.Scanner;

public class HonestOrUnkind2 {

    public static void main(String[] args) {
        // TODO 自動生成されたメソッド・スタブ

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        if(a + b == 3) {
            System.out.println(3);
        }
        else if(a + b == 4) {
            System.out.println(2);
        }
        else {
            System.out.println(1);
        }
        sc.close();

    }

}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before '{' token
    7 |   cout << {1,2,3}&&!a&&!b << endl;
      |           ^
a.cc:7:20: error: expected identifier before '!' token
    7 |   cout << {1,2,3}&&!a&&!b << endl;
      |                    ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: expected ';' before '}' token
   14 |    cout << "2;"
      |                ^
      |                ;
   15 |  }
      |  ~
Language: Java

import java.util.Scanner;

public class A148 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

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

		sc.close();
	}
}

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

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    if (a + b == 3){
      System.out.println(3);
    }else if (a + b = 4){
      System.out.println(2);
    }else{
      System.out.println(1);
    }
  }
}


Compiler output:
Main.java:10: error: unexpected type
    }else if (a + b = 4){
                ^
  required: variable
  found:    value
1 error
Language: C++

#define rep(i,n) for(int i=0;i<(n);i++)
using ll=long long;
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     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 | #define rep(i,n) for(int i=0;i<(n);i++)
a.cc:8:5: error: 'vector' was not declared in this scope
    8 |     vector<int> num(4,0);
      |     ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #define rep(i,n) for(int i=0;i<(n);i++)
a.cc:8:12: error: expected primary-expression before 'int'
    8 |     vector<int> num(4,0);
      |            ^~~
a.cc:10:5: error: 'num' was not declared in this scope; did you mean 'enum'?
   10 |     num[a]++;
      |     ^~~
      |     enum
a.cc:15:13: error: 'cout' was not declared in this scope
   15 |             cout<<i<<endl;
      |             ^~~~
a.cc:15:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:22: error: 'endl' was not declared in this scope
   15 |             cout<<i<<endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #define rep(i,n) for(int i=0;i<(n);i++)
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:42: error: 'emdl' was not declared in this scope
   13 |   else if(a != 2 && b != 2) cout << 2 << emdl;
      |                                          ^~~~
Language: C

#include<stdio.h>
int main()
{
int A,M;
scanf("%d %d",&A,&M);
if(A+M=3)
{
printf("3\n");
}
else if(A+M==5)
{
 printf("1\n");
}
else if(A+M==4)
{
 printf("2\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: lvalue required as left operand of assignment
    6 | if(A+M=3)
      |       ^
Language: C++

#include <iostream>
#include<string>
 using namespace std;

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

 if(a==1 || b==1 (&&) b==2 || a==2){cout<<"3";}
 else if(a==1 || b==1 (&&) b==3 || a==3){cout<<"2";}
 else if(a==3 || b==3 (&&) b==2 || a==2){cout<<"1";}
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected unqualified-id before ';' token
    6 |  int a, b, ;
      |            ^
a.cc:9:21: error: expected identifier before ')' token
    9 |  if(a==1 || b==1 (&&) b==2 || a==2){cout<<"3";}
      |                     ^
a.cc:9:21: error: expression cannot be used as a function
a.cc:9:22: error: expected ')' before 'b'
    9 |  if(a==1 || b==1 (&&) b==2 || a==2){cout<<"3";}
      |    ~                 ^~
      |                      )
a.cc:10:26: error: expected identifier before ')' token
   10 |  else if(a==1 || b==1 (&&) b==3 || a==3){cout<<"2";}
      |                          ^
a.cc:10:26: error: expression cannot be used as a function
a.cc:10:27: error: expected ')' before 'b'
   10 |  else if(a==1 || b==1 (&&) b==3 || a==3){cout<<"2";}
      |         ~                 ^~
      |                           )
a.cc:11:26: error: expected identifier before ')' token
   11 |  else if(a==3 || b==3 (&&) b==2 || a==2){cout<<"1";}
      |                          ^
a.cc:11:26: error: expression cannot be used as a function
a.cc:11:27: error: expected ')' before 'b'
   11 |  else if(a==3 || b==3 (&&) b==2 || a==2){cout<<"1";}
      |         ~                 ^~
      |                           )
Language: C++

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

#define int long long int
#define vi vector<int>
#define pb push_back
#define vvi vector<vi>

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

}

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

#include <iostream>
#include <iomanip>
#include <string>
#include <map>
#include <unordered_map>
#include <cmath>
#include <algorithm>

typedef long long ll;
typedef long double ld;

using namespace std;
int main()
{
  int a, b;
  cin >> a >> b;
  if (a == 1)
  {
    if (b == 2) cout << 3;
    if (b == 3) cout << 2;
  }
  if (a == 2)
  {
    if (b == 1) cout << 3;
    if (b == 3) cout << 1;
  }
  if (a == 3)
  {
    if (b == 1) cout << 2;
    if (b == 2) cout << 1
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:26: error: expected ';' before '}' token
   30 |     if (b == 2) cout << 1
      |                          ^
      |                          ;
   31 |   }
      |   ~
Language: Java

Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();

int c = 6 - a - b
System.out.println(c);


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner scan = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: ';' expected
int c = 6 - a - b
                 ^
2 errors
Language: C

#include <stdio.h>

int main(void) {
    int a,b;
    scanf("%d",&a);
    scanf("%d",&b);

    printf("%d\n",(6-a-b))    
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:27: error: expected ';' before 'return'
    8 |     printf("%d\n",(6-a-b))
      |                           ^
      |                           ;
    9 |         return 0;
      |         ~~~~~~
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(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);
		}
		if (A==1&&B==3) {
			System.out.println(2);
		}
		if (A==3&&B==2) {
			System.out.println(1);
		}
		if (A==3&&B==1) {
			System.out.println(2);
		}
		if (A==2&&B==3) {
			System.out.println(1);
		}
		if (A==2&&B==1) {
			System.out.println(3);
		}
	}


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

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

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

for(int i=0;i<2;i++){
if(A||B!=i){
cout << i+1 << endl;
}

else{
cout << endl;
}
}

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

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

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

#include<iostream>
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:12:40: error: expected '}' at end of input
   12 | else if(a==3 && b==2){cout<<"1"<<endl;}
      |                                        ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: Java

public static void main(String[] ages){
Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		if(A==1 && B ==2 || A==2 && B ==1) {
			System.out.println("3");
		}else if(A==1 && B==3 || A==3 && B==1){
			System.out.println("2");
		}else {
			System.out.println("1");
		}
			
	}
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] ages){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:14: error: class, interface, enum, or record expected
}
^
2 errors
Language: C++

#include <bits/stdc++.h>
#define rep(i,n1) for(int i=0;i<n1;++i)
#define rrep(i,n) for(int i=n-1;i>=0;--i)
#define REP(i,a,b) for(int i=a;i<b;i++)
#define yesno(flg) if(flg){cout<<'YES'<<endl;}else{cout<<'NO'<<endl;}
#define vi vector<int>
#define pb push_back
#define i197 1000000007
#define MAX_N 200002
#define PI 3.141592653589793
using namespace std;

typedef long long ll;
typedef pair<int,int> Pii;
typedef pair<Pii,int> Piii;
typedef pair<int,ll> Pil;
typedef pair<ll,ll> Pll;
typedef pair<string,int> Psi;
typedef pair<Psi,int> Psii;

const ll inf=1000000007;
struct edge{
	int myc,to,c,cost;
};
struct pos{
	int to,cost,color;
};
int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};

vector<Pii> v[100001];
ll dp[300000][60]={};
ll dp2[300000][60]={};
ll a[300000];
int main() {
	int a,b;
	int s[4]={};
	cin>>a>>b;
	s[a]=1;
	s[b]=1;
	if(s[1]==0)cout<<"1"endl;
	if(s[2]==0)cout<<"2"endl;
	if(s[3]==0)cout<<"3"endl;
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:26: error: unable to find string literal operator 'operator""endl' with 'const char [2]', 'long unsigned int' arguments
   41 |         if(s[1]==0)cout<<"1"endl;
      |                          ^~~~~~~
a.cc:42:26: error: unable to find string literal operator 'operator""endl' with 'const char [2]', 'long unsigned int' arguments
   42 |         if(s[2]==0)cout<<"2"endl;
      |                          ^~~~~~~
a.cc:43:26: error: unable to find string literal operator 'operator""endl' with 'const char [2]', 'long unsigned int' arguments
   43 |         if(s[3]==0)cout<<"3"endl;
      |                          ^~~~~~~
Language: C++

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:1: error: 'a' does not name a type
    1 | a = int(input())
      | ^
Language: C++

a = int(input())
b = int(input())

if a != 1 or b != 1:
  print(1)
elif a != 2 or b != 2:
  print(2)
else:
  print(3) 

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

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

int main(){
	int a,b;
  cin >> a >>b:
  int data[3] = {1,2,3};
  for(int s:data){
  	if(s == a || s == b)continue;
    cout << s <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected ';' before ':' token
    6 |   cin >> a >>b:
      |               ^
      |               ;
a.cc:8:13: error: unable to deduce 'auto&&' from 'std::data'
    8 |   for(int s:data){
      |             ^~~~
a.cc:8:13: note:   couldn't deduce template parameter 'auto'
Language: C++

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

int main(){
	int a,b;
  cin >> a >>b:
  int data[3] = {1,2,3};
  for(int s:data){
  	if(s == a || s == b)continue;
    cout << s <<endl;
  }
}

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

#include <bits/stdc++.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |       cout << "3" << 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 << "3" << 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)
      |     ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |       cout << "2" << 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:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |       cout << "2" << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       cout << "1" << 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:11:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |       cout << "1" << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

#include <iostream>
#include <algorithm>
#include <cmath>
#include <set>
#include <vector>
using namespace std;

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <algorithm>
^
Main.java:3: error: illegal character: '#'
#include <cmath>
^
Main.java:4: error: illegal character: '#'
#include <set>
^
Main.java:5: error: illegal character: '#'
#include <vector>
^
Main.java:10: error: not a statement
	cin >> a >> b;
	         ^
Main.java:14: error: not a statement
	cout << ans;
	     ^
Main.java:8: error: unnamed classes are a preview feature and are disabled by default.
int main () {
^
  (use --enable-preview to enable unnamed classes)
8 errors
Language: C++

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

int main(){
  long int a,b;
  cin>>a>>b;
  long int ans;
  ans=lcm(a,b);
}
  

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

#include <iostream>
#include <string>
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:7:6: error: expected ';' before 'a'
    7 |   cin a >> b;
      |      ^~
      |      ;
Language: C++

#include <stdio.h> 2
3 int main(){
4 int A, B;
5 scanf("%d%d", &A, &B); 
6
7 int result = 6 - A - B; 
8 printf("%d", result); 
9
10 return 0;
11 }


Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> 2
      |                    ^
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 3 int main(){
      | ^
Language: C

#include <stdio.h> 2
3 int main(){
4 int A, B;
5 scanf("%d%d", &A, &B); 
6
7 int result = 6 - A - B; 
8 printf("%d", result); 
9
10 return 0;
11 }


Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> 2
      |                    ^
main.c:2:1: error: expected identifier or '(' before numeric constant
    2 | 3 int main(){
      | ^
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:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> 2
      |                    ^
main.c:2:1: error: expected identifier or '(' before numeric constant
    2 | 3 int main(void){
      | ^
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:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> 2
      |                    ^
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 3 int main(void){
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int 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;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: lvalue required as left operand of assignment
    7 |   if (a + b = 3) {
      |       ~~^~~
a.cc:10:14: error: lvalue required as left operand of assignment
   10 |   else if (a + b = 4) {
      |            ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int arr[4]={0}; int a,b;
  cin >> a >> b; arr[a]++;arr[b]++;
  for (int i=1; i<=3; i++) if (!arr[i]) nout(i);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:41: error: 'nout' was not declared in this scope
    7 |   for (int i=1; i<=3; i++) if (!arr[i]) nout(i);
      |                                         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int arr[4]=0; int a,b;
  cin >> a >> b; arr[a]++;arr[b]++;
  for (int i=1; i<=3; i++) if (!arr[i]) nout(i);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: array must be initialized with a brace-enclosed initializer
    5 |   int arr[4]=0; int a,b;
      |              ^
a.cc:7:41: error: 'nout' was not declared in this scope
    7 |   for (int i=1; i<=3; i++) if (!arr[i]) nout(i);
      |                                         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define sc(a,b) scanf("%lld %lld",&a,&b) 

int main()
{
	ll a,b;
/*while(*/sc(a,b);//!=EOF)
{

   
  if(a==1 && b==2 || a==2 && b==1)printf("3\n");
  if(a==2 && b==3 || a==3 && b==2)printf("1\n");
  if(a==3 && b==1 || a==1 && b==3)printf("2\n");
}
//}

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define sc(a,b) scanf("%lld %lld",&a,&b) 

int main()
{
	ll a,b;
	sc(a,b);

   
    if(a==1)
    {
        if(b==2)
    	printf("3\n");
    	else if(b==3)
    	printf("2\n");
	}
	else if(a==2)
	{
		if(b==1)
		printf("3\n");
		else if(b==3)
		printf("2")
	}
	else if(a == 3)
	{
		if(b==1)
		printf("2\n");
		else if(b==2)
		printf("3\n");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:28: error: expected ';' before '}' token
   24 |                 printf("2")
      |                            ^
      |                            ;
   25 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected ';' before '}' token
   13 |         cout<<"1"
      |                  ^
      |                  ;
   14 |     }
      |     ~
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;
  }
  if(A==1 && B==3){
    cout << 2 << endl;
  }
  if(A==2 && B==1){
    cout << 3 << endl;
  }
  if(A==2 && B==3){
    cout << 1 << endl;
  }
  if(A==3 && B==1){
    cout << 2 << endl;
  }
  if(A==3 && B==2){
    cout << 1 << endl;
  }

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

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

int main(){
  int A,B;
  cin >> A >> B;
  vector<int> vec(3) = { 1, 2, 3 };
  vec.pop_back(A);
  vec.pop_back(B);
  cout << vec.at(0) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ',' or ';' before '=' token
    7 |   vector<int> vec(3) = { 1, 2, 3 };
      |                      ^
a.cc:8:15: error: no matching function for call to 'std::vector<int>::pop_back(int&)'
    8 |   vec.pop_back(A);
      |   ~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1324:7: note: candidate: 'void std::vector<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]'
 1324 |       pop_back() _GLIBCXX_NOEXCEPT
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1324:7: note:   candidate expects 0 arguments, 1 provided
a.cc:9:15: error: no matching function for call to 'std::vector<int>::pop_back(int&)'
    9 |   vec.pop_back(B);
      |   ~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1324:7: note: candidate: 'void std::vector<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]'
 1324 |       pop_back() _GLIBCXX_NOEXCEPT
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1324:7: note:   candidate expects 0 arguments, 1 provided
Language: C++

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

int main(){
  int A,B;
  cin >> A >> B;
  vector<int> vec(3) = {1, 2, 3};
  vec.pop_back(A);
  vec.pop_back(B);
  cout << vec.at(0) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ',' or ';' before '=' token
    7 |   vector<int> vec(3) = {1, 2, 3};
      |                      ^
a.cc:8:15: error: no matching function for call to 'std::vector<int>::pop_back(int&)'
    8 |   vec.pop_back(A);
      |   ~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1324:7: note: candidate: 'void std::vector<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]'
 1324 |       pop_back() _GLIBCXX_NOEXCEPT
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1324:7: note:   candidate expects 0 arguments, 1 provided
a.cc:9:15: error: no matching function for call to 'std::vector<int>::pop_back(int&)'
    9 |   vec.pop_back(B);
      |   ~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1324:7: note: candidate: 'void std::vector<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]'
 1324 |       pop_back() _GLIBCXX_NOEXCEPT
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1324:7: note:   candidate expects 0 arguments, 1 provided
Language: C++

#include <iostream>
#include <map>
using namespace std;
int main(){
	int a,b; cin>>a>>b;
	map<int,int> m;
    map[a]++;map[b]++;
  	for(int i = 1; i<4;i++){
		if(map[i]==0) cout << i <<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: conflicting declaration 'auto a'
    7 |     map[a]++;map[b]++;
      |         ^
a.cc:5:13: note: previous declaration as 'int a'
    5 |         int a,b; cin>>a>>b;
      |             ^
a.cc:7:11: error: expected initializer before '++' token
    7 |     map[a]++;map[b]++;
      |           ^~
a.cc:7:18: error: conflicting declaration 'auto b'
    7 |     map[a]++;map[b]++;
      |                  ^
a.cc:5:15: note: previous declaration as 'int b'
    5 |         int a,b; cin>>a>>b;
      |               ^
a.cc:7:20: error: expected initializer before '++' token
    7 |     map[a]++;map[b]++;
      |                    ^~
a.cc:9:23: error: expected unqualified-id before '[' token
    9 |                 if(map[i]==0) cout << i <<endl;
      |                       ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	int a,b;cin>>a>>b;
	map<int,int> m;
    map[a]++;map[b]++;
  	for(int i = 1; i<4;i++){
		if(map[i]==0) cout << i <<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'map' was not declared in this scope
    5 |         map<int,int> m;
      |         ^~~
a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    1 | #include <iostream>
  +++ |+#include <map>
    2 | using namespace std;
a.cc:5:13: error: expected primary-expression before 'int'
    5 |         map<int,int> m;
      |             ^~~
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:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |     ans=6-A-B;
      |     ^~~
      |     abs
Language: C++

#include<iostream>
using name_space std;
int main(){
int A,B,C;
C=6;
cin>>A>>B;
cout<<C-A-B;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name_space'
    2 | using name_space std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin>>A>>B;
      | ^~~
      | 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:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | cout<<C-A-B;
      | ^~~~
      | 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<iostream>
int main(){
int A,B,C;
C=6;
cin>>A>>B;
cout<<C-A-B;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>A>>B;
      | ^~~
      | 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:6:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | cout<<C-A-B;
      | ^~~~
      | 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 <iostream>
#include <math.h>
using namespace std;
int main(){
  cin >> a >> b;
  int c=fmax(a,b);
  int d=fmin(a,b);
  if(c==2){
    cout << "3";
  }else{
    if (d==2){
      cout << "1";
    }else{
      cout << "2";
    }
  }
  return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'a' was not declared in this scope
    5 |   cin >> a >> b;
      |          ^
a.cc:5:15: error: 'b' was not declared in this scope
    5 |   cin >> a >> b;
      |               ^
Language: C++

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

int main(){
  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;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '.' token
    5 |   int A.B;
      |        ^
a.cc:6:8: error: 'A' was not declared in this scope
    6 |   cin>>A>>B;
      |        ^
a.cc:6:11: error: 'B' was not declared in this scope
    6 |   cin>>A>>B;
      |           ^
Language: C++

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


Compiler output:
/usr/bin/ld: /tmp/ccrT2JBR.o: in function `main':
a.cc:(.text+0x3f): undefined reference to `gcd(int, int)'
collect2: error: ld returned 1 exit status
Language: Java

import java.util.*;

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

Compiler output:
Main.java:8: error: cannot find symbol
          System.out.println(6 - num1 - num2);
                                        ^
  symbol:   variable num2
  location: class Main
1 error
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int A = scanner.nextInt();
    int B = scanner.nextInt();
    
    if(A=1){
      if(B=2){
        system.out.println(3);
      }else{
        system.out.println(2);
    }
    
    if(A=2){
      if(B=1){
        system.out.println(3);
      }else{
        system.out.println(1);
    }
      
    if(A=3){
      if(B=2){
        system.out.println(3);
      }else{
        system.out.println(2);
    }
  }
  
}

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

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

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

    int i;

    for (int i = 1; i <=3; i++)
    {
    if(A==i && B==i){

    }else{
        cout<<i<<endl;
    }
    
    }


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

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

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

  cout << C << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before 'cout'
    8 |   C = 6 - A - B
      |                ^
      |                ;
    9 | 
   10 |   cout << C << endl;
      |   ~~~~
Language: C++

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

const int INF = 1e9;
const long long LINF = 1e18;

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

    if (A == 1 && B == 2) {
        cout << 3 << endl;
    } else if (A == 1 && B == 3) {
        cout << 2 << endl;
    } else if (A == 2 && B == 3) {
        cout << 1 << endl;
    } else if (A == 2 && B == 1) {
        cout << 3 << endl;
    } else if (A == 3 && B == 1) {
        cout << 2 << endl;
    } else if (A == 3 && B == 2) {
        cout << 1 << endl;
    } else {
        cout << "hoge" << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'cin' was not declared in this scope
   15 |     cin >> A >> B;
      |     ^~~
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << 3 << endl;
      |         ^~~~
a.cc:18:22: error: 'endl' was not declared in this scope
   18 |         cout << 3 << endl;
      |                      ^~~~
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |         cout << 2 << endl;
      |         ^~~~
a.cc:20:22: error: 'endl' was not declared in this scope
   20 |         cout << 2 << endl;
      |                      ^~~~
a.cc:22:9: error: 'cout' was not declared in this scope
   22 |         cout << 1 << endl;
      |         ^~~~
a.cc:22:22: error: 'endl' was not declared in this scope
   22 |         cout << 1 << endl;
      |                      ^~~~
a.cc:24:9: error: 'cout' was not declared in this scope
   24 |         cout << 3 << endl;
      |         ^~~~
a.cc:24:22: error: 'endl' was not declared in this scope
   24 |         cout << 3 << endl;
      |                      ^~~~
a.cc:26:9: error: 'cout' was not declared in this scope
   26 |         cout << 2 << endl;
      |         ^~~~
a.cc:26:22: error: 'endl' was not declared in this scope
   26 |         cout << 2 << endl;
      |                      ^~~~
a.cc:28:9: error: 'cout' was not declared in this scope
   28 |         cout << 1 << endl;
      |         ^~~~
a.cc:28:22: error: 'endl' was not declared in this scope
   28 |         cout << 1 << endl;
      |                      ^~~~
a.cc:30:9: error: 'cout' was not declared in this scope
   30 |         cout << "hoge" << endl;
      |         ^~~~
a.cc:30:27: error: 'endl' was not declared in this scope
   30 |         cout << "hoge" << endl;
      |                           ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'intA' was not declared in this scope; did you mean 'int'?
    4 | intA,B;
      | ^~~~
      | int
a.cc:4:6: error: 'B' was not declared in this scope
    4 | intA,B;
      |      ^
a.cc:5:6: error: 'A' was not declared in this scope
    5 | 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:2:20: error: expected ';' before '.' token
    2 | using namespace std.
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before '.' token
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:5:11: error: expected unqualified-id before ';' token
    5 |   int A,B,;
      |           ^