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+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:7: error: lvalue required as left operand of assignment
    7 |   if(a+b=3){
      |      ~^~
a.cc:10:12: error: lvalue required as left operand of assignment
   10 |   else if(a+b=4){
      |           ~^~
Language: C++

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

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

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

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

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

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

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

  if(a+b=3)
    c = 3;
  else if(a+b = 4)
    c = 2;
  else if(a+b = 5)
    c = 1;

  printf("%d\n", c);
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: lvalue required as left operand of assignment
   11 |   if(a+b=3)
      |         ^
main.c:13:15: error: lvalue required as left operand of assignment
   13 |   else if(a+b = 4)
      |               ^
main.c:15:15: error: lvalue required as left operand of assignment
   15 |   else if(a+b = 5)
      |               ^
Language: Java

import java.util.*;
public class Test{

    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");
        return;
      }
      if(a==1 && b==3){
        System.out.println("2");
        return;
      }
      if(a==2 && b==1){
        System.out.println("3");
        return;
      }
      if(a==2 && b==3){
        System.out.println("1");
        return;
      }
      if(a==3 && b==1){
        System.out.println("2");
        return;
      }
      if(a==3 && b==2){
        System.out.println("1");
        return;
      }
    }
}


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

#include<bits/std++.h>
using namespace std;
int a,b;
int main()
{
	scanf("%d%d",&a,&b);
	if(a!=1&&b!=1)
		printf("%d\n",1);
	if(a!=2&&b!=2)
		printf("%d\n",2);
	if(a!=3&&b!=3)
		printf("%d\n",3);
	return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected primary-expression before 'or' token
    9 |   if(a == 1 && b == 2) or (a == 2 && b == 1) cout << 3 << endl;
      |                        ^~
a.cc:10:30: error: expected primary-expression before 'or' token
   10 |   else if (a == 2 && b == 3) or (a == 3 && b == 2) cout << 1 << endl;
      |                              ^~
a.cc:11:30: error: expected primary-expression before 'or' token
   11 |   else if (a == 3 && b == 1) or (a == 1 && b == 3)cout << 2 << endl;
      |                              ^~
Language: C++

#include<stdio.h>
  int main()
{
  int a;
  int b;
  int c;
  cin >> a;
  cin >> b;
    c = 6 - a - b;
  cout << c;
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << c;
      |   ^~~~
Language: C++

#include<stdio.h>
  int main()
{
  float a;
  float b;
  float c;
  cin >> a;
  cin >> b;
    c = 6 - a - b;
  cout << c;
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << c;
      |   ^~~~
Language: C++

#include<stdio.h>
  int main()
{
  float a;
  float b;
  float c;
  cin >> a;
  cin >> b;
  cout << 6 - a - b << c;
  return 0;
}
  

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

#include<stdio.h>
using namespace
  int main()
{
  float a;
  float b;
  float c;
  cin >> a;
  cin >> b;
  cout << 6 - a - b << c;
  return 0;
}
  

Compiler output:
a.cc:3:3: error: expected identifier before 'int'
    3 |   int main()
      |   ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 |   int main()
      |   ~~~           
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> a;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << 6 - a - b << c;
      |   ^~~~
Language: C++

#include<iostream>

int main(){
  int a,b;std::cin >> a >> b;
  std::cout<<a ^ b<<std::endl;
}

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

import java.util.Scanner;

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

        int A;
        int B;

        A=sc.nextInt();
        B=sc.nextInt();

        if (A==2)
            if (B==1)
                System.out.println(3);
            else
                System.out.println(1);
        else
            if (A==1)
                if (B==2)
                    System.out.println(3);
                else
                    System.out.println(2);

            else
                if (B==2)
                    System.out.println(1);
                else
                    System.out.println(2);
    }
}


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

#include <iostream>

using namespace std;

int main() {
  int A, B;
  cin >> A >> B
  
  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: In function 'int main()':
a.cc:7:16: error: expected ';' before 'if'
    7 |   cin >> A >> B
      |                ^
      |                ;
    8 | 
    9 |   if(A + B == 3) {
      |   ~~            
a.cc:11:5: error: 'else' without a previous 'if'
   11 |   } else if (A + B == 4) {
      |     ^~~~
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 == 3){
    cout << 1 << endl;
  }
  else if ( a == 3 %% b == 1){
    cout << 2 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected primary-expression before '%' token
   14 |   else if ( a == 3 %% b == 1){
      |                     ^
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 == 2 && b == 3){
    cout << 1 << endl;
  }
  if ( a == 3 %% b == 1){
    cout << 2 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: expected primary-expression before '%' token
   14 |   if ( a == 3 %% b == 1){
      |                ^
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();
        return 6 - (a + b);
    }
}

Compiler output:
Main.java:7: error: incompatible types: unexpected return value
        return 6 - (a + b);
                 ^
1 error
Language: Java

import java.util.*;
public class ABC148 {

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

Compiler output:
Main.java:2: error: class ABC148 is public, should be declared in a file named ABC148.java
public class ABC148 {
       ^
Main.java:8: error: incompatible types: unexpected return value
        return 6 - (a + b);
                 ^
2 errors
Language: Java

import java.util.*;
public class ABC148 {

    public static int A(){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        return 6 - (a + b);
    }
}

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

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

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include<iostream>

using namespase std;

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

return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespase'
    3 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:9:5: 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:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout<<2<<endl;
      |              ^~~~
      |              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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:11:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout<<3<<endl;
      |              ^~~~
      |              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     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:13:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     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

import java.util.Scanner;

public class cccpc01j1 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		
		int x = input.nextInt();
		int y = input.nextInt();
		
		System.out.println(6 - x - y);
	}
}


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

#include <iostream>
#include <cstdio>

using namespace std;

typedef long long int ll;
#define rep(i,n) for(int i = 0; i < (n); ++i)
const int MOD = 1000000007;
const int INF = INT_MAX;




int main(void) {

    int a, b;
    cin >> a >> b;

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



//              g++ -std=c++1z  

Compiler output:
a.cc:9:17: error: 'INT_MAX' was not declared in this scope
    9 | const int INF = INT_MAX;
      |                 ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include <cstdio>
  +++ |+#include <climits>
    3 |
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:19: error: expected expression before '||' token
   10 |   if((A=1)&&(B=2))||((A=2)&&(B=1))
      |                   ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:19: error: expected expression before '||' token
   10 |   if((A=1)&&(B=2))||((A=2)&&(B=1))
      |                   ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '!=' token
    4 |   int A,B!=A;
      |          ^~
main.c:6:15: error: 'B' undeclared (first use in this function)
    6 |   scanf("%d",&B);
      |               ^
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:19: error: expected expression before '||' token
    9 |   if((A=1)&&(B=2))||((A=2)&&(B=1))
      |                   ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:19: error: expected expression before '||' token
    9 |   if((A=1)&&(B=2))||((A=2)&&(B=1))
      |                   ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:7: error: expected ';' before 'if'
    7 |   A!=B
      |       ^
      |       ;
    8 | 
    9 |   if((A=1)&&(B=2))||((A=2)&&(B=1))
      |   ~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:7: error: expected ';' before 'if'
    7 |   A!=B
      |       ^
      |       ;
    8 | 
    9 |   if((A=1)&&(B=2))||((A=2)&&(B=1))
      |   ~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:19: error: expected expression before '||' token
    8 |   if((A=1)&&(B=2))||((A=2)&&(B=1))
      |                   ^~
Language: C++

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


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

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define endl '\n'
#define FAST ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
const int maxn=2*1e5+5;a int arr[4];
int main()
{
    FAST

    int a,b;
    cin>>a>>b;

    arr[a]=a;
    arr[b]=b;
    for(int i=1;i<=3;i++)
        if(arr[i]==0)
        return cout<<i,0;
    return 0;
}


Compiler output:
a.cc:7:24: error: 'a' does not name a type
    7 | const int maxn=2*1e5+5;a int arr[4];
      |                        ^
a.cc: In function 'int main()':
a.cc:15:5: error: 'arr' was not declared in this scope
   15 |     arr[a]=a;
      |     ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define freinput "input.txt","r",stdin
#define freoutput "output.txt","w",stdout
#define mp make_pair
#define fi first
#define sc second
#define pb push_back
#define ellapse printf("Time : %0.3lf\n",clock()*1.0/CLOCKS_PER_SEC);
typedef long long ll;
typedef unsigned long int uld;
typedef vector<int> vi;
typedef vector<string> vs;
typedef pair<int,int> pii;
struct comp {
       bool operator() (int a,int b) {
            return a>b;
       }
};

int main(){
//    #ifdef chris
//    freopen(freinput);
//    freopen(freoutput);
//    #endif // chris
//    ios::sync_with_stdio(false);
    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 if(a == 2 && b == 3) || (a == 3 && b==2)cout<<1<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:27: error: expected primary-expression before '||' token
   29 |     if (a == 1 && b == 2) || (a == 2 && b == 1)cout<<3<<endl;
      |                           ^~
a.cc:30:31: error: expected primary-expression before '||' token
   30 |     else if(a == 1 && b == 3) || (a==3&&b==1) cout<<2<<endl;
      |                               ^~
a.cc:31:31: error: expected primary-expression before '||' token
   31 |     else if(a == 2 && b == 3) || (a == 3 && b==2)cout<<1<<endl;
      |                               ^~
Language: C++

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


Compiler output:
a.cc:3:6: error: expected constructor, destructor, or type conversion before '(' token
    3 | scanf("%d %d",&a,&b);
      |      ^
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(a+b==3)
      | ^~
a.cc:6:5: error: expected unqualified-id before 'else'
    6 |     else if(a+b==5)
      |     ^~~~
a.cc:8:9: error: expected unqualified-id before 'else'
    8 |         else printf("2");
      |         ^~~~
a.cc:9:5: error: expected unqualified-id before 'return'
    9 |     return 0;
      |     ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

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

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(bits/stdc++.h)
      |         ^
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << c;
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: lvalue required as left operand of assignment
    9 |   else if(a+b=4) c = 2;
      |           ~^~
Language: C++

#include <iostream>
using namespace std;

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

cout << 6 - a + b << endl;

Compiler output:
a.cc:11:1: error: 'cout' does not name a type
   11 | cout << 6 - a + b << endl;
      | ^~~~
Language: C++

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

int main() {
  int N, M;
  cin >> N >> M;
  vector<int> ans(3);
  for(int i = 0; i < 3; i++){
    if(N-1 != ans.at(i) || M-1 != ans.at(i)){
      cout << ans.at(i);
    }

}


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

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

int main() {
  
  char N, M;
  cin >> N >> M;
  
  if((N = 1 && M = 2) ||(N = 2 && M = 1)){
    cout << 3 << endl;
  }
  if((N = 2 && M = 3) ||(N = 3 && M = 2)){
    cout << 1 << endl;
  }
  if((N = 1 && M = 3) ||(N = 3 && M = 1)){
    cout << 2 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: lvalue required as left operand of assignment
    9 |   if((N = 1 && M = 2) ||(N = 2 && M = 1)){
      |           ~~^~~~
a.cc:9:32: error: lvalue required as left operand of assignment
    9 |   if((N = 1 && M = 2) ||(N = 2 && M = 1)){
      |                              ~~^~~~
a.cc:12:13: error: lvalue required as left operand of assignment
   12 |   if((N = 2 && M = 3) ||(N = 3 && M = 2)){
      |           ~~^~~~
a.cc:12:32: error: lvalue required as left operand of assignment
   12 |   if((N = 2 && M = 3) ||(N = 3 && M = 2)){
      |                              ~~^~~~
a.cc:15:13: error: lvalue required as left operand of assignment
   15 |   if((N = 1 && M = 3) ||(N = 3 && M = 1)){
      |           ~~^~~~
a.cc:15:32: error: lvalue required as left operand of assignment
   15 |   if((N = 1 && M = 3) ||(N = 3 && M = 1)){
      |                              ~~^~~~
Language: C++

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

int main() {
  int N, M;
  cin >> N, M;
  
  if((N = 1 && M = 2) ||(N = 2 && M = 1)){
    cout << 3 << endl;
  }
  if((N = 2 && M = 3) ||(N = 3 && M = 2)){
    cout << 1 << endl;
  }
  if((N = 1 && M = 3) ||(N = 3 && M = 1)){
    cout << 2 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |   if((N = 1 && M = 2) ||(N = 2 && M = 1)){
      |           ~~^~~~
a.cc:8:32: error: lvalue required as left operand of assignment
    8 |   if((N = 1 && M = 2) ||(N = 2 && M = 1)){
      |                              ~~^~~~
a.cc:11:13: error: lvalue required as left operand of assignment
   11 |   if((N = 2 && M = 3) ||(N = 3 && M = 2)){
      |           ~~^~~~
a.cc:11:32: error: lvalue required as left operand of assignment
   11 |   if((N = 2 && M = 3) ||(N = 3 && M = 2)){
      |                              ~~^~~~
a.cc:14:13: error: lvalue required as left operand of assignment
   14 |   if((N = 1 && M = 3) ||(N = 3 && M = 1)){
      |           ~~^~~~
a.cc:14:32: error: lvalue required as left operand of assignment
   14 |   if((N = 1 && M = 3) ||(N = 3 && M = 1)){
      |                              ~~^~~~
Language: C++

#include <iostream>
#include <bitset>
#include <intrin.h>

using namespace std;

int A, B, check[4];

int main(void) {

	cin >> A >> B;

	check[A] = 1;
	check[B] = 1;

	for (int i = 1; i <= 3; i++) {
		if (check[i] == 0) { cout << i << endl; }
	}

	return 0;
}

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

#include<bits/stdio.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{
cout << 3 << endl;
  }
}

Compiler output:
In file included from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:23:3: error: #error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
   23 | # error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
      |   ^~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> A >> B;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<bits/stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout << 1 << endl;
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:14: error: 'endl' was not declared in this scope
    7 | cout << 1 << endl;
      |              ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<bits/stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout << 2 << endl;
      | ^~~~
a.cc:9:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:14: error: 'endl' was not declared in this scope
    9 | cout << 2 << endl;
      |              ^~~~
a.cc:9:14: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout << 3 << endl;
      | ^~~~
a.cc:11:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:14: error: 'endl' was not declared in this scope
   11 | cout << 3 << endl;
      |              ^~~~
a.cc:11:14: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <iomanip>
#include <vector>
#include <set>
#include <map>
#include <string>
#include <algorithm>
#include <math.h>
typedef long long ll;
using namespace std;

int main()
{
	int n; cin >> n;
	int cnts = 0, cntt = 0;
	string s, t;
	cin >> s >> t;
	char out[120];
	memset(out, 0x00, 120);
	for (int i = 0; i < n*2; i++)
	{
		if (i % 2 != 0) {
			out[i] = t[cntt];
			cntt++;
		}
		else {
			out[i] = s[cnts];
			cnts++;
		}
	}
	cout << out << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'memset' was not declared in this scope
   19 |         memset(out, 0x00, 120);
      |         ^~~~~~
a.cc:9:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    8 | #include <math.h>
  +++ |+#include <cstring>
    9 | typedef long long ll;
Language: C

#include<stdio.h>

int main(void){
  int a, b;
  scanf("%d", &a);
  scanf("%d", &b);
  
  if(a+b == 3){
    printf("%d", 3);
    return 0;
  }else if(a+b == 4){
    printf("%d", 2);
    return 0;
  else{
    printf("%d", 1);
    return 0;
  }
}

Compiler output:
main.c: In function 'main':
main.c:14:3: error: expected '}' before 'else'
   14 |   else{
      |   ^~~~
Language: C++

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

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


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

#include <string>
#include <vector>
#include <cstring>
#include <algorithm>
#include <iostream> 
#include <cmath>
 
using namespace std;
typedef long long ll;
typedef long double ld;

//repetition
#define REP(i,n)  for(ll i=0;i<n;i++)

ll P_POW(ll i, ll n) {
  if(n==0) return 1;

  n--;
  ll rep = i;

  while(n) {
    rep = rep * i;
    n--;
  }
  return rep;
} 

unsigned GetDigit(unsigned num){
    unsigned digit=0;
    while(num!=0){
        num /= 10;
        digit++;
    }
    return digit;
}
 
unsigned binarySearch(ll target, ll max, ll min) {
  while((max - min) > 1) {
      if((max + min)/2 > target) {
        max = (max + min)/2;
        min = min;
      } else {
        max = max;
        min = (max + min)/2;
      }
    }
}

ll n;


long long solve2(long long N) {
    if (N % 2 == 1) return 0;

    long long res = 0;
    N /= 2;
    while (N) {
        res += N / 5;
        cout << "N/5: " << N/5 <<  endl;
        cout << "res1: " << res <<  endl;
        N /= 5;
    }
    return res;
}


ll solve(ll n) {
    if (n % 2 == 1) return 0;

    ll res = 0;
    n /= 2;
    int c = 1;

    while (n/P_POW(5,c) {
      res += n/P_POW(5,c);
      c++;
    }
    return res;
}

int main() {
  ll n;
  cin >> n;
  cout << solve(n) << endl;
}


Compiler output:
a.cc: In function 'unsigned int binarySearch(ll, ll, ll)':
a.cc:47:1: warning: no return statement in function returning non-void [-Wreturn-type]
   47 | }
      | ^
a.cc: In function 'll solve(ll)':
a.cc:74:24: error: expected ')' before '{' token
   74 |     while (n/P_POW(5,c) {
      |           ~            ^~
      |                        )
Language: C++

#include<iostream>
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:28: error: statement cannot resolve address of overloaded function
    7 |     cout << 6 - a - b; endl;
      |                            ^
Language: C++

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

Compiler output:
a.cc:3:1: error: expected initializer before 'int'
    3 | int A,B;
      | ^~~
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;
      | ^~~
      | 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:5:6: error: 'A' was not declared in this scope
    5 | cin>>A;
      |      ^
a.cc:6:6: error: 'B' was not declared in this scope
    6 | cin>>B;
      |      ^
a.cc:7:1: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 | ans=6-A-B;
      | ^~~
      | abs
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | cout<<ans<<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | cout<<ans<<endl;
      |            ^~~~
      |            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
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;
      | ^~~
      | 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:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | cout<<ans<<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | cout<<ans<<endl;
      |            ^~~~
      |            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,ar[5];
  ar[1]=0;
  ar[2]=0;
  ar[3]=0;
  cin>>a>>b;
  ar[a]=1;
  ar[b]=1;
  for(int i=1;i<=3;i++)
  {
    if(ar[i]==0;
       {
         cout<<i<<endl;
         break;
       }
       }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: expected primary-expression before '{' token
   15 |        {
      |        ^
a.cc:14:17: error: expected ')' before '{' token
   14 |     if(ar[i]==0;
      |       ~         ^
      |                 )
   15 |        {
      |        ~         
a.cc:19:8: error: expected primary-expression before '}' token
   19 |        }
      |        ^
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 if ( A + B = 5 ){
    cout << 1 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: lvalue required as left operand of assignment
    8 |   if ( A + B = 3){
      |        ~~^~~
a.cc:10:16: error: lvalue required as left operand of assignment
   10 |   }else if ( A + B = 4 ){
      |              ~~^~~
a.cc:12:16: error: lvalue required as left operand of assignment
   12 |   }else if ( A + B = 5 ){
      |              ~~^~~
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 if ( A + B = 5 ){
        cout << 1 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: lvalue required as left operand of assignment
    8 |       if ( A + B = 3){
      |            ~~^~~
a.cc:10:20: error: lvalue required as left operand of assignment
   10 |       }else if ( A + B = 4 ){
      |                  ~~^~~
a.cc:12:20: error: lvalue required as left operand of assignment
   12 |       }else if ( A + B = 5 ){
      |                  ~~^~~
Language: C++

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before '}' token
    8 |   cout << 6-a-b
      |                ^
      |                ;
    9 | }
      | ~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class atcoder_148A {
	static class FastReader{
		BufferedReader br;
		StringTokenizer st;
		public FastReader(){
			br = new BufferedReader(new InputStreamReader(System.in));
		}
		public String next() {
			while(st==null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch(IOException e) {
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}
		int nextInt() {
			return Integer.parseInt(next());
		}
		long nextLong() {
			return Long.parseLong(next());
		}
	}
	public static void main(String[] args) {
		FastReader ob = new FastReader();
		int arr[] =new int[3];
		arr[ob.nextInt()-1] = 1;
		arr[ob.nextInt()-1]= 1;
		for (int i = 0; i < arr.length; i++) {
			if(arr[i]==0) {
				System.out.println(i+1);
				break;
			}
		}
	}

}


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

#include<iostream>
using namespace std;
void main()
{
  int s;
  int a,b,c;
  cin>>a>>b;
  s=6-(a+b);;
  if(s==3)
  cout<<3;
  else if(s==2)
    cout<<2;
  else
    cout<<1
}


Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:14:12: error: expected ';' before '}' token
   14 |     cout<<1
      |            ^
      |            ;
   15 | }
      | ~
Language: C++

#include<iostream>
void main()
{
  int a,b,c;
  cin>>a>>b;
  cout<<c;
}


Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
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 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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<c;
      |   ^~~~
      |   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 <bits/stdc++.h>
using namespace std;

int main() {

	int A,B,C;
  cin>>A>>B;
for(int i=1;i<4;i++){
  C=i;
  if(A!=C && B!=C){cout<<C<<endl;}
}


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

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

int main(){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int sum=0,t;
  for(int i=0;i<;i++){
    cin>>t;
    sum+=t;
  }
  cout<<6-sum;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:4:3: error: too few arguments to function 'printf'
    4 |   printf();scanf("%d",&A);
      |   ^~~~~~
In file included from main.c:1:
/usr/include/stdio.h:363:12: note: declared here
  363 | extern int printf (const char *__restrict __format, ...);
      |            ^~~~~~
main.c:5:3: error: too few arguments to function 'printf'
    5 |   printf();scanf("%d",&B);
      |   ^~~~~~
/usr/include/stdio.h:363:12: note: declared here
  363 | extern int printf (const char *__restrict __format, ...);
      |            ^~~~~~
Language: C++

#include<stdio.h>
int A;
int B;
int C;
C = 6 - A - B;
printf C;

Compiler output:
a.cc:5:1: error: 'C' does not name a type
    5 | C = 6 - A - B;
      | ^
a.cc:6:1: error: 'printf' does not name a type
    6 | printf C;
      | ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include<stdio.h>
  +++ |+#include <cstdio>
    2 | int A;
Language: C++

#include "stdafx.h"
#include <iostream>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>

typedef long long unsigned int ll;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

using namespace std;


int main()
{
	int a,b;
	int ans;

	cin >> a;
	cin >> b;
	if (a == 1) {
		if (b == 2) {
			ans = 3;
		}
		else if (b == 3) {
			ans = 2;
		}
	}
	else if (a == 2) {
		if (b == 1) {
			ans = 3;
		}
		else if (b == 3) {
			ans = 1;
		}
	}
	else if (a == 3) {
		if (b == 1) {
			ans = 2;
		}
		else if (b == 2) {
			ans = 2;
		}
	}

	cout << ans << endl;

	return 0;
}


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

#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
int a,b;
bool f[4];
int main() {
	scanf("%d%d",&a,&b);
	f[a]=f[b]=true;
	if (!f[1]) puts("1");
	else if (!f[2]) puts("2");
	else puts("3");
	return 0;
}

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

#include<iostream>
using namespace std;
 
int n;
string s,t;
int main() {
  cin >> n;
  cin >> s >> t;
  for(int i=0;i<n;++i)
  	cout << s[i] << t[i];
  cout << ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   cout << ans;
      |           ^~~
      |           abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int n;
    cin >> n;
    vector<long long> a(n);
    for (long long i=0;i<n;++i) 
      cin >> a[i];
    long long k=1;
    for (long long i=0;i<n;++i) {
        if (a[i] == k) {
            k++;
        }        
    }
    
    if (k==1) {
        cout << -1;
    } else {
        cout << i-(k-1);
    }
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:17: error: 'i' was not declared in this scope
   20 |         cout << i-(k-1);
      |                 ^
Language: C++

#include <iostream>
using namespace std;
string s;
int i;
long long a,b,k;
main() {
cin>>a>>b;
  i=__gcd(a,b);
  cout<<(a*b)/i;
}


Compiler output:
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:5: error: '__gcd' was not declared in this scope
    8 |   i=__gcd(a,b);
      |     ^~~~~
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b;
  for (int i=0;i<3;i++) {
    if (i ！= a && i ！= b) cout << i << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ')' before '\U0000ff01'
    8 |     if (i ！= a && i ！= b) cout << i << endl;
      |        ~ ^~~
      |          )
Language: C++

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

int main() {
  int s,b;
  cin >> a >> b;
  for (int i=0;i<3;i++) {
    if (i ！= a && i ！= b) cout << i << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b;
      |          ^
a.cc:8:10: error: expected ')' before '\U0000ff01'
    8 |     if (i ！= a && i ！= b) cout << i << endl;
      |        ~ ^~~
      |          )
Language: C++

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

int mainz() {
  int s,b;
  cin >> a >> b;
  for (int i=0;i<3;i++) {
    if (i ！= a && i ！= b) cout << i << endl;
  }
}

Compiler output:
a.cc: In function 'int mainz()':
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b;
      |          ^
a.cc:8:10: error: expected ')' before '\U0000ff01'
    8 |     if (i ！= a && i ！= b) cout << i << endl;
      |        ~ ^~~
      |          )
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
Language: C++

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

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

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

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

import java.util.Scanner;

public class RoundOne {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		int a = Integer.parseInt(scan.nextLine());
		int b = Integer.parseInt(scan.nextLine());
		int ans;
		
		if ((a + b) % 3 == 0) {
			ans = 3;
		} else if ((a + b) % 3 == 1) {
			ans = 2;
		} else {
			ans = 1;
		}
		System.out.println(ans);
	}
}


Compiler output:
Main.java:3: error: class RoundOne is public, should be declared in a file named RoundOne.java
public class RoundOne {
       ^
1 error
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;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expression cannot be used as a function
   10 |   if((a == 1 )(b == 2 )){
      |      ~~~~~~~~~^~~~~~~~~
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 == 1)(b == 3); {
  cout << 2 << endl;
 }
 else if(a == 2 )(b == 1); {
  cout << 3 << endl;
 }
 else if(a == 2 )(b == 3); {
  cout << 1 << endl; 
 }
 else if(a == 3 )(b == 1); {
  cout << 2 << endl;
 }
  else if(a == 3 )(b == 2;) {
 cout << 1 << endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:2: error: 'else' without a previous 'if'
   13 |  else if(a == 1)(b == 3); {
      |  ^~~~
a.cc:16:2: error: 'else' without a previous 'if'
   16 |  else if(a == 2 )(b == 1); {
      |  ^~~~
a.cc:19:2: error: 'else' without a previous 'if'
   19 |  else if(a == 2 )(b == 3); {
      |  ^~~~
a.cc:22:2: error: 'else' without a previous 'if'
   22 |  else if(a == 3 )(b == 1); {
      |  ^~~~
a.cc:25:3: error: 'else' without a previous 'if'
   25 |   else if(a == 3 )(b == 2;) {
      |   ^~~~
a.cc:25:26: error: expected ')' before ';' token
   25 |   else if(a == 3 )(b == 2;) {
      |                   ~      ^
      |                          )
a.cc:25:27: error: expected primary-expression before ')' token
   25 |   else if(a == 3 )(b == 2;) {
      |                           ^
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 == 1)(b == 3) {
  cout << 2 << endl;
 }
 else if(a == 2 )(b == 1) {
  cout << 3 << endl;
 }
 else if(a == 2 )(b == 3) {
  cout << 1 << endl; 
 }
 else if(a == 3 )(b == 1) {
  cout << 2 << endl;
 }
  else if(a == 3 )(b == 2) {
 cout << 1 << endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before '{' token
   10 |  if(a == 1)(b == 2) {
      |                    ^~
      |                    ;
a.cc:13:25: error: expected ';' before '{' token
   13 |  else if(a == 1)(b == 3) {
      |                         ^~
      |                         ;
a.cc:16:26: error: expected ';' before '{' token
   16 |  else if(a == 2 )(b == 1) {
      |                          ^~
      |                          ;
a.cc:19:26: error: expected ';' before '{' token
   19 |  else if(a == 2 )(b == 3) {
      |                          ^~
      |                          ;
a.cc:22:26: error: expected ';' before '{' token
   22 |  else if(a == 3 )(b == 1) {
      |                          ^~
      |                          ;
a.cc:25:27: error: expected ';' before '{' token
   25 |   else if(a == 3 )(b == 2) {
      |                           ^~
      |                           ;