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

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


int main() {
    int n,m;
    scanf("%d¥n",&n);
    scanf("%d¥n",&m);
    if((n==1&&m==2)||(n==2&&m==1))
       {
       printf("3");
       }
    elseif((n==2&&m==3)||(n==3&&m==2));
       {
       printf("1");
       }
    elseif((n==1&&m==3)||(n==3&&m==1));
      {
       printf("2");
       }
    else
    {
    }
    exit();
}
#include <stdio.h>
#include <stdlib.h>


int main() {
    int n,m;
    scanf("%d¥n",&n);
    scanf("%d¥n",&m);
    if((n==1&&m==2)||(n==2&&m==1))
       {
       printf("3");
       }
    elseif((n==2&&m==3)||(n==3&&m==2));
       {
       printf("1");
       }
    elseif((n==1&&m==3)||(n==3&&m==1));
      {
       printf("2");
       }
    else
    {
    }
    exit();
}


Compiler output:
main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   13 |     elseif((n==2&&m==3)||(n==3&&m==2));
      |     ^~~~~~
main.c:21:5: error: 'else' without a previous 'if'
   21 |     else
      |     ^~~~
main.c:24:5: error: too few arguments to function 'exit'
   24 |     exit();
      |     ^~~~
In file included from main.c:2:
/usr/include/stdlib.h:756:13: note: declared here
  756 | extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
      |             ^~~~
