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

#include<bits/stdc++.h>
using namespace std;
#define ll            long long
#define nl            "\n"
#define PB            push_back
#define _SAD()        ios::sync_with_stdio(0),cin.tie(0), cout.tie(0);
#define SZ(s)         s.size()
#define SRT(x,y)      sort(x,x+y)
#define REV(a,b)      reverse(a,a+b)
#define VSRT(x)       sort(x.begin(),x.end())
#define VREV(x)       reverse(x.begin(),x.end())
int main()
{
    _SAD()
    int a,b;
    cin>>a>>b;
    if((a==1||a==3)&&(b==3||b==1)
       {
           cout<<2<<nl;
       }
       else if((a==2||a==3)&&(b==2||b==3))
        {
            cout<<1<<nl;
        }
        else
        {
            cout<<3<<nl;
        }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:17:34: error: expected ';' before '{' token
   17 |     if((a==1||a==3)&&(b==3||b==1)
      |                                  ^
      |                                  ;
   18 |        {
      |        ~                          
a.cc:21:8: error: expected primary-expression before 'else'
   21 |        else if((a==2||a==3)&&(b==2||b==3))
      |        ^~~~
a.cc:20:9: error: expected ')' before 'else'
   20 |        }
      |         ^
      |         )
   21 |        else if((a==2||a==3)&&(b==2||b==3))
      |        ~~~~
a.cc:17:7: note: to match this '('
   17 |     if((a==1||a==3)&&(b==3||b==1)
      |       ^
Language: C++

#include <bits/stdc++.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a >>b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(a==1&&b==2)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:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else if(a==2&&b==1)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:8:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else if(a==1&&b==3)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:9:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else if(a==3&&b==1)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:10:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   else if(a==2&&b==3)cout <<1;
      |                      ^~~~
      |                      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   else if(a==3&&b==2)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 <iostream>
#include <iomanip>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <vector>
#include <algorithm>
#include <numeric>
#include <unordered_map>
#include <unordered_set>
#include <chrono>

using namespace std;

#define pb push_back
#define fast_cin() ios_base::sync_with_stdio(false); cin.tie(NULL)

typedef long long ll;
typedef long double ld;
typedef pair <int, int> pii;
typedef pair <ll, ll> pll;
typedef pair <ld, ld> pdd;

void solve();

const int N = 2e5 + 10;

int main() {
    fast_cin();

    int t=1;
    // cin >> t;
    while(t--) {
        solve();
    }
}

void solve() {
    int a, b;
    cin >> a >> b;
    // int a[N];
    // for (int i=1; i <= n; i++) { 
    //     cin >> a[i];
    // }

    int ans = {1, 2, 3};
    for (auto val_in: ans) {
        if (a != val_in and b != val_in) {
            cout << val_in << '\n';
            return;
        }
    }
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:52:9: error: scalar object 'ans' requires one element in initializer
   52 |     int ans = {1, 2, 3};
      |         ^~~
Language: C++

A = int(input()) -1
B = int(input()) -1

correct_list = [1,2,3]
correct_list.pop(A)
correct_list.pop(B)
print(correct_list[0])

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'inta' was not declared in this scope; did you mean 'int'?
    4 |   inta,b;
      |   ^~~~
      |   int
a.cc:4:8: error: 'b' was not declared in this scope
    4 |   inta,b;
      |        ^
a.cc:5:8: error: 'a' was not declared in this scope
    5 |   cin>>a>>b;
      |        ^
Language: C++

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


int main() {

   	
   	int a,b;
   	cin >>a>>b;
   	cout<< a^b;
    /* Enter your code here. Read input from STDIN. Print output to STDOUT */   
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: no match for 'operator^' (operand types are 'std::basic_ostream<char>' and 'int')
   14 |         cout<< a^b;
      |         ~~~~~~~~^~
      |             |    |
      |             |    int
      |             std::basic_ostream<char>
a.cc:14:17: note: candidate: 'operator^(int, int)' (built-in)
   14 |         cout<< a^b;
      |         ~~~~~~~~^~
a.cc:14:17: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
                 from /usr/include/c++/14/vector:87,
                 from a.cc:3:
/usr/include/c++/14/cstddef:146:3: note: candidate: 'constexpr std::byte std::operator^(byte, byte)'
  146 |   operator^(byte __l, byte __r) noexcept
      |   ^~~~~~~~
/usr/include/c++/14/cstddef:146:18: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::byte'
  146 |   operator^(byte __l, byte __r) noexcept
      |             ~~~~~^~~
In file included from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:4:
/usr/include/c++/14/bits/ios_base.h:94:3: note: candidate: 'constexpr std::_Ios_Fmtflags std::operator^(_Ios_Fmtflags, _Ios_Fmtflags)'
   94 |   operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:94:27: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Fmtflags'
   94 |   operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:144:3: note: candidate: 'constexpr std::_Ios_Openmode std::operator^(_Ios_Openmode, _Ios_Openmode)'
  144 |   operator^(_Ios_Openmode __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:144:27: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Openmode'
  144 |   operator^(_Ios_Openmode __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:191:3: note: candidate: 'constexpr std::_Ios_Iostate std::operator^(_Ios_Iostate, _Ios_Iostate)'
  191 |   operator^(_Ios_Iostate __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:191:26: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Iostate'
  191 |   operator^(_Ios_Iostate __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~^~~
Language: C++

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

int main(void)
{
  int A, B;
  cin >> A >> B;
  intans = 6 - A - B;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'intans' was not declared in this scope
    8 |   intans = 6 - A - B;
      |   ^~~~~~
Language: C++

list_ = [1,2,3]
a = int(input())
b = int(input())
list_.pop(list_.index(a))
list_.pop(list_.index(b))
print(list_[0])

Compiler output:
a.cc:1:1: error: 'list_' does not name a type
    1 | list_ = [1,2,3]
      | ^~~~~
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
using namespace std;
int main(){
   int a,b;
   cin >>a >> b;
   if(a-b==2 || b-a==2){
       cout << 2  << endl;
   }
   else{
       if(a==1 || b== 1){
           cout << 3 << endl;
       }
       else{
           cout << 1 << endl;
       }
   }
}#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
using namespace std;
int main(){
   int a,b;
   cin >>a >> b;
   if(a-b==2 || b-a==2){
       cout << 2  << endl;
   }
   else{
       if(a==1 || b== 1){
           cout << 3 << endl;
       }
       else{
           cout << 1 << endl;
       }
   }
}

Compiler output:
a.cc:33:2: error: stray '#' in program
   33 | }#include <iostream> // cout, endl, cin
      |  ^
a.cc:33:3: error: 'include' does not name a type
   33 | }#include <iostream> // cout, endl, cin
      |   ^~~~~~~
a.cc:51:5: error: redefinition of 'int main()'
   51 | int main(){
      |     ^~~~
a.cc:19:5: note: 'int main()' previously defined here
   19 | int main(){
      |     ^~~~
Language: C++

/*
ID: lyr14721
PROG: 
LANG: C++
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

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


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

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
const long long INF = 1LL << 60;

typedef pair<ll,ll> pairs;
vector<pairs> p;
bool pairCompare(const pair<double,ll>& firstElof, const pair<double,ll>& secondElof){
    return firstElof.first < secondElof.first;
}
#define MAX_N 1000100
bool x[MAX_N];
ll num[MAX_N];
ll fibl[MAX_N]={0};
 
ll fib(ll a){
    if (fibl[a]!=0)return fibl[a];
    if (a==0){
        return 0;
    }else if (a==1){
        return 1;
    }
    return fibl[a]=fib(a-1)+fib(a-2);
}
 
ll eratosthenes(ll n) {
    int p = 0;
    for (ll i=0; i<=n; ++i) x[i] = true;
    x[0] = x[1] = false;
    for(int i=2; i<=n; ++i) {
        if(x[i]) {
            p++;
            for(int j=2*i; j<=n; j+=i) x[j] = false;
        }
        
        num[i] = p;
    }
    return p;
}

ll gcd(ll a,ll b){
    if (a%b==0)return(b);
    else return(gcd(b,a%b));
}

ll keta(ll N){
    int tmp{};
    while( N > 0 ){
        tmp += ( N % 10 );
        N /= 10;
    }
    N = tmp;
    return N;
}

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




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

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

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

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

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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int a;
  int back;
 
  // 変数aで入力を受け取る
  cin >> a;
  cin >> b;
  
  cout << 6-(a+b)  << endl;
 
}

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

#include <iostream>
#include <cstdio>
#define INF 1e9
#define eps 1e-6
typedef long long ll;
using namespace std;

inline int max(int a, int b){
	return a > b ? a : b
}

inline int min(int a, int b){
	return a < b ? a : b;
}

int a, b, c;

int main(){

	cin >> a >> b;
	if(a != 1 && b != 1) puts("1");
	if(a != 2 && b != 2) puts("2");
	if(a != 3 && b != 3) puts("3");

	return 0;
}


Compiler output:
a.cc: In function 'int max(int, int)':
a.cc:9:29: error: expected ';' before '}' token
    9 |         return a > b ? a : b
      |                             ^
      |                             ;
   10 | }
      | ~
Language: Java

import java.util.*;

//update 2019/12/13

public class Main{

  static Scanner sc = new Scanner(System.in);

  public static void main(String[] args) {

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

    int c = a+b;

    if(c==3){
      System.out.println("3");
    }
    else if(c==4){
      System.out.println("2");
    }
    else{
      System.out.println("1\");
    }

/*
    for(int i=0;i<n;i++){
      System.out.println("a["+i+"]="+a[i]);
    }
*/

  }

  static String next(){
    return sc.next();
  }

  static int nextInt(){
    return Integer.parseInt(sc.next());
  }

  static long nextLong(){
    return Long.parseLong(sc.next());
  }

  static double nextDouble(){
    return Double.parseDouble(sc.next());
  }

  static String[] splitString(String s){
    return s.split("");
  }

  static char[] splitChar(String s){
    return s.toCharArray();
  }

  static int charToInt(char aaa){
    return aaa - 48;
  }

  public static int maxInt(int[] a,int lng){
    int max=a[0];
    for(int i=1;i<lng;i++){
      max = Math.max(max,a[i]);
    }
    return max;
  }

  public static int minInt(int[] a,int lng){
    int min=a[0];
    for(int i=1;i<lng;i++){
      min = Math.min(min,a[i]);
    }
    return min;
  }

  public static long maxLong(long[] a,int lng){
    long max=a[0];
    for(int i=1;i<lng;i++){
      max = Math.max(max,a[i]);
    }
    return max;
  }

  public static long minLong(long[] a,int lng){
    long min=a[0];
    for(int i=1;i<lng;i++){
      min = Math.min(min,a[i]);
    }
    return min;
  }

}


Compiler output:
Main.java:23: error: unclosed string literal
      System.out.println("1\");
                         ^
1 error
Language: C++


    //#include <bits/stdc++.h>
  
    using namespace std;
    #define INF 10000000;
    #define rep(i,n)for(int i=0;(i)<(int)(n);i++)
    #define vec(n) vector<int> vec(n)
    #define vvec(m,n) vector<vector<int>> vec(m,vector(n))

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'cin' was not declared in this scope
   12 |       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 | 
a.cc:14:7: error: 'cout' was not declared in this scope
   14 |       cout << 6-a-b <<endl;
      |       ^~~~
a.cc:14:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:23: error: 'endl' was not declared in this scope
   14 |       cout << 6-a-b <<endl;
      |                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: C

#include <stdio.h>

int main(){
	int n,b;
	sacnf("%d%d",&n,&b);
	for(int i=1;i<=3;i++){
		if(n != i && b!= i){
			printf("%d",i);
			return 0;
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         sacnf("%d%d",&n,&b);
      |         ^~~~~
      |         scanf
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define f first
#define s second
#define all(container) container.begin(),container.end()
#define fast ios::sync_with_stdio(0); cin.tie(0)
// #ifndef ONLINE_JUDGE
// #include "debug.cpp"
// #endif
#define int long long
const int mod = 1e9+7;  
int power(int a,int b) { if(b==0) return 1; int res = power(a,b/2); if(b&1) return res * res * a; else return res * res; }


int32_t main(){
    
  fast;
  int a,b; cin >> a >> b;
  bool flag[4] = {false};
  flag[a] = flag[b] = true;
  
  for(int i=1;i<=3;i++){
    if(flag[i]==false){
    	cout << i << '\n'
          break;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:25:26: error: expected ';' before 'break'
   25 |         cout << i << '\n'
      |                          ^
      |                          ;
   26 |           break;
      |           ~~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'vector' was not declared in this scope
    5 |         vector<int> used(4);
      |         ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:5:16: error: expected primary-expression before 'int'
    5 |         vector<int> used(4);
      |                ^~~
a.cc:8:9: error: 'used' was not declared in this scope
    8 |         used[a] = used[b] = true;
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
const long long INF = 1LL << 60;

typedef pair<ll,ll> pairs;
vector<pairs> p;
bool pairCompare(const pair<double,ll>& firstElof, const pair<double,ll>& secondElof){
    return firstElof.first < secondElof.first;
}
#define MAX_N 1000100
bool x[MAX_N];
ll num[MAX_N];
ll fibl[MAX_N]={0};
 
ll fib(ll a){
    if (fibl[a]!=0)return fibl[a];
    if (a==0){
        return 0;
    }else if (a==1){
        return 1;
    }
    return fibl[a]=fib(a-1)+fib(a-2);
}
 
ll eratosthenes(ll n) {
    int p = 0;
    for (ll i=0; i<=n; ++i) x[i] = true;
    x[0] = x[1] = false;
    for(int i=2; i<=n; ++i) {
        if(x[i]) {
            p++;
            for(int j=2*i; j<=n; j+=i) x[j] = false;
        }
        
        num[i] = p;
    }
    return p;
}

ll gcd(ll a,ll b){
    if (a%b==0)return(b);
    else return(gcd(b,a%b));
}

ll keta(ll N){
    int tmp{};
    while( N > 0 ){
        tmp += ( N % 10 );
        N /= 10;
    }
    N = tmp;
    return N;
}

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




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

#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <stack>
#include <queue>
#include <map>
#include <algorithm>
#include <iomanip>
#include <math.h>
#include <string.h>
using namespace std; using ll = long long; using pll = pair<ll, ll>;
using vl = vector<ll>; using vll = vector<vl>; using vpll = vector<pll>;
int ctoi(char c) {
	switch (c) {
	case '0': return 0; case '1': return 1; case '2': return 2;
	case '3': return 3; case '4': return 4; case '5': return 5;
	case '6': return 6; case '7': return 7; case '8': return 8;
	case '9': return 9;  default: return 0; }
}
bool pairCompare(const pll firstElof, pll secondElof)
{
	return firstElof.first > secondElof.first;
}
ll nod(ll F) { return log10(F) + 1; }
//**定義場所**//
//gcd, isPrime, eratos, modinv, bitSearch, dfs, bfs, dijkstra, UnionFind//
ll i, j, k, l, m, n; ll N, M, K, H, W, L; string S, T;
ll MOD = 1000000007; ll ans = 0; ll INF = LLONG_MAX;
vl flag, color; vll path;
//***********//
int main() {
	ll A, B;
	cin >> A >> B;
	set<ll> C = { 1,2,3 };
	C.erase(A);
	C.erase(B);
	cout << *C.begin();
}

Compiler output:
a.cc:29:43: error: 'LLONG_MAX' was not declared in this scope
   29 | ll MOD = 1000000007; ll ans = 0; ll INF = LLONG_MAX;
      |                                           ^~~~~~~~~
a.cc:12:1: note: 'LLONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
   11 | #include <string.h>
  +++ |+#include <climits>
   12 | using namespace std; using ll = long long; using pll = pair<ll, ll>;
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before 'cout'
    7 |         else(a+b==4) cout << 2;
      |                     ^~~~~
      |                     ;
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else cout << 1;
      |         ^~~~
Language: C++

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

int main()
{
  int a,b,c;
  
  cin>> a>>b;
  cout<< a^b;
  	
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespcace'
    2 | using namespcace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   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<< 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++

a=int(input())
b=int(input())
if a!=1 and b!=1:
    print(1)
elif  a!=2 and b!=2:
    print(2)
else:
    print(3)

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

#include <bits/stdc++.h>
#define _overload3(_1,_2,_3,name,...) name
#define _rep(i,n) repi(i,0,n)
#define repi(i,a,b) for(int i=(int)a, i##_len=(b); i<i##_len; i++)
#define rep(...) _overload3(__VA_ARGS__,repi,_rep,)(__VA_ARGS__)
#define int long long
using namespace std;
using P = pair<int, int>;
using ll = long long;
using prique = priority_queue<int>;
const ll INF = LLONG_MAX/3;

/*-----Library-----*/

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

struct UnionFind {
    vector<int> par; // 親ノード
    vector<int> rank; // ランク
    vector<int> sizeuf; //要素数
    UnionFind(int n = 1) {
        init(n);
    }

    void init(int n = 1) {
        par.resize(n); rank.resize(n); sizeuf.resize(n);
        for (int i = 0; i < n; ++i) {
            par[i] = i;
            rank[i] = 0;
            sizeuf[i]=1;
        }
    }

    int root(int x) {
        if (par[x] == x) {
            return x;
        }
        else {
            int r = root(par[x]);
            return par[x] = r;
        }
    }

    bool issame(int x, int y) {
        return root(x) == root(y);
    }

    bool merge(int x, int y) {
        x = root(x); y = root(y);
        if (x == y) return false;
        if (rank[x] < rank[y]) swap(x, y);
        if (rank[x] == rank[y]) ++rank[x];
        par[y] = x;
        sizeuf[x]+=sizeuf[y];
        return true;
    }

    int size(int x){
        return sizeuf[root(x)];
    }
};

long long gcd(long long a,long long b){
    if(b==0)return a;
    return gcd(b,a%b);
}

long long lcm(long long i,long long j){
    return i*(j/gcd(i,j));
}
//コンビネーション
/*
long long fac[MAX], finv[MAX], inv[MAX];
// テーブルを作る前処理
void COMinit() {
    fac[0] = fac[1] = 1;
    finv[0] = finv[1] = 1;
    inv[1] = 1;
    for (int i = 2; i < MAX; i++){
        fac[i] = fac[i - 1] * i % MOD;
        inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
        finv[i] = finv[i - 1] * inv[i] % MOD;
    }
}

// 二項係数計算
long long COM(int n, int k){
    if (n < k) return 0;
    if (n < 0 || k < 0) return 0;
    return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}
 */
/*-----Library-----*/
const int MOD=1234567;
signed main(){
	int a,b;
	cin>>a>>b;
	if(a==1&&b==2)cout<<3<<endl;
	else if(a==1&&b==3)cout<<2<<endl;
	else if(a==2&&b==3)cout<<1<<endl;
	else if(a==2&&b==1)cout<<3<<endl;
	else if(a==3&&b==2)cout<<1<<endl;
	else if(a==3&&b==1)cout<<2<<endl
}


Compiler output:
a.cc: In function 'int main()':
a.cc:104:41: error: expected ';' before '}' token
  104 |         else if(a==3&&b==1)cout<<2<<endl
      |                                         ^
      |                                         ;
  105 | }
      | ~
Language: C

#include <stdio.h>

int main(){
	int n,b;
	sacnf("%d%d",&n,&b);
	for(int i=1;i<=3;i++){
		if(n != i && b!= i){
			printf("%d",&i);
			return 0;
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         sacnf("%d%d",&n,&b);
      |         ^~~~~
      |         scanf
Language: C++

#include <iosteram>

using namespace std;

int main() {
    int A, B;
    cin >> A >> B;
    
    int C;
    for(int i=0; i<3; i++) {
        if(i+1==A || i+1==B) {
            continue;
        }
        C=i+1;
    }
    
    cout << C << endl;

    return 0;
    
}

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

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

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

#include<bits/stdc++.h>
#include<vector>
#include<string>
#include<algorithm>
#include<cmath>
 
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define int long long int
#define mod 1000000007
 
using namespace std;

signed main 
{
    fast;
    int a,b;
    cin>>a;
    cin>>b;

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

Compiler output:
a.cc:13:8: error: cannot declare '::main' to be a global variable
   13 | signed main
      |        ^~~~
a.cc:7:42: error: expected '}' before ';' token
    7 | #define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
      |                                          ^
a.cc:15:5: note: in expansion of macro 'fast'
   15 |     fast;
      |     ^~~~
a.cc:14:1: note: to match this '{'
   14 | {
      | ^
a.cc:7:44: error: 'cin' does not name a type
    7 | #define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
      |                                            ^~~
a.cc:15:5: note: in expansion of macro 'fast'
   15 |     fast;
      |     ^~~~
a.cc:7:56: error: 'cout' does not name a type
    7 | #define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
      |                                                        ^~~~
a.cc:15:5: note: in expansion of macro 'fast'
   15 |     fast;
      |     ^~~~
a.cc:17:5: error: 'cin' does not name a type
   17 |     cin>>a;
      |     ^~~
a.cc:18:5: error: 'cin' does not name a type
   18 |     cin>>b;
      |     ^~~
a.cc:20:5: error: 'cout' does not name a type
   20 |     cout<<6-a-b<<endl;
      |     ^~~~
a.cc:21:5: error: expected unqualified-id before 'return'
   21 |     return 0;
      |     ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include <stdio.h>
int main(int argc, char const *argv[])
{
  int a,b;
  scanf("%d%d",&a,&b);
  printf(6-a-b);
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:6:13: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    6 |   printf(6-a-b);
      |          ~~~^~
      |             |
      |             int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
    int a,b;
    cin>>a>>b;
    cout<<6-a-b<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>a>>b;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<6-a-b<<endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout<<6-a-b<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

/* Don't try to hack it :|
 
            _/﹋\_
            (҂`_´)
            <,︻╦╤─҉- - - - - - - - - - - - - - -
            _/﹋\_
*/

#include <bits/stdc++.h>
#define ll long long 
#define all(v) v.begin() , v.end()
#define pb push_back
#define f first
#define s second
#define mp make_pair
#define tr(con) for(auto it = con.begin(); it!= con.end() ; it++)
#define INF 1e9+7   
#define rep(i,l,r) for(ll i=l;i<=r;i++)
#define fo(i,n) for(ll i=0;i<n;i++)
using namespace std;
ll gcd(ll a, ll b){
	if(b==0) return a;
	return gcd(b ,a%b);
}
int main(){
	
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	ll a;, b ; cin >> a >> b;
	cout <<  6-a-b;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:29:14: error: expected primary-expression before ',' token
   29 |         ll a;, b ; cin >> a >> b;
      |              ^
a.cc:29:16: error: 'b' was not declared in this scope
   29 |         ll a;, b ; cin >> a >> b;
      |                ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

const int N = 1e2+7;

int main()
{
    ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
    cin >> a >> b;
    for (int i = 1; i <= 3; ++i) {
        if (a != i && b != i) {
            cout << i << endl;
            return 0;
        }
    }
    return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ldb = long double;
using pa = pair < ll, ll >;
using vec = vector < ll >;
#define pb push_back
#define F  first
#define S  second
#define int ll
#define f(i,x,n) for(ll i=x;i<n;i++) 
#define all(c) c.begin(),c.end()
#define edl "\n"
#define ceils(s,n) (s+n-1)/n
#define str string
#define add insert
#define fast() ios_base::sync_with_stdio(false);cin.tie(NULL)
const int MOD = 1e9 + 7, N = 5e5 + 10;
const ll LINF = LLONG_MAX;
int a,b,c,d,ans;
str s1,s2,s;
int32_t main() {
    fast();
    cin >> a >> b;
    if(a==1 and b==2){
        cout<<3;
    }
    if(a==3 and b=2){
        cout<<1;

    }
    if(a==3 and b==1){
        cout<<2;
    }
    return 0;
}
 

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:28:13: error: lvalue required as left operand of assignment
   28 |     if(a==3 and b=2){
      |        ~~~~~^~~~~
Language: C++


#include<bits/stdc++.h>

using namespace std;

#define FOR(i, j, k, in) for (int i=j ; i<k ; i+=in)
#define RFOR(i, j, k, in) for (int i=j ; i>=k ; i-=in)
#define REP(i, j) FOR(i, 0, j, 1)
#define FOREACH(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define MP make_pair
#define PB push_back
#define PI 3.1415926535897932384626433832795
#define MOD 1000000007
const double pi=acos(-1.0);
typedef pair<int, int> PII;
typedef long int int32;
typedef unsigned long int uint32;
typedef long long int int64;
typedef unsigned long long int  uint64;

#define int long long
#define trace(x) cerr << #x << ": " << x << " " << endl;


inline int add(int a, int b){a += b; if(a >= MOD)a -= MOD; return a;}
inline int sub(int a, int b){a -= b; if(a < 0)a += MOD; return a;}
inline int mul(int a, int b){return (int)((int) a * b %MOD);}


#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);

signed main()
{
    IOS
    int c = 1^2^3;
    int a, b;
    cin >> a >> b;
    cout << ((c^a)^b)
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:22: error: expected ';' before '}' token
   38 |     cout << ((c^a)^b)
      |                      ^
      |                      ;
   39 | 
   40 | }
      | ~
Language: C++

#include <bits/stdc++.h>
#define rep(i,m,n) for(int i=m; i<n; i++)
#define co(n) cout << n << endl
using namespace std;
int main(){
  int a, b, c=0, d=0, e, f, g;
  string s, k, t;
  int >> a >> b;
  co(6-a-b);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: expected unqualified-id before '>>' token
    8 |   int >> a >> b;
      |       ^~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n)for(long long i=0;i<(n);i++)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;
 
const int MOD=1000000007;
const int INF=0x3f3f3f3f;
const ll INFL=0x3f3f3f3f3f3f3f3f;
ll gcd(ll x, ll y){
  if(y==0) return x;
  else return gcd(y, x%y);
}
ll lcm(ll x,ll y){
  ll g=gcd(x,y);
  return x/g*y;
}

using Graph=vector<vector<int>>;
Graph G;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a,b;
  cin >> a >> b;
  
  cout<<6-a-b<<sum<<endl;
}
    

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expected ';' before '}' token
   11 |     cout<<6-b-c<<endl
      |                      ^
      |                      ;
   12 | }
      | ~
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  string A,B;
  cin>>A>>B;
  string ans;
  for(int i=0;i<N;i++){
    cout<<A.at(i)<<B.at(i);
  }
  endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: statement cannot resolve address of overloaded function
   12 |   endl;
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  string A,B;
  cin>>A>>B;
  string ans;
  for(int i=0;i<N;i++){
    cout<<A.at(i)<<B.at(i);
  }
  <<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected primary-expression before '<<' token
   12 |   <<endl;
      |   ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  string A,B;
  cin>>A>>B;
  string ans;
  for(int i=0;i<N;i++){
    cout<<A.at(i)<<B.at(i)
  }
  endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ';' before '}' token
   10 |     cout<<A.at(i)<<B.at(i)
      |                           ^
      |                           ;
   11 |   }
      |   ~                        
a.cc:12:7: error: statement cannot resolve address of overloaded function
   12 |   endl;
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  char str1[101],str2[101];
  string str;
  cin>>n;
  cin>>str1>>str2;

  for(int i=0;i<n;i++){
    str+=str1[i];
    str+=str2[i];
  }
  cout<<str<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin>>n;
      |        ^
      |        yn
Language: C

main(){int a,i=0;char b[110],c[110];scanf("%d%s%s",&a,b,c);
while(b[i]!='\0'){printf("%d%d",b[i],c[i]);i++}}


Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){int a,i=0;char b[110],c[110];scanf("%d%s%s",&a,b,c);
      | ^~~~
main.c: In function 'main':
main.c:1:37: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){int a,i=0;char b[110],c[110];scanf("%d%s%s",&a,b,c);
      |                                     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){int a,i=0;char b[110],c[110];scanf("%d%s%s",&a,b,c);
main.c:1:37: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){int a,i=0;char b[110],c[110];scanf("%d%s%s",&a,b,c);
      |                                     ^~~~~
main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:19: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    2 | while(b[i]!='\0'){printf("%d%d",b[i],c[i]);i++}}
      |                   ^~~~~~
main.c:2:19: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:19: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:2:19: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:47: error: expected ';' before '}' token
    2 | while(b[i]!='\0'){printf("%d%d",b[i],c[i]);i++}}
      |                                               ^
      |                                               ;
Language: C

main(){int a,i=0;char b[110],c[110];scanf("%d%s%s",&a,b,c);
while(b{i}!='\0'){printf("%d%d",b[i],c[i]);i++}}


Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){int a,i=0;char b[110],c[110];scanf("%d%s%s",&a,b,c);
      | ^~~~
main.c: In function 'main':
main.c:1:37: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){int a,i=0;char b[110],c[110];scanf("%d%s%s",&a,b,c);
      |                                     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){int a,i=0;char b[110],c[110];scanf("%d%s%s",&a,b,c);
main.c:1:37: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){int a,i=0;char b[110],c[110];scanf("%d%s%s",&a,b,c);
      |                                     ^~~~~
main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:8: error: expected ')' before '{' token
    2 | while(b{i}!='\0'){printf("%d%d",b[i],c[i]);i++}}
      |      ~ ^
      |        )
main.c:2:19: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    2 | while(b{i}!='\0'){printf("%d%d",b[i],c[i]);i++}}
      |                   ^~~~~~
main.c:2:19: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:19: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:2:19: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:47: error: expected ';' before '}' token
    2 | while(b{i}!='\0'){printf("%d%d",b[i],c[i]);i++}}
      |                                               ^
      |                                               ;
Language: C

main(){int a;char i=0,b[110],c[110];scanf("%d%s%s",&a,b,c);
while(b{i}!='\0'){printf("%d%d",b[i],c[i]);i++}}


Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){int a;char i=0,b[110],c[110];scanf("%d%s%s",&a,b,c);
      | ^~~~
main.c: In function 'main':
main.c:1:37: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){int a;char i=0,b[110],c[110];scanf("%d%s%s",&a,b,c);
      |                                     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){int a;char i=0,b[110],c[110];scanf("%d%s%s",&a,b,c);
main.c:1:37: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){int a;char i=0,b[110],c[110];scanf("%d%s%s",&a,b,c);
      |                                     ^~~~~
main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:8: error: expected ')' before '{' token
    2 | while(b{i}!='\0'){printf("%d%d",b[i],c[i]);i++}}
      |      ~ ^
      |        )
main.c:2:19: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    2 | while(b{i}!='\0'){printf("%d%d",b[i],c[i]);i++}}
      |                   ^~~~~~
main.c:2:19: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:19: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:2:19: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:47: error: expected ';' before '}' token
    2 | while(b{i}!='\0'){printf("%d%d",b[i],c[i]);i++}}
      |                                               ^
      |                                               ;
Language: C

main(){int a,i=0,b[110],c[110];scanf("%d%s%s",&a,b,c);
while(b{i}!='\0'){printf("%d%d",b[i],c[i]);i++}}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){int a,i=0,b[110],c[110];scanf("%d%s%s",&a,b,c);
      | ^~~~
main.c: In function 'main':
main.c:1:32: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){int a,i=0,b[110],c[110];scanf("%d%s%s",&a,b,c);
      |                                ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){int a,i=0,b[110],c[110];scanf("%d%s%s",&a,b,c);
main.c:1:32: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){int a,i=0,b[110],c[110];scanf("%d%s%s",&a,b,c);
      |                                ^~~~~
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:8: error: expected ')' before '{' token
    2 | while(b{i}!='\0'){printf("%d%d",b[i],c[i]);i++}}
      |      ~ ^
      |        )
main.c:2:19: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    2 | while(b{i}!='\0'){printf("%d%d",b[i],c[i]);i++}}
      |                   ^~~~~~
main.c:2:19: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:19: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:2:19: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:47: error: expected ';' before '}' token
    2 | while(b{i}!='\0'){printf("%d%d",b[i],c[i]);i++}}
      |                                               ^
      |                                               ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i=0;i<n;i++)
      |       ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  char ch[100],s[100],str[200];
  int n,i=0,j=0;
  cin>>n;
  cin.ignore();
  cout<<"\n";
  cin.get(ch,100);
  cin.get(s,100);
  while(i<n){
    str[j]=ch[i];
    j++;
    str[j]=s[i];
    j++;
    i++;
  }
  str.resize(2*n);
    cout<<str;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:7: error: request for member 'resize' in 'str', which is of non-class type 'char [200]'
   19 |   str.resize(2*n);
      |       ^~~~~~