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

#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("avx2")
typedef long long ll;
using namespace std;
const ll mod = 1000000007;
const ll mod998 = 998244353;
const ll intmax = 2147483647;
const ll llmax = 9223372036854775807;
const char sp = ' ';

int N, M, T, x[100000], y[100000];
bool res[100000];

int main() {
	scanf("%d%d%d", &N, &M, &T);
	for (int i = 0; i < M; i++) {
		scanf("%d%d", &x[i], &y[i]);
	}
	assert(T == 1);
	for (int i = 1; i <= N; i++) {
		bitset<50001>b(0);
		b[i] = true;
		for (int j = M - 1; j >= 0; j--) {
			b[x[j]] = b[x[j]] | b[y[j]];
			b[y[j]] = b[x[j]] | b[y[j]];
		}
		if (b.count == N) {
			for (int j = 1; j <= N; j++) {
				b[j] = false;
			}
			b[i] = true;
			for (int j = M - 1; j >= 0; j--) {
				if (b[y[j]])res[j] = true;
				b[x[j]] = b[x[j]] | b[y[j]];
				b[y[j]] = b[x[j]] | b[y[j]];
			}
			for (int j = 0; j < M; j++) {
				if (res[j])printf("v");
				else printf("^");
			}
			printf("\n");
			return 0;
		}
	}
	printf("-1\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:23: error: invalid use of member function 'std::size_t std::bitset<_Nb>::count() const [with long unsigned int _Nb = 50001; std::size_t = long unsigned int]' (did you forget the '()' ?)
   29 |                 if (b.count == N) {
      |                     ~~^~~~~
      |                            ()
Language: C++

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

struct bits {
  int n;
  int m;
  vector<ll> b;

  bits(int s) {
    n = s;
    m = (s + 63) / 64;
    b.resize(m);
  }

  void set(int i) {
    b[i >> 6] = b[i >> 6] | (1ll << (i & 63));
  }

  void unset(int i) {
    b[i >> 6] = b[i >> 6] & (~(1ll << (i & 63)));
  }

  void unite(bits const& other) {
    for(int i = 0; i < m; ++i)
      b[i] = (b[i] | other.b[i]);
  }

  int popcount() {
    int ans = 0;
    for(auto x : b)
      ans += __builtin_popcountll(x);
    return ans;
  }
};

int main() {
  cin.tie(0);
  cin.sync_with_stdio(0);

  int n, m, T;
  cin >> n >> m >> T;

  vector<pair<int, int>> p(m);
  for(auto& pa : p) {    
    cin >> pa.first >> pa.second;
    pa.first--;
    pa.second--;
  }

  string ans;
  if(T == 1) {// find good state
    ans = "-1";
    vector<bits> b(n, bits(n));
    for(int i = 0; i < n; ++i)
        b[i].set(i);
    for(int i = 0; i < m; ++i) {
      int x = p[i].first;
      int y = p[i].second;
      b[x].unite(b[y]);
      b[y].unite(b[x]);
    }
    int w = -1;
    for(int i = 0; i < n; ++i) {
      if(b[i].popcount() == n) {
        w = i;
        break;
      }
    }

    if(w == -1) {
      ans = "-1";
    } else {
      set<int> s;
      for(int i = m - 1; i >= 0; --i) {
        int x = p[i].first;
        int y = p[i].second;
        if(s.count(x)) {
          s.push_back('v');
          s.emplace(y);
        } else {
          s.push_back('^');
          if(s.count(y))
            s.emplace(x);
        }
      }
      reverse(ans.begin(), ans.end());
    }
  } else {    // find bad state
    ans = "-1";
  }
  cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:79:13: error: 'class std::set<int>' has no member named 'push_back'
   79 |           s.push_back('v');
      |             ^~~~~~~~~
a.cc:82:13: error: 'class std::set<int>' has no member named 'push_back'
   82 |           s.push_back('^');
      |             ^~~~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

using _loop_int = int;
#define REP(i,n) for(_loop_int i=0; i<(_loop_int)(n); i++)
#define FOR(i,a,b) for(_loop_int i=(_loop_int)(a); i<(_loop_int)(b); i++)
#define FORR(i,a,b) for(_loop_int i=(_loop_int)(b)-1; i>=(_loop_int)(a); i--)

#define INF 1000000007
#define INFL (1LL << 60)
#define MOD 998244353
#define ALL(v) v.begin(),v.end()
#define pb push_back
#define ll long long int
#define P pair<ll, ll>

ll min(ll a, ll b){return (a<b?a:b);}
ll max(ll a, ll b){return (a>b?a:b);}

int main(){
	if(n!=2) cout << -1 << endl;
	return 0;
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:22:12: error: 'n' was not declared in this scope; did you mean 'yn'?
   22 |         if(n!=2) cout << -1 << endl;
      |            ^
      |            yn
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pii pair<int, int>
#define ull unsigned ll
#define f first
#define s second
#define FOR(i,a,b) for (int i=(a); i<(b); ++i)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) for (int i=(n-1); i>=0; --i)
#define ALL(x) x.begin(),x.end()
#define SZ(x) (int)x.size()
#define SQ(x) (x)*(x)
#define MN(a,b) a = min(a,(__typeof__(a))(b))
#define MX(a,b) a = max(a,(__typeof__(a))(b))
#define pb push_back
#define SORT_UNIQUE(c) (sort(c.begin(),c.end()), c.resize(distance(c.begin(),unique(c.begin(),c.end()))))
#ifdef BALBIT
#define IOS()
#define bug(...) fprintf(stderr,"#%d (%s) = ",__LINE__,#__VA_ARGS__),_do(__VA_ARGS__);
template<typename T> void _do(T &&x){cerr<<x<<endl;}
template<typename T, typename ...S> void _do(T &&x, S &&...y){cerr<<x<<", ";_do(y...);}
#else
#define IOS() ios_base::sync_with_stdio(0);cin.tie(0);
#define endl '\n'
#define bug(...)
#endif

const int iinf = 1<<29;
const ll inf = 1ll<<60;
const ll mod = 1e9+7;


void GG(){cout<<"-1\n"; exit(0);}

ll mpow(ll a, ll n, ll mo = mod){ // a^n % mod
    ll re=1;
    while (n>0){
        if (n&1) re = re*a %mo;
        a = a*a %mo;
        n>>=1;
    }
    return re;
}

ll inv (ll b, ll mo = mod){
    if (b==1) return b;
    return (mo-mo/b) * inv(mo%b) % mo;
}

const int maxn = 1e6+5;

bool took[maxn];
char ans[maxn];

main(){
    IOS();
    int n, m, t; cin>>n>>m>>t;
    if (t==2) assert(0);
    vector<pii> v(m);
    REP(i,m) {
        cin>>v[i].f>>v[i].s;
    }
    took[v.back().f] = 1;
    RREP(i,m) {
        if (took[v[i].s]) {
            ans[i] = 'v';
            took[v[i].f]=1;
        }
        else {
            ans[i] = '^';
            if (took[v[i]].f) took[v[i].s]=1;
        }
    }
    REP(i,n) {
        if (!took[i]) {
            GG();
        }
    }
    REP(i,m) {
        cout<<ans[i];
    }

}


Compiler output:
a.cc:56:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   56 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:72:21: error: no match for 'operator[]' (operand types are 'bool [1000005]' and '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'})
   72 |             if (took[v[i]].f) took[v[i].s]=1;
      |                     ^
Language: C++

#include <bits/stdc++.h>
#include "testlib.h"
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
using namespace std;
using lint = long long;
using pi = pair<int, int>;
const int MAXN = 100005;

int n, m, t;
pi a[MAXN];
bitset<50005> bs[50005];

void report(int x){
	bool chk[MAXN] = {};
	char ans[MAXN] = {};
	chk[x] = 1;
	for(int i=m-1; i>=0; i--){
		if(chk[a[i].first] == chk[a[i].second]){
			ans[i] = '^';
			continue;
		}
		if(chk[a[i].first]) ans[i] = '^';
		else ans[i] = 'v';
		chk[a[i].first] = chk[a[i].second] = 1;
	}
	cout << ans << endl;
}

int main(){
	cin>> n >> m >> t;
	if(t == 1){
		for(int i=0; i<m; i++){
			scanf("%d %d",&a[i].first,&a[i].second);
			a[i].first--;
			a[i].second--;
		}
		for(int i=0; i<n; i++) bs[i].set(i);
		for(int i=0; i<m; i++){
			bs[a[i].first] = bs[a[i].second] = (bs[a[i].first] | bs[a[i].second]);
		}
		for(int i=0; i<n; i++){
			if(bs[i].count() == n){
				report(i);
				return 0;
			}
		}
		puts("-1");
		return 0;
	}
}


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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ui unsigned int
#define ull unsigned ll
#define pii pair<int,int>
#define pll pair<ll,ll>
#define db long double
#define mp make_pair
#define X first
#define Y second
#define vi vector<int>
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define rep(i,a,b) for(int i=(a);i<=(b);++i)
#define per(i,b,a) for(int i=(b);i>=(a);--i)
#define rep0(i,a,b) for(int i=(a);i<(b);++i)
#define fore(i,a) for(int i=0;i<(a).size();++i)
#define ls x<<1,l,m
#define rs x<<1|1,m+1,r
#define gc getchar
inline ll rd()
{
	ll x=0,w=1;char c=gc();while(!isdigit(c)&&c!='-')c=gc();
	if(c=='-')c=gc(),w=-1;while(isdigit(c))x=x*10+c-48,c=gc();return x*w;
}
const int N=405,P=998244353;
int n,tt,h[N],f[N][N][2],p[2][N][N];
int dp(int l,int r)
{
	if(l>r)return 0;int o=++tt,val=1e9,nn=0;
	rep(i,l,r)val=min(val,h[i]);
	int lst=l-1,sz=0;f[o][0][0]=1;
	rep(i,l,r+1)if(i==r+1||h[i]==val)
	{
		nn++;int t=dp(lst+1,i-1);
		if(t)
		{
			static int g[N][2];memset(g,0,sizeof(g));
			rep(s1,0,sz)rep(s2,0,j-lst-1)rep(t1,0,1)rep(t2,0,1)
·				g[s1+s2][t1|t2]=(g[s1+s2][t1|t2]+1ll*f[o][s1][t1]*f[t][s2][t2])%P;
			memcpy(f[o],g,sizeof(g));sz+=i-lst-1;
		}
		lst=i;
	}
	nn--;
	rep(i,1,nn)
	{
		static int g[N][2];memcpy(g,f[o],sizeof(g));
		rep(j,0,r-l+1)g[j+1][0]=(g[j+1][0]+P-f[o][j][0])%P;
		rep(j,0,r-l+1)g[j+1][1]=(g[j+1][1]+f[o][j][0])%P;
		memcpy(f[o],g,sizeof(g));
	}
	int len=val-max(h[l-1],h[r+1]);
	rep(i,0,r-l+1)
	{
		f[o][i][0]=1ll*f[o][i][0]*p[0][r-l+1-i][len]%P;
		f[o][i][1]=1ll*f[o][i][1]*p[1][r-l+1-i][len]%P;
	}
	return o;
}
int main()
{
	n=rd();rep(i,1,n)h[i]=rd();
	rep(i,0,n)p[0][i][0]=p[0][0][i]=1;
	rep(j,1,n)
	{
		p[0][j][1]=2ll*p[0][j-1][1]%P;p[1][j][1]=p[0][j][1]-1;
		rep(k,2,n)p[0][j][k]=1ll*p[0][j][k-1]*p[0][j][1]%P;
		rep(k,2,n)p[1][j][k]=1ll*p[1][j][k-1]*p[1][j][1]%P;
	}
	int t=dp(1,n),s=0;
	rep(i,0,n)rep(j,0,1)s=(s+f[t][i][j])%P;
	printf("%d\n",s);return 0;
}


Compiler output:
a.cc: In function 'int dp(int, int)':
a.cc:41:46: error: 'j' was not declared in this scope
   41 |                         rep(s1,0,sz)rep(s2,0,j-lst-1)rep(t1,0,1)rep(t2,0,1)
      |                                              ^
a.cc:16:38: note: in definition of macro 'rep'
   16 | #define rep(i,a,b) for(int i=(a);i<=(b);++i)
      |                                      ^
a.cc:42:1: error: '\U000000b7' was not declared in this scope
   42 | ·                               g[s1+s2][t1|t2]=(g[s1+s2][t1|t2]+1ll*f[o][s1][t1]*f[t][s2][t2])%P;
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;

#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
//-------------------------------------------------------

int N;
int H[404];
ll mo=998244353;

ll comb(ll N_, ll C_) {
	const int NUM_=400001;
	static ll fact[NUM_+1],factr[NUM_+1],inv[NUM_+1];
	if (fact[0]==0) {
		inv[1]=fact[0]=factr[0]=1;
		for (int i=2;i<=NUM_;++i) inv[i] = inv[mo % i] * (mo - mo / i) % mo;
		for (int i=1;i<=NUM_;++i) fact[i]=fact[i-1]*i%mo, factr[i]=factr[i-1]*inv[i]%mo;
	}
	if(C_<0 || C_>N_) return 0;
	return factr[C_]*fact[N_]%mo*factr[N_-C_]%mo;
}
ll p2[2020];

struct res {
	ll V[2][404];
};


res hoge(int L,int R,int B) {
	while(L<R&&H[L]<=B) L++;
	res ret={};
	if(L==R) {
		ret.V[0][0]=ret.V[1][0]=1;
		return ret;
	}
	int i,x;
	int add=0;
	for(i=L;i<R;i++) {
		if(H[i]<=B) {
			res X=hoge(L,i,B);
			res Y=hoge(i+1,R,B);
			int a1,a2;
			int W=R-L-1;
			for(a1=0;a1<=i-L;a1++) for(a2=0;a1+a2<=R-(i+1);a2++) {
				(ret.V[0][a1+a2]+=1LL*X.V[0][a1]*Y.V[0][a2])%=mo;
				(ret.V[1][a1+a2]+=1LL*X.V[1][a1]*Y.V[1][a2])%=mo;
			}
			return ret;
		}
		if(H[i]==B+1) add++;
	}
	res X = hoge(L,R,B+1);
	int a1,a2,u1,u2;
	int W=R-L;
	// no rook
	FOR(u1,W-add+1) ret.V[0][u1+add]=ret.V[1][u1+add]=X.V[0][u1];
	
	FOR(u1,W+1) {
		if(X.V[0][u1]) {
			FOR(x,u1+add+1) (ret.V[0][u1+add]+=X.V[0][u1]*(p2[W-(u1+add)]-(x==0))%=mo;
		}
		if(X.V[1][u1]) {
			FOR(x,u1+1) (ret.V[1][u1]+=X.V[1][u1]*(p2[W-u1]-(x==0)))%=mo;
		}
	}
		
	return ret;
	
}

void solve() {
	int i,j,k,l,r,x,y; string s;
	
	p2[0]=1;
	FOR(i,2010) p2[i+1]=p2[i]*2%mo;
	
	cin>>N;
	FOR(i,N) cin>>H[i];
	
	auto X=hoge(0,N,0);
	cout<<X.V[1][0]<<endl;
	
}


int main(int argc,char** argv){
	string s;int i;
	if(argc==1) ios::sync_with_stdio(false), cin.tie(0);
	FOR(i,argc-1) s+=argv[i+1],s+='\n'; FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin);
	cout.tie(0); solve(); return 0;
}


Compiler output:
a.cc: In function 'res hoge(int, int, int)':
a.cc:68:70: error: lvalue required as left operand of assignment
   68 |                         FOR(x,u1+add+1) (ret.V[0][u1+add]+=X.V[0][u1]*(p2[W-(u1+add)]-(x==0))%=mo;
      |                                                            ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
a.cc:68:98: error: expected ')' before ';' token
   68 |                         FOR(x,u1+add+1) (ret.V[0][u1+add]+=X.V[0][u1]*(p2[W-(u1+add)]-(x==0))%=mo;
      |                                         ~                                                        ^
      |                                                                                                  )
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;

#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
//-------------------------------------------------------

int N;
int H[404];
ll mo=998244353;

ll comb(ll N_, ll C_) {
	const int NUM_=400001;
	static ll fact[NUM_+1],factr[NUM_+1],inv[NUM_+1];
	if (fact[0]==0) {
		inv[1]=fact[0]=factr[0]=1;
		for (int i=2;i<=NUM_;++i) inv[i] = inv[mo % i] * (mo - mo / i) % mo;
		for (int i=1;i<=NUM_;++i) fact[i]=fact[i-1]*i%mo, factr[i]=factr[i-1]*inv[i]%mo;
	}
	if(C_<0 || C_>N_) return 0;
	return factr[C_]*fact[N_]%mo*factr[N_-C_]%mo;
}
ll p2[2020];

struct res {
	ll V[2][404];
};


res hoge(int L,int R,int B) {
	while(L<R&&H[L]<=B) L++;
	res ret={};
	if(L==R) {
		ret.V[0][0]=ret.V[1][0]=1;
		return ret;
	}
	int i,x;
	int add=0;
	for(i=L;i<R;i++) {
		if(H[i]<=B) {
			res X=hoge(L,i,B);
			res Y=hoge(i+1,R,B);
			int a1,a2;
			int W=R-L-1;
			for(a1=0;a1<=i-L;a1++) for(a2=0;a1+a2<=R-(i+1);a2++) {
				(ret.V[0][a1+a2]+=1LL*X.V[0][a1]*Y.V[0][a2])%=mo;
				(ret.V[1][a1+a2]+=1LL*X.V[1][a1]*Y.V[1][a2])%=mo;
			}
			return ret;
		}
		if(H[i]==B+1) add++;
	}
	res X = hoge(L,R,B+1);
	int a1,a2,u1,u2;
	int W=R-L;
	// no rook
	FOR(u1,W-add+1) ret.V[0][u1+add]=ret.V[1][u1+add]=X.V[0][u1];
	
	FOR(u1,W+1) {
		if(X.V[0][u1]) {
			FOR(x,u1+add+1) {
				if(x==0) (ret.V[0][u1+add]+=X.V[0][u1]*(p2[W-(u1+add)]-1))%=mo;
				else (ret.V[0][u1+add-x-y]+=X.V[0][u1]*comb(u1+add,x)%mo*p2[W-(u1+add)])%=mo;
			}
		}
		if(X.V[1][u1]) {
			FOR(x,u1+1) {
				if(x==0) (ret.V[1][u1]+=X.V[1][u1]*(p2[W-u1]-1))%=mo;
				else (ret.V[1][u1-x]+=X.V[1][u1]*comb(u1,x)%mo*p2[W-u1])%=mo;
			}
		}
	}
		
	return ret;
	
}

void solve() {
	int i,j,k,l,r,x,y; string s;
	
	p2[0]=1;
	FOR(i,2010) p2[i+1]=p2[i]*2%mo;
	
	cin>>N;
	FOR(i,N) cin>>H[i];
	
	auto X=hoge(0,N,0);
	cout<<X.V[1][0]<<endl;
	
}


int main(int argc,char** argv){
	string s;int i;
	if(argc==1) ios::sync_with_stdio(false), cin.tie(0);
	FOR(i,argc-1) s+=argv[i+1],s+='\n'; FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin);
	cout.tie(0); solve(); return 0;
}


Compiler output:
a.cc: In function 'res hoge(int, int, int)':
a.cc:70:57: error: 'y' was not declared in this scope
   70 |                                 else (ret.V[0][u1+add-x-y]+=X.V[0][u1]*comb(u1+add,x)%mo*p2[W-(u1+add)])%=mo;
      |                                                         ^
Language: C++

お前を見ているぞ

Compiler output:
a.cc:1:1: error: '\U0000304a\U0000524d\U00003092\U0000898b\U00003066\U00003044\U0000308b\U0000305e' does not name a type
    1 | お前を見ているぞ
      | ^~~~~~~~~~~~~~~~
Language: Java




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

Compiler output:
Main.java:5: error: class A is public, should be declared in a file named A.java
	public class A {
	       ^
Main.java:7: error: cannot find symbol
		nner(System.in);
		^
  symbol:   method nner(InputStream)
  location: class A
Main.java:9: error: cannot find symbol
			int a=sc.nextInt();
			      ^
  symbol:   variable sc
  location: class A
Main.java:10: error: cannot find symbol
			int b=sc.nextInt(); 			
			      ^
  symbol:   variable sc
  location: class A
4 errors
Language: Java




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

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

#include <stdio.h>

int main() {
	int A, B;
	scanf("%d %d", &A,&B);
	
	if (A == 1 && B == 2){
		printf("3\n");
	}else if (A == 1 && B == 3){
		printf("2\n");
	}else if (A == 2 && B == 1){
		printf("3\n");
	}else if (A == 2 && B == 3){
		printf("1\n");
	}else if (A == 3 && B == 1){
		printf("2\n");
	}else if (A == 3 && B == 2){
		printf("1\n")
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:30: error: expected ';' before '}' token
   18 |                 printf("1\n")
      |                              ^
      |                              ;
   19 |         }
      |         ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:12: error: expected ')' before 'AND'
    6 |   if((A==1) AND (B==3) OR (A==3) AND (B==1)){
      |     ~      ^~~~
      |            )
main.c:9:17: error: expected ')' before 'AND'
    9 |   else if((A==1) AND (B==2) OR (A==2) AND (B==1)){
      |          ~      ^~~~
      |                 )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected ')' before 'AND'
    6 |   if((A==1 AND B==3) OR (A==3 AND B==1)){
      |      ~    ^~~~
      |           )
main.c:6:21: error: expected ')' before 'OR'
    6 |   if((A==1 AND B==3) OR (A==3 AND B==1)){
      |     ~               ^~~
      |                     )
main.c:9:16: error: expected ')' before 'AND'
    9 |   else if((A==1 AND B==2) OR (A==2 AND B==1)){
      |           ~    ^~~~
      |                )
main.c:9:26: error: expected ')' before 'OR'
    9 |   else if((A==1 AND B==2) OR (A==2 AND B==1)){
      |          ~               ^~~
      |                          )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:10: error: expected ')' before 'AND'
    6 |   if(A==1 AND B==3 OR A==3 AND B==1){
      |     ~    ^~~~
      |          )
main.c:9:15: error: expected ')' before 'AND'
    9 |   else if(A==1 AND B==2 OR A==2 AND B==1){
      |          ~    ^~~~
      |               )
Language: C++

#include <stdio.h>

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





Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected primary-expression before '%' token
   12 |     else if(a==2 %% b==1)
      |                   ^
a.cc:20:19: error: expected primary-expression before '%' token
   20 |     else if(a==3 %% b==2)
      |                   ^
a.cc:28:9: error: expected '}' before 'else'
   28 |         else if(a==3 && b==1)
      |         ^~~~
a.cc:27:1: note: to match this '{'
   27 | {
      | ^
a.cc:28:9: error: expected '}' before 'else'
   28 |         else if(a==3 && b==1)
      |         ^~~~
a.cc:25:1: note: to match this '{'
   25 | {
      | ^
Language: C

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'PRINTF' [-Wimplicit-function-declaration]
    5 | PRINTF("%d\n", 6 - A - B);
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%d %d", &a,&b);
      |         ^~~~~
a.cc:6:17: error: 'printf' was not declared in this scope
    6 |                 printf("3");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:9:17: error: 'printf' was not declared in this scope
    9 |                 printf("1");
      |                 ^~~~~~
a.cc:9:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:12:17: error: 'printf' was not declared in this scope
   12 |                 printf("2");
      |                 ^~~~~~
a.cc:12:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C

#include <stdio.h>

int main()
{
int a,b;

scanf("%d",&a);
scanf("%d",&b);

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

Compiler output:
main.c: In function 'main':
main.c:10:9: error: lvalue required as left operand of assignment
   10 | if(a=1&b=2)
      |         ^
main.c:14:14: error: lvalue required as left operand of assignment
   14 | else if(a=2&b=1)
      |              ^
main.c:18:14: error: lvalue required as left operand of assignment
   18 | else if(a=2&b=3);
      |              ^
main.c:22:1: error: 'else' without a previous 'if'
   22 | else if(a=3&b=2)
      | ^~~~
main.c:22:14: error: lvalue required as left operand of assignment
   22 | else if(a=3&b=2)
      |              ^
main.c:26:14: error: lvalue required as left operand of assignment
   26 | else if(a=3&b=1)
      |              ^
main.c:30:14: error: lvalue required as left operand of assignment
   30 | else if(a=1&b=3)
      |              ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:31: error: expected ';' before 'if'
    4 |         scanf("%d %d", &a, &b)
      |                               ^
      |                               ;
    5 |         if(a!=1 && b!=1){
      |         ~~                     
a.cc:7:11: error: 'else' without a previous 'if'
    7 |         } else if(a!=2 && b!=2){
      |           ^~~~
Language: C++

int main(){
  int A;
  printf("A= ");
  scanf("%d", &A);
  int B;
  printf("A= ");
  scanf("%d", &B);
  
  if(A==1 && B==3){
    printf("the correct answer is 2");
  }
  else if(A==1 && B==2){
    printf("the correct answer is 3");
  }
  else if(A==2 && B==3){
    printf("the correct answer is 1");
  }
  else{
    printf("your input is wrong");
  }
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'scanf' was not declared in this scope
    3 |         scanf("%d %d", &A, &B);
      |         ^~~~~
a.cc:5:9: error: 'printf' was not declared in this scope
    5 |         printf("%d",3);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:8:17: error: 'printf' was not declared in this scope
    8 |                 printf("%d",2);
      |                 ^~~~~~
a.cc:8:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:11:17: error: 'printf' was not declared in this scope
   11 |                 printf("%d", 1);
      |                 ^~~~~~
a.cc:11:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C

#include <stdio.h>

int main(){
	int A,B;
	int C = 1;
	int D = 2;
	int E = 3;
	scanf ("%d %d",&A,&B);
	if (A==1 && B== 2){
		printf ("%d\n",E);
	}
	else if (A==2 && B==3){
		printf ("%d\n",C);
	}
	else if (A==1 && B==3){
		printf ("%d\n",D);
	}
	else if (A==2 && B==1){
		printf ("%d\n",E);
	}
	else if (A==3 && B==1){
		printf ("%d\n",D);
	}
	else if (A==3 && B==2){
		printf ("%d\n",C);
	}
	return 0;

Compiler output:
main.c: In function 'main':
main.c:27:9: error: expected declaration or statement at end of input
   27 |         return 0;
      |         ^~~~~~
Language: C

#include<stdio.h>

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

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

Compiler output:
main.c: In function 'main':
main.c:24:1: error: expected expression at end of input
   24 | else if(a==3 &&
      | ^~~~
main.c:24:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:10:18: error: expected ';' before '}' token
   10 |     printf("1\n")
      |                  ^
      |                  ;
   11 |   }else{
      |   ~
Language: Java


public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
			
			int S = sc.nextInt();
			int T = sc.nextInt();
			int C =0;
			if(S>T) {
				C=T;
			}else {
				C=S;
			}
			
			
			int l =1;
			for(int i=C;i>1;i--) {
			if(Math.floorMod(S, i)==0) {
					if(Math.floorMod(T, i)==0){
						l=i;
						break;

					}
				}
			}
	
			
			System.out.println((long)S*(long)T/l);
	}	

}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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


#define li          long long int
#define uli         unsigned long long int
#define rep(i,to)   for(li i=0;i<((li)(to));i++)
#define repp(i,start,to)    for(li i=(li)(start);i<((li)(to));i++)
#define pb          push_back
#define sz(v)       ((li)(v).size())
#define bgn(v)      ((v).begin())
#define eend(v)     ((v).end())
#define allof(v)    (v).begin(), (v).end()
#define dodp(v,n)       memset(v,(li)n,sizeof(v))
#define bit(n)      (1ll<<(li)(n))
#define mp(a,b)     make_pair(a,b)
#define rin rep(i,n)
#define EPS 1e-12
#define ETOL 1e-8
#define MOD 1000000007
typedef pair<li, li> PI;

#define INF bit(60)

#define DBGP 1


#define idp if(DBGP)
#define F first
#define S second
#define p2(a,b)     idp cout<<a<<"\t"<<b<<endl
#define p3(a,b,c)       idp cout<<a<<"\t"<<b<<"\t"<<c<<endl
#define p4(a,b,c,d)     idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<endl
#define p5(a,b,c,d,e)       idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<"\t"<<e<<endl
#define p6(a,b,c,d,e,f)     idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<"\t"<<e<<"\t"<<f<<endl
#define p7(a,b,c,d,e,f,g)       idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<"\t"<<e<<"\t"<<f<<"\t"<<g<<endl
#define p8(a,b,c,d,e,f,g,h)     idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<"\t"<<e<<"\t"<<f<<"\t"<<g<<"\t"<<h<<endl
#define p9(a,b,c,d,e,f,g,h,i)       idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<"\t"<<e<<"\t"<<f<<"\t"<<g<<"\t"<<h<<"\t"<<i<<endl
#define p10(a,b,c,d,e,f,g,h,i,j)        idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<"\t"<<e<<"\t"<<f<<"\t"<<g<<"\t"<<h<<"\t"<<i<<"\t"<<j<<endl
#define foreach(it,v)   for(__typeof((v).begin()) it=(v).begin(); it!=(v).end(); ++it)
#define p2p(x)      idp p2((x).F, (x).S)
#define dump(x,n)   idp{rep(i,n){cout<<x[i]<<" ";}puts("");}
#define dump2(x,n)  idp{rep(i,n){cout<<"["<<x[i].F<<" , "<<x[i].S<<"] ";}puts("");}
#define dumpi(x)    idp{foreach(it, x){cout<<(*it)<<" ";}puts("");}
#define dumpi2(x)   idp{foreach(it, x){cout<<"["<<(it)->F<<" , "<<(it)->S<<"] ";}puts("");}

#define read2d(a,w,h)   rep(i,h)rep(j,w)cin>>a[i][j]
#define dump2d(a,w,h)   rep(i,h){rep(j,w)cout<<a[i][j]<<" ";puts("");}

typedef pair<li, li> PI;



int main() {
    li res[3];
    li a,b;
    cin>>a>>b;
    res[a-1]++;
    rep[b-1]++;
    rep(i,3)if(res[i]==0)cout<<i+1<<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:59:5: error: 'rep' was not declared in this scope
   59 |     rep[b-1]++;
      |     ^~~
Language: C++

#include <bits/stdc++.h>

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

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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   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:6:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   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++

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

#define int long long
#define pii pair<int, int>
#define pb push_back

signed main() {
    ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
    int a, b;
    cin >> a >> b;
    int g = {1, 2, 3};
    int vis[4] = {};
    vis[a] = 1;
    vis[b] = 1;
    for (int i = 1; i <= 3; i++) {
        if(vis[i] == 0) {
            return cout << i, 0;
        }
    }

    return 0;
}



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

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

#define int long long
#define pii pair<int, int>
#define pb push_back

signed main() {
    ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
    int a, b;
    cin >> a >> b;
    int g = {1, 2, 3};
    vis[4] = {};
    vis[a] = 1;
    vis[b] = 1;
    for (int i = 1; i <= 3; i++) {
        if(vis[i] == 0) {
            return cout << i, 0;
        }
    }

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: scalar object 'g' requires one element in initializer
   12 |     int g = {1, 2, 3};
      |         ^
a.cc:13:5: error: 'vis' was not declared in this scope
   13 |     vis[4] = {};
      |     ^~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);i++)
using namespace std;
using ll = long long;
int main(void){
    int A,B;
    cin>>A>>B;
    
    intans=6-A-B;
    cout<<ans<<endl;
  
    }
    
    



Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'intans' was not declared in this scope
    9 |     intans=6-A-B;
      |     ^~~~~~
a.cc:10:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     cout<<ans<<endl;
      |           ^~~
      |           abs
Language: C++

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

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

#include <bits/stdc++.h> 
const long long MOD = 1e9+7;
using namespace std;


int main () {
	ios::sync_with_stdio(0);
	cin.tie(0);

	int A,B;
	cin >> A >> B;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:26: error: invalid type argument of unary '*' (have 'int')
   17 |         } else if (A==3 ** B==1) {
      |                          ^~~
Language: C++

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

#define FAST ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);

#define MAXX 500005
#define INF INT_MAX

#define PI   3.14159265358979323846264338327950

#define PB push_back
#define PF push_front
#define F first
#define S second

#define fixx(n) fixed << setprecision(n)

#define ll 	 long long

#define mod  1000000007

map<int, bool> mp;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:29:9: error: 'm' was not declared in this scope
   29 |         m[a] = true;
      |         ^
Language: Java

import java.util.*;

public class Template{
    public  static void  main(String... args){
       Scanner sc = new Scanner(System.in);
       int a = sc.nextInt();
       int b = sc.nextInt();
       System.out.println((a^b^(1^2^3)));
    }
}

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

#include <bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before ')' token
    9 |     cout << 3 << endl);
      |                      ^
      |                      ;
Language: C

main(){int a,b,i;scanf("%d%d",&a,&b);
for(i=1;i<4i++){if(a!=i&&b!=i)printf("%d",i);break;}}


Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){int a,b,i;scanf("%d%d",&a,&b);
      | ^~~~
main.c: In function 'main':
main.c:1:18: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){int a,b,i;scanf("%d%d",&a,&b);
      |                  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){int a,b,i;scanf("%d%d",&a,&b);
main.c:1:18: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){int a,b,i;scanf("%d%d",&a,&b);
      |                  ^~~~~
main.c:1:18: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:13: error: lvalue required as increment operand
    2 | for(i=1;i<4i++){if(a!=i&&b!=i)printf("%d",i);break;}}
      |             ^~
main.c:2:15: error: expected ';' before ')' token
    2 | for(i=1;i<4i++){if(a!=i&&b!=i)printf("%d",i);break;}}
      |               ^
      |               ;
main.c:2:31: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    2 | for(i=1;i<4i++){if(a!=i&&b!=i)printf("%d",i);break;}}
      |                               ^~~~~~
main.c:2:31: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:31: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:2:31: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

main(){int a,b,i;scanf("%d%d",&a,&b);for(i=1;i<4){if(a!=i&&b!=i)printf("%d",i);break;}}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){int a,b,i;scanf("%d%d",&a,&b);for(i=1;i<4){if(a!=i&&b!=i)printf("%d",i);break;}}
      | ^~~~
main.c: In function 'main':
main.c:1:18: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){int a,b,i;scanf("%d%d",&a,&b);for(i=1;i<4){if(a!=i&&b!=i)printf("%d",i);break;}}
      |                  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){int a,b,i;scanf("%d%d",&a,&b);for(i=1;i<4){if(a!=i&&b!=i)printf("%d",i);break;}}
main.c:1:18: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){int a,b,i;scanf("%d%d",&a,&b);for(i=1;i<4){if(a!=i&&b!=i)printf("%d",i);break;}}
      |                  ^~~~~
main.c:1:18: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:49: error: expected ';' before ')' token
    1 | main(){int a,b,i;scanf("%d%d",&a,&b);for(i=1;i<4){if(a!=i&&b!=i)printf("%d",i);break;}}
      |                                                 ^
      |                                                 ;
main.c:1:65: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(){int a,b,i;scanf("%d%d",&a,&b);for(i=1;i<4){if(a!=i&&b!=i)printf("%d",i);break;}}
      |                                                                 ^~~~~~
main.c:1:65: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:65: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:65: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

import java.util.*;
class Main {
  static Scanner sc = new Scanner(System.in);
  public static void main(String[] args) {
    int A=sc.nextInt(),B=sc.nextInt();
    for(int i=1;i<=3;i++){
      if(i!=A&&i!=B){
        System.out.println(i);
        break;
      }
    }
  }
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.*;
      |            ^
main.c:2:1: error: unknown type name 'class'
    2 | class Main {
      | ^~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | class Main {
      |            ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b;
  cin>>a;
  cout<<"\n";
  cin>>b;
  if(a!=1 &&b!=1)
    cout<<"1";
   else if(a!=2 &&b!=2)
     cout<<"2";
  else
    cout<<"3"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected ';' before '}' token
   13 |     cout<<"3"
      |              ^
      |              ;
   14 | }
      | ~
Language: C++

#include<iostream.h>
using namespace std;
int main(){
  int a,b;
  cin>>a;
  cout<<"\n";
  cin>>b;
  if(a!=1 &&b!=1)
    cout<<"1";
   else if(a!=2 &&b!=2)
     cout<<"2";
  else
    cout<<"3"
}
      

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

#include <iostream>
using namespace std;

// Caleb Faith Adnaka XI105
int main() {

    int A,B;
    cin >> A;
    cin >> B;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected '(' before '{' token
   17 |     else if{A == 2 && B == 3){
      |            ^
      |            (
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

// Caleb Faith Adnaka XI105
int main() {

    int A,B;
    cin >> A;
    cin >> B;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected '(' before '{' token
   17 |     else if{A == 2 && B == 3{
      |            ^
      |            (
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

// Caleb Faith Adnaka XI105
int main() {

    int A,B;
    cin >> A;
    cin >> B;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected '(' before '{' token
   17 |     else if{A == 2 && B == 3
      |            ^
      |            (
Language: Java



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

public class Main {
	public static void main(String [] args) throws IOException {
		BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
		 int n =Integer.valueOf(br.readLine());
	     int z =Integer.valueOf(br.readLine());
		 
		 if(n==1) {
			 if(z==2) {
				 System.out.print("3");
			 }
			 else if(z==3) {
				 System.out.print("2");
			 }
		 }else if(n==2) {
			 if(z==1) {
				 System.out.print("3");
			 }
			 else if(z==3) {
				 System.out.print("1");
			 }else if(n==3) {
			 if(z==1) {
				 System.out.print("2");
			 }
			 else if(z==2) {
				 System.out.print("1");
			 }
		 }
	}

}


Compiler output:
Main.java:36: error: reached end of file while parsing
}
 ^
1 error
Language: Java


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

public class Main {
	public static void main(String [] args) throws IOException {
		BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
		 String a=br.readLine();
		 int n =Integer.valueOf(a);
		 BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
		 String b=br.readLine();
		 int z =Integer.valueOf(b);
		 
		 if(n==1) {
			 if(z==2) {
				 System.out.print("3");
			 }
			 else if(z==3) {
				 System.out.print("2");
			 }
		 }
		 
		 if(n==2) {
			 if(z==1) {
				 System.out.print("3");
			 }
			 else if(z==3) {
				 System.out.print("1");
			 }
		 }
	}

}


Compiler output:
Main.java:11: error: variable br is already defined in method main(String[])
		 BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
		                ^
1 error
Language: Java



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

public class RoundOne0808 {
	public static void main(String [] args) throws IOException {
		BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
		 String a=br.readLine();
		 int n =Integer.valueOf(a);
		 BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
		 String b=br.readLine();
		 int z =Integer.valueOf(b);
		 
		 if(n==1) {
			 if(z==2) {
				 System.out.print("3");
			 }
			 else if(z==3) {
				 System.out.print("2");
			 }
		 }
		 
		 if(n==2) {
			 if(z==1) {
				 System.out.print("3");
			 }
			 else if(z==3) {
				 System.out.print("1");
			 }
		 }
	}

}


Compiler output:
Main.java:7: error: class RoundOne0808 is public, should be declared in a file named RoundOne0808.java
public class RoundOne0808 {
       ^
Main.java:12: error: variable br is already defined in method main(String[])
		 BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
		                ^
2 errors
Language: Java

import java.util.Scanner;

public class main {

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


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

import java.util.Scanner;

public class abc148_a {

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


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

#include <bits/stdc++.h>

using namespace std;

int main() {
    int A, B;
    cin >> A >> B;
    switch (A) {
        case 1:
            if (B == 2) {
                cout << 3 << endl;
            } else {
                cout << 2 << endl;
            }
            break
        case 2:
            if (B == 1) {
                cout << 3 << endl;
            } else {
                cout << 1 << endl;
            }
        default:
            if (B == 1) {
                cout << 2 << endl;
            } else {
                cout << 1 << endl;
            }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: expected ';' before 'case'
   15 |             break
      |                  ^
      |                  ;
   16 |         case 2:
      |         ~~~~
Language: C++

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


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

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


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