main.c: At top level:
main.c:30:5: error: redefinition of 'main'
   30 | int main() {
      |     ^~~~
main.c:5:5: note: previous definition of 'main' with type 'int()'
    5 | int main() {
      |     ^~~~
main.c: In function 'main':
main.c:46:5: error: 'else' without a previous 'if'
   46 |     else
      |     ^~~~
main.c:49:5: error: too few arguments to function 'exit'
   49 |     exit();
      |     ^~~~
/usr/include/stdlib.h:756:13: note: declared here
  756 | extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
      |             ^~~~
Language: C++

#incldue <btis/stdc++.h>
using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <btis/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: 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 | #incldue <btis/stdc++.h>
a.cc:7:9: error: 'vector' was not declared in this scope
    7 |         vector<int> v(3,1);
      |         ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #incldue <btis/stdc++.h>
a.cc:7:16: error: expected primary-expression before 'int'
    7 |         vector<int> v(3,1);
      |                ^~~
a.cc:8:9: error: 'v' was not declared in this scope
    8 |         v[a-1]=0;
      |         ^
a.cc:12:20: error: 'cout' was not declared in this scope
   12 |         if(v[i]==1)cout<<i+1<<endl;
      |                    ^~~~
a.cc:12:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:31: error: 'endl' was not declared in this scope
   12 |         if(v[i]==1)cout<<i+1<<endl;
      |                               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incldue <btis/stdc++.h>
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int A;
  
  A=1,2,3;
  
  int B;
  
  B=1,2,3;
   
  if (A != B && int x; x != A,B ){
  cout << x << endl;
 }
        
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected primary-expression before 'int'
   14 |   if (A != B && int x; x != A,B ){
      |                 ^~~
a.cc:14:24: error: 'x' was not declared in this scope
   14 |   if (A != B && int x; x != A,B ){
      |                        ^
Language: C++

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

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

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

using System;
using static System.Console;

namespace ans
{
	class Program
    {
    	static void Main(string[] args)
        {
        	int a = int.Parse(ReadLine());
            int b = int.Parse(ReadLine());
            WriteLine(6 - a - b);
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'static'
    2 | using static System.Console;
      |       ^~~~~~
a.cc:8:26: error: 'string' has not been declared
    8 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:8:35: error: expected ',' or '...' before 'args'
    8 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:14:6: error: expected ';' after class definition
   14 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ans::Program::Main(int*)':
a.cc:10:25: error: expected primary-expression before 'int'
   10 |                 int a = int.Parse(ReadLine());
      |                         ^~~
a.cc:11:21: error: expected primary-expression before 'int'
   11 |             int b = int.Parse(ReadLine());
      |                     ^~~
a.cc:12:13: error: 'WriteLine' was not declared in this scope
   12 |             WriteLine(6 - a - b);
      |             ^~~~~~~~~
Language: C

int i,j;
scan("%d %d",&i,&j);
if (i==1 && j==2) || (i==2 && j==1)
  printf(3);
else if (i==1 && j==3) || (i==3 && j==1)
  printf(2);
else
  printf(1);

Compiler output:
main.c:2:6: error: expected declaration specifiers or '...' before string constant
    2 | scan("%d %d",&i,&j);
      |      ^~~~~~~
main.c:2:14: error: expected declaration specifiers or '...' before '&' token
    2 | scan("%d %d",&i,&j);
      |              ^
main.c:2:17: error: expected declaration specifiers or '...' before '&' token
    2 | scan("%d %d",&i,&j);
      |                 ^
main.c:3:1: error: expected identifier or '(' before 'if'
    3 | if (i==1 && j==2) || (i==2 && j==1)
      | ^~
main.c:5:1: error: expected identifier or '(' before 'else'
    5 | else if (i==1 && j==3) || (i==3 && j==1)
      | ^~~~
main.c:7:1: error: expected identifier or '(' before 'else'
    7 | else
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected primary-expression before ';' token
    8 |         cin>>a>>;
      |                 ^
a.cc:9:17: error: expected primary-expression before ';' token
    9 |         cin>>b>>;
      |                 ^
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:5: error: cannot find symbol
	Scanner sc = new Scanner(System.in);ArrayList<Integer> a = new ArrayList<Integer>();
	                                    ^
  symbol:   class ArrayList
  location: class Main
Main.java:5: error: cannot find symbol
	Scanner sc = new Scanner(System.in);ArrayList<Integer> a = new ArrayList<Integer>();
	                                                               ^
  symbol:   class ArrayList
  location: class Main
2 errors
Language: C++

print("".join(str(x) for x in ({1, 2, 3} - {int(input()), int(input())})))

Compiler output:
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
    1 | print("".join(str(x) for x in ({1, 2, 3} - {int(input()), int(input())})))
      |      ^
a.cc:1:42: error: expected unqualified-id before '-' token
    1 | print("".join(str(x) for x in ({1, 2, 3} - {int(input()), int(input())})))
      |                                          ^
a.cc:1:72: error: expected unqualified-id before ')' token
    1 | print("".join(str(x) for x in ({1, 2, 3} - {int(input()), int(input())})))
      |                                                                        ^
Language: C

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


int main() {
    int n,m;
    scanf("%d¥n",&n);
    scanf("%d¥n",&m);
    if((n=1&&m=2)||(n=2&&m=1)){
       printf("3");
       }
    elseif((n=2&&m=3)||(n=3&&m=2)){
       printf("1");
       }
    elseif((n=1&&m=3)||(n=3&&m=1)){
       printf("2");
       }
    else{
    }
    exit();
}


Compiler output:
main.c: In function 'main':
main.c:9:15: error: lvalue required as left operand of assignment
    9 |     if((n=1&&m=2)||(n=2&&m=1)){
      |               ^
main.c:9:27: error: lvalue required as left operand of assignment
    9 |     if((n=1&&m=2)||(n=2&&m=1)){
      |                           ^
main.c:12:5: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   12 |     elseif((n=2&&m=3)||(n=3&&m=2)){
      |     ^~~~~~
main.c:12:19: error: lvalue required as left operand of assignment
   12 |     elseif((n=2&&m=3)||(n=3&&m=2)){
      |                   ^
main.c:12:31: error: lvalue required as left operand of assignment
   12 |     elseif((n=2&&m=3)||(n=3&&m=2)){
      |                               ^
main.c:12:35: error: expected ';' before '{' token
   12 |     elseif((n=2&&m=3)||(n=3&&m=2)){
      |                                   ^
      |                                   ;
Language: C++

import java.util.*;
 
class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
      	int a = Integer.parseInt(sc.next());
      	int b = Integer.parseInt(sc.next());
      
      	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:4:15: error: expected ':' before 'static'
    4 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:4:33: error: 'String' has not been declared
    4 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:4:42: error: expected ',' or '...' before 'args'
    4 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:11:2: error: expected ';' after class definition
   11 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:9: error: 'Scanner' was not declared in this scope
    5 |         Scanner sc = new Scanner(System.in);
      |         ^~~~~~~
a.cc:6:17: error: 'Integer' was not declared in this scope
    6 |         int a = Integer.parseInt(sc.next());
      |                 ^~~~~~~
a.cc:6:34: error: 'sc' was not declared in this scope
    6 |         int a = Integer.parseInt(sc.next());
      |                                  ^~
a.cc:9:9: error: 'System' was not declared in this scope
    9 |         System.out.println(6 - (a + b));
      |         ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 if (A != B){
  int A;
  
  A=1,2,3;
  
  int B;
  
  B=1,2,3;
  
  cout << A << B << endl;
  
 }
        
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'A' was not declared in this scope
    5 |  if (A != B){
      |      ^
a.cc:5:11: error: 'B' was not declared in this scope
    5 |  if (A != B){
      |           ^
a.cc:6:7: error: redeclaration of 'int A'
    6 |   int A;
      |       ^
a.cc:5:6: note: '<typeprefixerror>A' previously declared here
    5 |  if (A != B){
      |      ^
a.cc:10:7: error: redeclaration of 'int B'
   10 |   int B;
      |       ^
a.cc:5:11: note: '<typeprefixerror>B' previously declared here
    5 |  if (A != B){
      |           ^
Language: C++

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

int main()
{
  int A;
  int B;
  int quizChoice [] = {1, 2, 3};

  cin >> A;
  cin >> B;

  quizChoice.remove(A);
  quizChoice.remove(B);

  return quizChoice[0];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: request for member 'remove' in 'quizChoice', which is of non-class type 'int [3]'
   13 |   quizChoice.remove(A);
      |              ^~~~~~
a.cc:14:14: error: request for member 'remove' in 'quizChoice', which is of non-class type 'int [3]'
   14 |   quizChoice.remove(B);
      |              ^~~~~~
Language: C++

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

int main()
{
  int A;
  int B;
  int quizChoice [] = {1, 2, 3}

  cin >> A;
  cin >> B;

  quizChoice.remove(A);
  quizChoice.remove(B);

  return quizChoice[0]
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'cin'
   10 |   cin >> A;
      |   ^~~
a.cc:13:14: error: request for member 'remove' in 'quizChoice', which is of non-class type 'int [3]'
   13 |   quizChoice.remove(A);
      |              ^~~~~~
a.cc:14:14: error: request for member 'remove' in 'quizChoice', which is of non-class type 'int [3]'
   14 |   quizChoice.remove(B);
      |              ^~~~~~
a.cc:16:23: error: expected ';' before '}' token
   16 |   return quizChoice[0]
      |                       ^
      |                       ;
   17 | }
      | ~
Language: C++

#include<bits/stdc++.h>

int main(){
    using namespace std;
    unsigned long A, B;
    cin >> A >> B;
    cout << A ^ B << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: invalid operands of types 'long unsigned int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |     cout << A ^ B << endl;
      |                 ~~^~~~~~~
Language: C

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

int main()
{
	char *s;
	char *t;
	int n;
	
	scanf("%d", &n);
	
	s = (char *)malloc(sizeof(char) * n);
	t = (char *)malloc(sizeof(char) * n);
	
	scanf("%s", s);
	scanf("%s", t);
	
	for(int i = 0; i < n; i++){
		printf("%c%c", s[i], t[i]);
	}
	printf("\n");3
		
	
	free(s);
	free(t);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:23: error: expected ';' before 'free'
   21 |         printf("\n");3
      |                       ^
      |                       ;
......
   24 |         free(s);
      |         ~~~~
Language: C++

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

int main()
{
  int A;
  int B;
  int quizChoice [] = {1, 2, 3}

  cin >> A;
  cin >> B;

  quizChoice.remove(A);
  quizChoice.remove(B);

  return quizChoice[0]
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A!=B;
 
  int A;
  
  A=1,2,3;
  
  int B;
  
  B=1,2,3;
  
  cout << A << B << endl;
    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '!=' token
    5 |   int A!=B;
      |        ^~
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 (A == 3, B == 1) 
  cout << 2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected ';' before 'cout'
   13 |   else (A == 3, B == 1)
      |                        ^
      |                        ;
   14 |   cout << 2 << endl;
      |   ~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'c' was not declared in this scope
    7 |   c=6-a-b;cout<<c<<"\n";
      |   ^
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 (A == 3, B == 1) {
  cout << 2 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected ';' before '{' token
   13 |   else (A == 3, B == 1) {
      |                        ^~
      |                        ;
Language: C++

#include<stdio.h>
int main()
{
    int a,b;
    int vis[10];
    scanf("%d%d",&a,&b);
        for(int i=1;i<=10;i++)
        vis[i]=0;
        vis[a]=1;
        vis[b]=1;
        for(int i=1;i<=3;i++)
        {
            if(!vis[i])
            break;
        }
        printf("%d\n",i);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: 'i' was not declared in this scope
   16 |         printf("%d\n",i);
      |                       ^
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 != 1 && B != 1) {
      System.out.println(1);
    } else if (a != 2 && B != 2) {
      System.out.println(2);
    } else if (a != 3 && B != 3) {
      System.out.println(3);
    }
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    if (a != 1 && B != 1) {
                  ^
  symbol:   variable B
  location: class Main
Main.java:11: error: cannot find symbol
    } else if (a != 2 && B != 2) {
                         ^
  symbol:   variable B
  location: class Main
Main.java:13: error: cannot find symbol
    } else if (a != 3 && B != 3) {
                         ^
  symbol:   variable B
  location: class Main
3 errors
Language: C

#include<stdio.h>
int main()
{
	int a,b;
  	scanf("%d",&a);
	scanf("%d",&b);
	int x[3]={1,2,3};
	for(int i=0;i<3;i++)
	{
		if(a[i]!=a || a[i]!=b)
			printf("%d",a[i]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:21: error: subscripted value is neither array nor pointer nor vector
   10 |                 if(a[i]!=a || a[i]!=b)
      |                     ^
main.c:10:32: error: subscripted value is neither array nor pointer nor vector
   10 |                 if(a[i]!=a || a[i]!=b)
      |                                ^
main.c:11:38: error: subscripted value is neither array nor pointer nor vector
   11 |                         printf("%d",a[i]);
      |                                      ^
Language: C

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

int main()
{
	char *s;
	char *t;
	int n;
	
	scanf("%d", &n);
	
	s = (char *)malloc(sizeof(char) * n);
	t = (char *)malloc(sizeof(char) * n);
	
	scanf("%s", s);
	scanf("%s", t);
	
	for(int i = 0; i < n; i++){
		printf("%c%c", s[i], t[i]);
	}
	printf("\n");itn 
	
	free(s);
	free(t);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:22: error: unknown type name 'itn'; did you mean 'int'?
   21 |         printf("\n");itn
      |                      ^~~
      |                      int
main.c:23:9: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
   23 |         free(s);
      |         ^~~~
main.c:23:9: error: conflicting types for 'free'; have 'int()'
In file included from main.c:2:
/usr/include/stdlib.h:687:13: note: previous declaration of 'free' with type 'void(void *)'
  687 | extern void free (void *__ptr) __THROW;
      |             ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  	int A,B;
  	cin>>A>>B;
  	if(A==2&&B==3)||(A==3&&B==2){
      	cout<<"1";
    }
     else if(A==1&&B==3)||(A==3&&B==1){
       	cout<<"2";
     }
      else if(A==1&&B==2)||(A==2&&B==1){
        cout<<"3";
      }
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected primary-expression before '||' token
    6 |         if(A==2&&B==3)||(A==3&&B==2){
      |                       ^~
a.cc:9:25: error: expected primary-expression before '||' token
    9 |      else if(A==1&&B==3)||(A==3&&B==1){
      |                         ^~
a.cc:12:26: error: expected primary-expression before '||' token
   12 |       else if(A==1&&B==2)||(A==2&&B==1){
      |                          ^~
Language: C++

#include<iostream>

using namespace std;

int main(){
  int i;
  double N,S,T,A;
  
     cin>>N>>S>>T;              //外部入力読み込み方法
   
  double S2 =new double[N];
  double T2 =new double[N];      //動的配列割り当て


  for(i =1; i<=N;i++){
    
     S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
　　 T2[i]=T % 10; // Tを10で割った時のあまり
　  
  }

  for (i=1; i<=2*N; i++){

    A=A+T[i]*pow(10,2*(i-1));
    A=A+S[i]*pow(10,2*i-1);
  }  

cout <<A ;

 return 0;
}


Compiler output:
a.cc:18:1: error: extended character 　 is not valid in an identifier
   18 | 　　 T2[i]=T % 10; // Tを10で割った時のあまり
      | ^
a.cc:18:1: error: extended character 　 is not valid in an identifier
a.cc:19:1: error: extended character 　 is not valid in an identifier
   19 | 　
      | ^
a.cc: In function 'int main()':
a.cc:11:25: error: expression in new-declarator must have integral or enumeration type
   11 |   double S2 =new double[N];
      |                         ^
a.cc:11:26: error: cannot convert 'double*' to 'double' in initialization
   11 |   double S2 =new double[N];
      |                          ^
      |                          |
      |                          double*
a.cc:12:25: error: expression in new-declarator must have integral or enumeration type
   12 |   double T2 =new double[N];      //動的配列割り当て
      |                         ^
a.cc:12:26: error: cannot convert 'double*' to 'double' in initialization
   12 |   double T2 =new double[N];      //動的配列割り当て
      |                          ^
      |                          |
      |                          double*
a.cc:17:8: error: invalid types 'double[int]' for array subscript
   17 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |        ^
a.cc:17:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   17 |      S2[i]=S % 10; //Sを10で割った時のあまり=1桁目の数
      |            ~ ^ ~~
      |            |   |
      |            |   int
      |            double
a.cc:18:1: error: '\U00003000\U00003000' was not declared in this scope
   18 | 　　 T2[i]=T % 10; // Tを10で割った時のあまり
      | ^~~~
a.cc:19:1: error: '\U00003000' was not declared in this scope
   19 | 　
      | ^~
a.cc:24:10: error: invalid types 'double[int]' for array subscript
   24 |     A=A+T[i]*pow(10,2*(i-1));
      |          ^
a.cc:24:14: error: 'pow' was not declared in this scope
   24 |     A=A+T[i]*pow(10,2*(i-1));
      |              ^~~
a.cc:25:10: error: invalid types 'double[int]' for array subscript
   25 |     A=A+S[i]*pow(10,2*i-1);
      |          ^
Language: C++

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

Compiler output:
a.cc:7:3: error: extended character 　 is not valid in an identifier
    7 |   　return 0;
      |   ^
a.cc: In function 'int main()':
a.cc:7:3: error: '\U00003000return' was not declared in this scope; did you mean 'sigreturn'?
    7 |   　return 0;
      |   ^~~~~~~~
      |   sigreturn
Language: C++

#include<stdio.h>
int main()
{
    int a,b;
    int vis[10];
    while(~scanf("%d%d",&a,&b))
    {
        for(int i=1;i<=10;i++)
        vis[i]=0;
        vis[a]=1;
        vis[b]=1;
        for(int i=1;i<=3;i++)
        {
            if(!vis[i])
            break;
        }
        printf("%d\n",i);
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: 'i' was not declared in this scope
   17 |         printf("%d\n",i);
      |                       ^
Language: Java

import java.util.Scanner;
class Main {
	
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        ArrayList<Integer> list = new ArrayList<Integer>();
        list.add(1);
        list.add(2);
        list.add(3);
        list.remove(list.indexOf(A));
        list.remove(list.indexOf(B));
        System.out.println(list.get(0));
    }
} 

Compiler output:
Main.java:8: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<Integer>();
        ^
  symbol:   class ArrayList
  location: class Main
Main.java:8: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<Integer>();
                                      ^
  symbol:   class ArrayList
  location: class Main
2 errors
Language: C++

int main() {
	int a, b;
	int ans[] = { 1,2,3 };
	scanf_s("%d", &a);
	scanf_s("%d", &b);
	for (int i = 0; i < 3; i++) {
		if (ans[i] != a && ans[i] != b){
			printf("%d", ans[i]);
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf_s' was not declared in this scope
    4 |         scanf_s("%d", &a);
      |         ^~~~~~~
a.cc:8:25: error: 'printf' was not declared in this scope
    8 |                         printf("%d", ans[i]);
      |                         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main() {
Language: C++

#include<stdio.h>

int main(){
    char a,b;
    scanf("%s %s",&a, &b);

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(a=="1"&&b=="2"){
      |        ~^~~~~
a.cc:7:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(a=="1"&&b=="2"){
      |                ~^~~~~
a.cc:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     }else if(a=="2"&&b=="1"){
      |              ~^~~~~
a.cc:9:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     }else if(a=="2"&&b=="1"){
      |                      ~^~~~~
a.cc:11:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     }else if(a=="2"&&b=="3"){
      |              ~^~~~~
a.cc:11:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     }else if(a=="2"&&b=="3"){
      |                      ~^~~~~
a.cc:13:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     }else if(a=="3"&&b=="2"){
      |              ~^~~~~
a.cc:13:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     }else if(a=="3"&&b=="2"){
      |                      ~^~~~~
a.cc:15:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     }else if(a=="3"&&b=="1"){
      |              ~^~~~~
a.cc:15:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     }else if(a=="3"&&b=="1"){
      |                      ~^~~~~
a.cc:17:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     }else if(a=="1"&&b=="3"){
      |              ~^~~~~
a.cc:17:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     }else if(a=="1"&&b=="3"){
      |                      ~^~~~~
Language: C++

#include <iostream>

int main(int argc, char const *argv[])
{
	int a, b;
	int sum = 1 + 2 + 3;
	cin >> a >> b;
	cout << sum - a - b;
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:7:9: 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:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout << sum - 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<stdio.h>
int main()
{
    int a,b;
    int vis[10];
    while(~scanf("%d%d",&a,&b))
    {
        for(int i=1;i<=10;i++)
        vis[i]=0;
        vis[a]=1;
        vis[b]=1;
        for(int i=1;i<=3;i++)
        {
            if(!vis[3])
            break;
        }
        printf("%d\n",i);
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: 'i' was not declared in this scope
   17 |         printf("%d\n",i);
      |                       ^
Language: C++

#include <iostream>
using namespace std;
main () {
  	int a, b;
	cin>>a>>b;
  	bool flag = false;
  	int a[2] = [1, 2, 3];
  	for (int i=0;i<3;i++) {
    	if (a == a[i] || b == a[i]) {
        	flag = true;
        } else {
        	flag #include <iostream>
using namespace std;
main () {
  	int a, b;
  	cin>>a>>b;
  	if (a != 1) {
  		if (b != 2) {
  			cout<<3<<endl;
		} else if (b != 3) {
			cout<<2<<endl;
		}
	} else if (a != 2) {
		if (b != 1) {
			cout<<3<<endl;
		} else if (b != 3) {
			cout<<1<<endl;
		}
	} else {
		if (b != 1) {
			cout<<2<<endl;
		} else if (b != 2) {
			cout<<1<<endl;
		}
	}
}= false;
          	return a[i];
        }
    }
}

Compiler output:
a.cc:12:22: error: stray '#' in program
   12 |                 flag #include <iostream>
      |                      ^
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main () {
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:13: error: conflicting declaration 'int a [2]'
    7 |         int a[2] = [1, 2, 3];
      |             ^
a.cc:4:13: note: previous declaration as 'int a'
    4 |         int a, b;
      |             ^
a.cc:7:21: error: expected identifier before numeric constant
    7 |         int a[2] = [1, 2, 3];
      |                     ^
a.cc:7:22: error: expected ']' before ',' token
    7 |         int a[2] = [1, 2, 3];
      |                      ^
      |                      ]
a.cc: In lambda function:
a.cc:7:22: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:7:24: error: expected unqualified-id before numeric constant
    7 |         int a[2] = [1, 2, 3];
      |                        ^
a.cc:9:19: error: invalid types 'int[int]' for array subscript
    9 |         if (a == a[i] || b == a[i]) {
      |                   ^
a.cc:9:32: error: invalid types 'int[int]' for array subscript
    9 |         if (a == a[i] || b == a[i]) {
      |                                ^
a.cc:12:21: error: expected ';' before 'include'
   12 |                 flag #include <iostream>
      |                     ^ ~~~~~~~
      |                     ;
a.cc:14:8: error: expected ';' before '{' token
   14 | main () {
      |        ^~
      |        ;
a.cc:36:2: error: expected primary-expression before '=' token
   36 | }= false;
      |  ^
a.cc:37:25: error: invalid types 'int[int]' for array subscript
   37 |                 return a[i];
      |                         ^
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 (A == 3, B == 1) {
  cout << 2 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected ';' before '{' token
   13 |   else (A == 3, B == 1) {
      |                        ^~
      |                        ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A=1,2,3;
    
  cin >> A;
  
  int B=1,2,3;
    
    cin >> B;
  
  cout << A << B << endl;
    
  cout << A != B << error << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected unqualified-id before numeric constant
    5 |   int A=1,2,3;
      |           ^
a.cc:9:11: error: expected unqualified-id before numeric constant
    9 |   int B=1,2,3;
      |           ^
a.cc:15:21: error: 'error' was not declared in this scope; did you mean 'perror'?
   15 |   cout << A != B << error << endl;
      |                     ^~~~~
      |                     perror
Language: C++

#include<bits/stdc++.h>
int main()
{
  	int a,b;
  	cin>>a>>b;
  	if(a+b==3)cout<<"3";
  	if(a+b==4)cout<<"2";
  	if(a+b==5)cout<<"1";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: 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:6:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         if(a+b==3)cout<<"3";
      |                   ^~~~
      |                   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         if(a+b==4)cout<<"2";
      |                   ^~~~
      |                   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         if(a+b==5)cout<<"1";
      |                   ^~~~
      |                   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <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;
  else if(a==2 && b==3 || a==3 && b==2)
    cout<<1:
  else
    cout<<2;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before ':' token
   10 |     cout<<1:
      |            ^
      |            ;
Language: C

#include<stdio.h>
int main()
{
    int a[2]={0},n[3]={0},i;
    for(i=0;i<2;i++){
        scanf("%d",&a[i]);
    }
    for(i=0;i<2;i++){
        n[a[i]]=1;
    }
    for(i=0;i<3;i++){
        if(n[i]==0) printf("%d\n"i+1);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:34: error: expected ')' before 'i'
   12 |         if(n[i]==0) printf("%d\n"i+1);
      |                           ~      ^
      |                                  )
Language: C

#include <bits/stdc++.h>

using namespace std;

int main()
{ ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0) ;
   bool x[3] ;
  int a, b ;
  cin >>a>>b;
  x[a] = true;
  x[b] = true;
  for (int i = 1 ; i<=3; i++)
  if ( x[i] == false) { cout<<i; return 0;}


    return 0;
}


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

#include<stdc++.h>
using namespace std;
int main()
{
  long long a,b;
  cin>>a>>b;
  if((a==1&&b==2)||(a==2&&b==1))
  {
    cout<<3<<endl;
  }
  else if((a==2&&b==3)||(a==3&&b==2))
  {
    cout<<1<<endl;
  }
  else
    cout<<2<<endl;
  return 0;
}

Compiler output:
a.cc:1:9: fatal error: stdc++.h: No such file or directory
    1 | #include<stdc++.h>
      |         ^~~~~~~~~~
compilation terminated.
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:5:13: error: expected unqualified-id before ';' token
    5 |   int A, B, ;
      |             ^
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:27:18: error: expected ';' before '{' token
   27 |        else(a==3)
      |                  ^
      |                  ;
   28 | 
   29 |        {        if(a==1)
      |        ~
Language: C++

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

int main() {
    vector<int> ab(2);
    cin >> ab[0] >> ab[1];
    for (int i = 1; i <= 3; i++) {
        auto res = find(ab.begin(), ab.end(), i);
        if (res == ab.end()) {
            cout << i << endl;
        }
    }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
    9 |         auto res = find(ab.begin(), ab.end(), i);
      |                    ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:9:24: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
    9 |         auto res = find(ab.begin(), ab.end(), i);
      |                    ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Language: C

#include<stdio.h>
int main()
{
    int a[2]={0},n[3]={0},i;
    for(i=0;i<2;i++){
        scanf("%d",&a[i]);
    }
    for(i=0;i<2;i++){
        n[a[i]]=1;
    }
    for(i=0;i<3;i++){
        if(n[i]==0) printf("%d\n"n[i]+1);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:34: error: expected ')' before 'n'
   12 |         if(n[i]==0) printf("%d\n"n[i]+1);
      |                           ~      ^
      |                                  )
Language: C

#include<stdio.h>
int main()
{
    int a[2]={0},n[3]={0},i;
    for(i=0;i<2;i++){
        scanf("%d",a[i]);
    }
    for(i=0;i<2;i++){
        n[a[i]]=1;
    }
    for(i=0;i<3;i++){
        if(n[i]==0) printf("%d\n"n[i]+1);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:34: error: expected ')' before 'n'
   12 |         if(n[i]==0) printf("%d\n"n[i]+1);
      |                           ~      ^
      |                                  )
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'elif' was not declared in this scope
   11 |   elif((A+B)==4){
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A=1,2,3;
    
  sin>>"A">>endl;
  
  int B=1,2,3;
    
    sin>>"B">>endl;
  
  cout <<"A"<<"B"<< endl;
    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected unqualified-id before numeric constant
    5 |   int A=1,2,3;
      |           ^
a.cc:7:6: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator>>'
    7 |   sin>>"A">>endl;
      |   ~~~^~~~~
a.cc:9:11: error: expected unqualified-id before numeric constant
    9 |   int B=1,2,3;
      |           ^
a.cc:11:8: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator>>'
   11 |     sin>>"B">>endl;
      |     ~~~^~~~~
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==2 && b==3)
    cout<<1:
  else
    cout<<2;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before ':' token
   10 |     cout<<1:
      |            ^
      |            ;
Language: C++

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


Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:32: error: expected ';' before 'printf'
   10 |   if((A==2&&B==3)||(A==3&&B==2)
      |                                ^
      |                                ;
   11 |     printf("%d",1);
      |     ~~~~~~                      
a.cc:12:3: error: expected primary-expression before 'else'
   12 |   else
      |   ^~~~
a.cc:11:20: error: expected ')' before 'else'
   11 |     printf("%d",1);
      |                    ^
      |                    )
   12 |   else
      |   ~~~~              
a.cc:10:5: note: to match this '('
   10 |   if((A==2&&B==3)||(A==3&&B==2)
      |     ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a,b,i,j,k;
    int s[3] = {1,2,3};
    int f[3]
    scanf("%d",&a);
    scanf("%d",&b);

    for(i=0;i<2;i++){
        if(a == s[i]){
            f[i] = 1;
        }
    }
    for(j=0;j<2;j++){
        if(b == s[j]){
            f[j] = 1;
        }
    }

    for(k=0;k<2;k++){
        if(f[k] == 0){
            cout << s[k] << endl;
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected initializer before 'scanf'
    8 |     scanf("%d",&a);
      |     ^~~~~
a.cc:13:13: error: 'f' was not declared in this scope
   13 |             f[i] = 1;
      |             ^
a.cc:18:13: error: 'f' was not declared in this scope
   18 |             f[j] = 1;
      |             ^
a.cc:23:12: error: 'f' was not declared in this scope
   23 |         if(f[k] == 0){
      |            ^
Language: C++

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

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

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

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int A,B;
  cin>>A>>B;
  if(A==1){if(B==2){cout<<3<<endl;}else{cout<<2<<endl;}}
  else if(A==2){if(B==3){cout<<1<<endl;}else{cout<<3<<endl;}}
  else{if(B==1){cout<<2<<endl;}else{cout<<1<<endl;}}
  return 0
}

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

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

Compiler output:
main.c: In function 'main':
main.c:5:23: error: expected ';' before '{' token
    5 |   scanf("%d %d",&a,&b)
      |                       ^
      |                       ;
    6 |   {if((a==1&&b==2)||(a==2&&b==1))
      |   ~
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:17:9: error: 'else' without a previous 'if'
   17 |         else if(a==2)
      |         ^~~~
main.c:24:26: error: 'else' without a previous 'if'
   24 |                          else
      |                          ^~~~
main.c:26:8: error: 'else' without a previous 'if'
   26 |        else(a==3)
      |        ^~~~
main.c:26:18: error: expected ';' before '{' token
   26 |        else(a==3)
      |                  ^
      |                  ;
   27 |        {
      |        ~
Language: C++

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


Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:32: error: expected ';' before 'printf'
   10 |   if((A==2&&B==3)||(A==3&&B==2)
      |                                ^
      |                                ;
   11 |     printf("%d",1);
      |     ~~~~~~                      
a.cc:12:3: error: expected primary-expression before 'else'
   12 |   else
      |   ^~~~
a.cc:11:20: error: expected ')' before 'else'
   11 |     printf("%d",1);
      |                    ^
      |                    )
   12 |   else
      |   ~~~~              
a.cc:10:5: note: to match this '('
   10 |   if((A==2&&B==3)||(A==3&&B==2)
      |     ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'elif' was not declared in this scope
   10 |   elif((A+B)==4){
      |   ^~~~