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

#include<cstdio>
#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<queue>
#include<string>
#include<vector>
#include<float.h>
#include<math.h>
#include<map>
#include<iomanip>
#include<numeric>
using  ll = long long;
using namespace std;
const ll M = 1000000007;

int main(){
  int n; cin >> n;
  string ans = "Draw";
  int a, b; cin >> a >> b;
  for(int i = 0;; i++){
    if(i % 2 == 0){
      if(a + 1 != b){
        a++;
      } else {
        a--;
        if(a < 0) ans = "Borys";
      }
      else {
        a++;
      }
    }
    else {
      if(a+1 != b){
        b--;
      } else {
        b++;
        if(b > n) ans = "Alice";
      }
    }
  }

  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:7: error: expected '}' before 'else'
   29 |       else {
      |       ^~~~
a.cc:22:19: note: to match this '{'
   22 |     if(i % 2 == 0){
      |                   ^
a.cc:33:5: error: 'else' without a previous 'if'
   33 |     else {
      |     ^~~~
a.cc: At global scope:
a.cc:43:3: error: 'cout' does not name a type
   43 |   cout << ans << endl;
      |   ^~~~
a.cc:44:1: error: expected declaration before '}' token
   44 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int n,a,b;
    cin>>n>>a>>b;
    if((b-a)%2==0)cout<<"Alice"endl;
    else cout<<"Borys"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: unable to find string literal operator 'operator""endl' with 'const char [6]', 'long unsigned int' arguments
    6 |     if((b-a)%2==0)cout<<"Alice"endl;
      |                         ^~~~~~~~~~~
Language: C++

#include<bits/stdc++>
using namespace std;
int main() {
	int N, A, B;
	cin >> N >> A >> B;
	int x = abs(A - B);
	x -= 1;
	if (x % 2 == 0) {
		cout << "Alice" << endl;
	}
	else {
		cout << "Borys" << endl;
	}
}

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

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

int main() {
  int N,A,B,t;
  cin >> N >> A >> B;
  if((B-A)%2 = 0){
    t = 1
  }
  else{
    t = 0
  }
  if(t){
    cout << "Alice" << endl;
  }
  else{
    cout << "Borys" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: lvalue required as left operand of assignment
    7 |   if((B-A)%2 = 0){
      |      ~~~~~^~
a.cc:8:10: error: expected ';' before '}' token
    8 |     t = 1
      |          ^
      |          ;
    9 |   }
      |   ~       
a.cc:11:10: error: expected ';' before '}' token
   11 |     t = 0
      |          ^
      |          ;
   12 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int x,y,z;
int main()
{
	cin>>z>>x>>y;
	if((b-a-1)%2==1) cout<<"Alice";
	else cout<<"Borys";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'b' was not declared in this scope
    7 |         if((b-a-1)%2==1) cout<<"Alice";
      |             ^
a.cc:7:15: error: 'a' was not declared in this scope
    7 |         if((b-a-1)%2==1) cout<<"Alice";
      |               ^
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define N 205
using namespace std;
inline int read(){
  int x = 0, f = 0;char ch = getchar();
  for (; ch <'0' || ch>'9'; ch = getchar()) if (ch == '-') f = 1;
  for (; ch >= '0'&& ch<='9'; ch = getchar()) x = (x<<1) + (x<<3) + ch - 48;
  return f ?-x :x;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<stdio.h>
#include<iostream>
#include<cstdio>
#include<cstdlib> 
using namespace std;
int a,b
int main(void){
    scanf("%*d%d%d",&a,&b);
    if((b-a-1)&1)
        puts("Alice");
    else
        puts("Borys");
    return 0;
}

Compiler output:
a.cc:7:1: error: expected initializer before 'int'
    7 | int main(void){
      | ^~~
Language: C++

#include<bits/stdc++.h>
int main()
{   
    int a,b;
    cin>>a>>b;
    if((b-a-1)&1)
        cout<<"Alice"<<endl;
    else
        cout<<"Borys"<<endl;
    return 0;//结束
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>a>>b;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout<<"Alice"<<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         cout<<"Alice"<<endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout<<"Borys"<<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout<<"Borys"<<endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <stdio.h>
int main()
{
	int a,b;
	scanf("%*d %d %d"&n,&a,&b);
	if((a-b-1)&1) printf("Alice\n");
		else printf("Borys\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:27: error: 'n' was not declared in this scope
    5 |         scanf("%*d %d %d"&n,&a,&b);
      |                           ^
Language: C++

/*
濂楄矾
鏈堿lice鍜孊ob鐨勪竴瀹氭槸%2鐒跺悗鍒ゅ畾鐨刜(:蟹銆嶁垹)_
鍏跺疄鏄€冭檻鏈€缁堟儏鍐?
 */
#define R register
#define ll long long
#include <bits/stdc++.h>

using namespace std;

int n, a, b;
int main()
{
	scanf("%d%d%d", &n, &a, &b);
	if((b - a - 1) % 2) puts("Alice");
	else puts("Borys")
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:27: error: expected ';' before 'return'
   17 |         else puts("Borys")
      |                           ^
      |                           ;
   18 |         return 0;
      |         ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,a,b;
	cin>>n>>a>>b;
	if((b-a)%2) cout<<"Borys"<<endl;
	else cout<"Alice"<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: invalid operands of types 'const char [6]' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |         else cout<"Alice"<<endl;
      |                   ~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
#define rep(i,s,e) for(int (i) = (s);(i) <= (e);(i)++)

int main(){
  int a,b;
    cin >> a >> a >> b;
      cout << (abs(a - b) & 1 ? "Borys" : "Alice") << endl;
      }
}


Compiler output:
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

#include <iostream>

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

  if((B-A)%2==1) cout << "Alice" << endl;
  else           cout << "Borys" << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> N >> A >> B;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if((B-A)%2==1) cout << "Alice" << endl;
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   if((B-A)%2==1) cout << "Alice" << endl;
      |                                     ^~~~
      |                                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else           cout << "Borys" << endl;
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   else           cout << "Borys" << endl;
      |                                     ^~~~
      |                                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A = sc.nextInt();
		int B = sc.nextInt();
		if (N % 2 == 0) {
			if (A + B % 2 != 0) {
				System.out.println("Borys");
			} else {
				System.out.println("Alice");
			}
		} else {
			if (A + B % 2 != 0) {
				System.out.println("Alice");
			} else {
				System.out.println("Borys");
			}
		}
	}
}

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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a, b, c;
    cin >> a >> b >> c;
    if ((b - c) % 2 == 0) cout << "Alice" << endl;
    else cont << "Borys" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'cont' was not declared in this scope; did you mean 'const'?
    8 |     else cont << "Borys" << endl;
      |          ^~~~
      |          const
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a, b, c;
    cin >> a >> b >> c;
    if ((b - c) % 2) cout << "Alice" << endl;
    else cont << "Borys" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'cont' was not declared in this scope; did you mean 'const'?
    8 |     else cont << "Borys" << endl;
      |          ^~~~
      |          const
Language: C++

#include <iostream>
#include <sstream>
#include <String>


int main() {

	int n, a, b;

	std::cin >> n >> a >> b;

	int c = a - b - 1;

	if (c % 2 == 1) {
		std::cout << "Alice" << std::endl;
	}
	else {
		std::cout << "Borys" << std::endl;
	}
	return 0;

}

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

#include<iostream>
using namespace std;
int main(){
    int n;
    int a,b;
    cin>>n>>a>>b;
    if(n%2==1){
        if(a%2==b%2) cout<<Alice;
        else cout<<Borys;
    }
    if(n%2==0){
        if(a%2!=b%2) cout<<Alice;
        else cout<<Borys;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: 'Alice' was not declared in this scope
    8 |         if(a%2==b%2) cout<<Alice;
      |                            ^~~~~
a.cc:9:20: error: 'Borys' was not declared in this scope
    9 |         else cout<<Borys;
      |                    ^~~~~
a.cc:12:28: error: 'Alice' was not declared in this scope
   12 |         if(a%2!=b%2) cout<<Alice;
      |                            ^~~~~
a.cc:13:20: error: 'Borys' was not declared in this scope
   13 |         else cout<<Borys;
      |                    ^~~~~
Language: C

#include <stdio.h>

int main(void)
{
	int N,A,B;
	scanf("%d%d%d",&N,&A,&B);
	if((B-A+1)%2==0)
	printf("Borys");
	else
	printf("Alice";)
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:23: error: expected ')' before ';' token
   10 |         printf("Alice";)
      |               ~       ^
      |                       )
main.c:10:25: error: expected ';' before 'return'
   10 |         printf("Alice";)
      |                         ^
      |                         ;
   11 | 
   12 |         return 0;
      |         ~~~~~~
Language: C

#include <stdio.h>

int main(void)
{
	int N,A,B;
	scanf("%d%d%d",&N,&A,&B);
	if(N==2)
	printf("Draw");
	else if((B-A+1)%2==0)
	printf("Borys");
	else
	printf("Alice";)
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:23: error: expected ')' before ';' token
   12 |         printf("Alice";)
      |               ~       ^
      |                       )
main.c:12:25: error: expected ';' before 'return'
   12 |         printf("Alice";)
      |                         ^
      |                         ;
   13 | 
   14 |         return 0;
      |         ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: 'Alice' was not declared in this scope
    6 | if(A-B%2==0) cout<<Alice<<endl;
      |                    ^~~~~
a.cc:7:12: error: 'Borys' was not declared in this scope
    7 | else cout<<Borys<<endl;
      |            ^~~~~
Language: C++

#include <iostream>
#include <boost/multiprecision/cpp_int.hpp>
using namespace std;

int main(){
    int N;
    long long A;
    cin >> N;
    long long sum=0;
    boost::multiprecision::cpp_int dp=1;
    for(int i=0;i<N;i++){
        cin >> A;
        sum+=A;
        dp=(dp|(dp<<A));
    }

    boost::multiprecision::cpp_int ms,one=1;
    for(ms=sum/2+(sum%2);(dp&(one<<ms))==0;ms++);

    cout << ms << endl;

    return 0;
}

Compiler output:
a.cc:2:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    2 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>

int main(){
        int n,a,b;
        scanf("%d %d %d", &n,&a,&b);
        int m = a<b ? b : a;
        int n = a<b ? a : b;

        if((b-a)%2==0) printf("Alice\n");
        else printf("Borys\n");
        return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: redeclaration of 'n' with no linkage
    7 |         int n = a<b ? a : b;
      |             ^
main.c:4:13: note: previous declaration of 'n' with type 'int'
    4 |         int n,a,b;
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int n,a[2000];
bitset < 4001000 > dp;
int main()
{
    int n;cin>>n;
    dp[0]=1;int avg=0;
    for(int i=0;i<n;i++) {
            cin>>a[i];avg+=a[i];dp = dp | dp<<a[i];
    }
    avg=avg/2;#include <bits/stdc++.h>
using namespace std;
int n,a[2010];
bitset < 4001000 > dp;
int main()
{
    int n;cin>>n;
    dp[0]=1;int avg=0;
    for(int i=0;i<n;i++) {
            cin>>a[i];avg+=a[i];dp = dp | dp<<a[i];
    }
    avg=avg/2;

    if(avg%2) avg++;
    for(int i=avg;i<4001000;i++){

        if(dp[i]) {
            cout<<i<<endl;
            return 0;
        }
    }
    return 0;
}


    if(avg%2) avg++;
    for(int i=avg;i<4001000;i++){

        if(dp[i]) {
            cout<<i<<endl;
            return 0;
        }
    }
    return 0;
}


Compiler output:
a.cc:12:15: error: stray '#' in program
   12 |     avg=avg/2;#include <bits/stdc++.h>
      |               ^
a.cc: In function 'int main()':
a.cc:12:16: error: 'include' was not declared in this scope
   12 |     avg=avg/2;#include <bits/stdc++.h>
      |                ^~~~~~~
a.cc:12:25: error: 'bits' was not declared in this scope
   12 |     avg=avg/2;#include <bits/stdc++.h>
      |                         ^~~~
a.cc:12:30: error: 'stdc' was not declared in this scope; did you mean 'std'?
   12 |     avg=avg/2;#include <bits/stdc++.h>
      |                              ^~~~
      |                              std
a.cc:13:1: error: expected primary-expression before 'using'
   13 | using namespace std;
      | ^~~~~
a.cc:14:5: error: redeclaration of 'int n'
   14 | int n,a[2010];
      |     ^
a.cc:7:9: note: 'int n' previously declared here
    7 |     int n;cin>>n;
      |         ^
a.cc:16:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   16 | int main()
      |         ^~
a.cc:16:9: note: remove parentheses to default-initialize a variable
   16 | int main()
      |         ^~
      |         --
a.cc:16:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:17:1: error: a function-definition is not allowed here before '{' token
   17 | {
      | ^
Language: C++

#include<iostream>
#include<cstdio>
#include<string>
#include<math.h>
using namespace std;
int main()
{
int q,a,b,f,t,i,j,v;
string s;
cin>>q;
while(q--)
{
cin>>a>>b>>f>>t;
v=ceil(float(a)/b);
s.assign(a,'A');
i=-1;
if(b-a==1)
{
while(a--)
{
s.append("BA")
}
s.append("B");
cout<<s;
}
else
{
for(j=0;j<(a/v);j++)
{
i+=(v+1);
s.insert(i,"B");
}
for(j=0;j<(b-a/v);j++)
{s.append("B");}
cout<<s.substr(f-1,t-f+1)<<"\n";
}
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: expected ';' before '}' token
   21 | s.append("BA")
      |               ^
      |               ;
   22 | }
      | ~
Language: Java

public class Main {
    public static void main(String args[]) {
        java.util.scanner sc = new java.util.scanner(System.in);
        int N = sc.nextInt();
        int A = sc.nextInt();
        int B = sc.nextInt();

        if ((B - A) % 2 == 0) {
            System.out.println("Alice");
        } else {
            System.out.println("Borys");
        }
    }
}

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

#include <bits/stdc++.h>
using namespace std;
int N, A, B:
int main(){
	cin >> N >> A >> B;
	if((B - A) & 1)	puts("Borys");
	else puts("Alice");
	return 0;
}

Compiler output:
a.cc:3:12: error: expected initializer before ':' token
    3 | int N, A, B:
      |            ^
Language: C++

int main(){
    int n, a, b;
    cin >> n >> a >> b;
    if((a + b + 100) % 2 == 0){
        cout << "Alice" << endl;
    }else{
        cout << "Borys" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> n >> a >> b;
      |     ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout << "Alice" << endl;
      |         ^~~~
a.cc:5:28: error: 'endl' was not declared in this scope
    5 |         cout << "Alice" << endl;
      |                            ^~~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << "Borys" << endl;
      |         ^~~~
a.cc:7:28: error: 'endl' was not declared in this scope
    7 |         cout << "Borys" << endl;
      |                            ^~~~
Language: C++

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

int main()
{
	int n, a, b;
	cin >> n >> a >> b;
	int sm,bi;

	/*
	if ( (a==1 && b==2) || (a==n && b==n-1) || (b == 1 && a == 2) || (b == n && a == n - 1))
	{
		cout << "Borys\n";
	}
	*/

	else
	{
		if ((max(a, b) - min(a, b) - 1) % 2 == 0)
		{
			cout << "Borys\n";
		}

		else
		{
			cout << "Alice\n";
		}
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'else' without a previous 'if'
   18 |         else
      |         ^~~~
Language: C++

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

int main(){

	int n,a,b;
	scanf("%d %d %d",&n,&a,&b);
	if(abs(a-b)&1)
		printf("Borys\n");
	else
		printf("Alice\n");

	return 0;
}

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

#include <iostream>
using namespace std;

int main(){
    int N, A, B;
    cin >> N >> A >> B;
    
    if((A-B) > 0){
        if((A-B)%2=0){
            cout << "alice" << endl;
        }
        else{
            cout << "borys" <<endl;
        }
    }
    else{
        if((B-A)%2=0){
            cout << "alice" << endl;
        }
        else{
            cout << "borys" <<endl;
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: lvalue required as left operand of assignment
    9 |         if((A-B)%2=0){
      |            ~~~~~^~
a.cc:17:17: error: lvalue required as left operand of assignment
   17 |         if((B-A)%2=0){
      |            ~~~~~^~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int N, A, B;
    cin >> N >> A >> B;
    
    if(A-B > 0){
        if(A-B%2=0){
            cout << "alice" << endl;
        }
        else{
            cout << "borys" <<endl;
        }
    }
    else{
        if(B-A%2=0){
            cout << "alice" << endl;
        }
        else{
            cout << "borys" <<endl;
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: lvalue required as left operand of assignment
    9 |         if(A-B%2=0){
      |            ~^~~~
a.cc:17:13: error: lvalue required as left operand of assignment
   17 |         if(B-A%2=0){
      |            ~^~~~
Language: Java

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Sanner in =new Scanner(System.in);
		int a=in.nextInt();
		int b=in.nextInt();
		int c=in.nextInt();
		if(a%2==0)
		System.out.println("Alice");
		else
		System.out.println("Borys");
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
		Sanner in =new Scanner(System.in);
		^
  symbol:   class Sanner
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
cin >> N>>A>>B;
if((A%2)==(B%2)) cout<< "Alice";
else cout<<"Borys";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'N' was not declared in this scope
    7 | cin >> N>>A>>B;
      |        ^
a.cc:7:11: error: 'A' was not declared in this scope
    7 | cin >> N>>A>>B;
      |           ^
a.cc:7:14: error: 'B' was not declared in this scope
    7 | cin >> N>>A>>B;
      |              ^
Language: C++

n,a,b = (int(x) for x in input().split())
print('Alice' if (b-a)%2 == 0 else 'Borys')

Compiler output:
a.cc:2:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    2 | print('Alice' if (b-a)%2 == 0 else 'Borys')
      |       ^~~~~~~
a.cc:2:36: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    2 | print('Alice' if (b-a)%2 == 0 else 'Borys')
      |                                    ^~~~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n,a,b = (int(x) for x in input().split())
      | ^
Language: C++

#include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<cstring>
#include<string>
#include<cmath>
#include<ctime>
#include<set>
#include<vector>
#include<map>
#include<queue>

#define N 300005
#define M 8000005

#define ls (t<<1)
#define rs ((t<<1)|1)
#define mid ((l+r)>>1)

#define mk make_pair
#define pb push_back
#define fi first
#define se second

using namespace std;

int i,j,m,n,p,k;

int main()
{
		scanf("%d%d%d",&n,&A,&B);
		if ((B-A)&1) puts("Borys");
		else puts("Alice"); 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:36: error: 'A' was not declared in this scope
   32 |                 scanf("%d%d%d",&n,&A,&B);
      |                                    ^
a.cc:32:39: error: 'B' was not declared in this scope
   32 |                 scanf("%d%d%d",&n,&A,&B);
      |                                       ^
Language: C++

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
main()
{
   int n,a,b;
   cin >> n >> a >> b;
   if ((b - a)% 2 == 0) cout <<"Alice\n";
   else cout <<"Borys\n";
}


Compiler output:
a.cc:2:9: fatal error: windows.h: No such file or directory
    2 | #include<windows.h>
      |         ^~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;

public class MyClass {
    public static void main(String args[]) {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int a = s.nextInt();
        int b = s.nextInt();
        if(Math.abs(b-a)%2 == 0)
        System.out.println("Alice");
        else
        System.out.println("Borys");
        
        
        
        
        
    }
}


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

#include<iostream.h>
main(){int n,a,b;cin>>n>>a>>b;if((b-a)%2)cout<<"Borys\n";else cout<<"Alice\n";}


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

#include<algo.h>
main(){int n,a,b;cin>>n>>a>>b;if((b-a)%2)cout<<"Borys\n";else cout<<"Alice\n";}

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

#include "stdafx.h"
#include <iostream>
using namespace std;


int main()
{
	int n, a, b;
	cin >> n, a, b;
	if((a-b)%2 == 0){
		cout << "Alice" << endl;


	}
	else
	{
		cout << "Borys" << endl;
	}


	



    return 0;
}

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

#include<iostream>
using namespace std;
int main(){
  int n,a,b;
  cin >> n >> a >> b;
  bool a;
  if(a==1&&b==2)a=false;
  else if(b==n&&a==b-1)a=true;
  else if((b-a)%2)a=false;
  else a=true;

  if(a)cout<<"Alice\n";
  else cout<<"Borys\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: conflicting declaration 'bool a'
    6 |   bool a;
      |        ^
a.cc:4:9: note: previous declaration as 'int a'
    4 |   int n,a,b;
      |         ^
Language: C++

#include<iostream>
#include<math.h>
 
using namespace std;
 
int main() {
	int k , l, r;
	int x, y;
	cin >> k;
	int a[100000];
	for (int i = 0; i < k; i++) {
		cin >> a[i];
	}
	l = 2; r = 2;
	for (int i = k - 1; i >= 0; i--) {
		x = ceil(l / (double)a[i])*a[i];
		y = floor(r / (double)a[i])*a[i];
                if(x>y){
                 cout<<"-1"<<enl; return 0;
                }
		l = x;
		r = y + a[i] - 1;
	}
	cout << l << " " << r << endl;
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:30: error: 'enl' was not declared in this scope; did you mean 'ynl'?
   19 |                  cout<<"-1"<<enl; return 0;
      |                              ^~~
      |                              ynl
Language: Java

import java.util.Scanner;

public class MoveAndWin {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();

        boolean aliceTurn = true;
        if(Math.abs(a - b) == 1) {
            System.out.println("Borys");
            return;
        }

        while (Math.abs(a - b) != 1 && a < n && b < n) {
            if(aliceTurn) {
                a++;
                aliceTurn = false;
            }
            else {
                b++;
                aliceTurn = true;
            }
        }
        // TODO: this doesnt take into account that they can move left ?

        if(aliceTurn) {
            System.out.println("Borys");
        }
        else {
            System.out.println("Alice");
        }
    }

}


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

#include <stdio.h>

int a[100000];

int main(){
    int k;
    long long min = 2, max = 2;
    scanf("%d", &k);
    for(int i=0; i<k; i++){
        scanf("%d", &a[i]);
    }
    for(int i=k-1; i>=0; i--){
        min = ((min - 1) / a[i] + 1) * a[i];
        max = (max / a[i] + 1) * a[i] - 1;
        if(max_last < min_last){
            puts("-1");
            return 0;
        }
    }
    printf("%d %d\n", min, max);
}

Compiler output:
main.c: In function 'main':
main.c:15:12: error: 'max_last' undeclared (first use in this function)
   15 |         if(max_last < min_last){
      |            ^~~~~~~~
main.c:15:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:23: error: 'min_last' undeclared (first use in this function)
   15 |         if(max_last < min_last){
      |                       ^~~~~~~~
Language: C++

#include <map>
#include <set>
#include <stack>
#include <queue>
#include <cmath>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>

using namespace std;
typedef long long ll;
const ll maxn = 1e5+10;

__int64 n,a[maxn];

int main(){
    while(~scanf("%I64d",&n)){
        for(ll i = 1;i <= n;i++)scanf("%I64d",&a[i]);
        if(a[n] != 2||n == 1) {puts("-1");continue;}
        ll minn = 2,maxx;
        for(ll i = n;i >= 1;i--){
            if(minn <= a[i]) minn = a[i];
            else minn = (minn/a[i]+1)*a[i];
        }
        maxx = minn+a[1]-1;
        ll ans = minn,gcd = a[1];
        for(ll i = 1;i <= n;i++){
            ans = ans/a[i]*a[i];
            gcd = __gcd(gcd,a[i]);
        }
        if(ans != 2) puts("-1");
        else printf("%I64d %I64d\n",minn,maxx);
    }
    return 0;
}

Compiler output:
a.cc:17:1: error: '__int64' does not name a type; did you mean '__int64_t'?
   17 | __int64 n,a[maxn];
      | ^~~~~~~
      | __int64_t
a.cc: In function 'int main()':
a.cc:20:27: error: 'n' was not declared in this scope; did you mean 'yn'?
   20 |     while(~scanf("%I64d",&n)){
      |                           ^
      |                           yn
a.cc:21:48: error: 'a' was not declared in this scope
   21 |         for(ll i = 1;i <= n;i++)scanf("%I64d",&a[i]);
      |                                                ^
a.cc:22:12: error: 'a' was not declared in this scope
   22 |         if(a[n] != 2||n == 1) {puts("-1");continue;}
      |            ^
a.cc:25:24: error: 'a' was not declared in this scope
   25 |             if(minn <= a[i]) minn = a[i];
      |                        ^
a.cc:28:21: error: 'a' was not declared in this scope
   28 |         maxx = minn+a[1]-1;
      |                     ^
Language: C++

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

int main(){
int size;
bool flag = true;
cin >> size;
int instructions[size];
for(int i = 0; i < size; i ++){
cin >> instructions[i];
}
int min, max;
min = 2; max =3;
if(instructions[size-1]!=2) flag = false;
if(flag){
for(int i = size-2; i >=0;i--){
if(instructions[i+1]==instructions[i]) continue;
if(instructions[i] > max){
flag = false;
break;
}
min = min%instructins[i]==0? (min/instructions[i]+1)*instructions[i]:min;
max = (max/instructions[i]+1)*instructions[i]-1;
}}
if(flag){
cout << min << " " << max;
}else{cout << -1;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:11: error: 'instructins' was not declared in this scope; did you mean 'instructions'?
   26 | min = min%instructins[i]==0? (min/instructions[i]+1)*instructions[i]:min;
      |           ^~~~~~~~~~~
      |           instructions
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int n,a,b,s=0;
	int i;
	scanf("%d %d %d",&n,&a,&b);
	for(i=0;i<n;i++)
	{
		for(j=0;j<a;j++)
		{
			s+=a+b;
			s*=2;
		}
	}
	for(i=0;i<n;i++)
	{
		for(j=0;j<a;j++)
		{
			s+=a+b;
			s*=2;
		}
	} 
	printf("%d",s);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'j' was not declared in this scope
   10 |                 for(j=0;j<a;j++)
      |                     ^
a.cc:18:21: error: 'j' was not declared in this scope
   18 |                 for(j=0;j<a;j++)
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int n,a,b,s=0;
	int i;
	scanf("%d %d %d",&n,&a,&b);
	for(i=0;i<n;i++)
	{
		for(j=0;j<a;j++)
		{
			s+=a+b;
			s*=2;
		}
	}
	for(i=0;i<n;i++)
	{
		for(j=0;j<a;j++)
		{
			s+=a+b;
			s*=2;
		}
	} 
	printf("%d",s+a);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'j' was not declared in this scope
   10 |                 for(j=0;j<a;j++)
      |                     ^
a.cc:18:21: error: 'j' was not declared in this scope
   18 |                 for(j=0;j<a;j++)
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,a,b;
cin>>n>>a>>b;
if(((b-a)%2)==1) cout<<"Borys<<endl;
else cout<<Alice<<endl;
return 0;
}

Compiler output:
a.cc:7:24: warning: missing terminating " character
    7 | if(((b-a)%2)==1) cout<<"Borys<<endl;
      |                        ^
a.cc:7:24: error: missing terminating " character
    7 | if(((b-a)%2)==1) cout<<"Borys<<endl;
      |                        ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: expected primary-expression before 'else'
    8 | else cout<<Alice<<endl;
      | ^~~~
Language: C++

#include<stdio.h>
int main()
{
	int a,b,c;
	int d;
	scanf("%d %d %d",&a,&b,&c);
	d=c-b;
	if(d%2==0;)
	{
		prinf("Alice");
	}
	else
	{
		printf("Borys");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before ')' token
    8 |         if(d%2==0;)
      |                   ^
a.cc:10:17: error: 'prinf' was not declared in this scope; did you mean 'printf'?
   10 |                 prinf("Alice");
      |                 ^~~~~
      |                 printf
Language: C++


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


    int delta = b - a - 1;
    if (delta % 2)
        cout << "Alice" << endl;
    else
        cout << "Borys" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> n;
      |     ^~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "Alice" << endl;
      |         ^~~~
a.cc:13:28: error: 'endl' was not declared in this scope
   13 |         cout << "Alice" << endl;
      |                            ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "Borys" << endl;
      |         ^~~~
a.cc:15:28: error: 'endl' was not declared in this scope
   15 |         cout << "Borys" << endl;
      |                            ^~~~
Language: C++

    #include <bits/stdc++.h>
     
    using namespace std;
     
    int main() {
    	int n, a, b;
    	scanf("%d %d %d", &n, &a, &b);
    	if (b - a) % 2 == 0 )
    		puts("Alice");
    	else 
    		puts("Borys");
    	return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected primary-expression before '%' token
    8 |         if (b - a) % 2 == 0 )
      |                    ^
Language: C++

#include <stdio.h>
int main()
{
	int n, a, b;
	int vis = 1;
	scanf("%d %d %d",&n, &a, &b);
	if(n != 2 && a - b - 1 == 0)
	{
		vis = 0
		printf("Borys\n");
	}
	if(vis == 1)
	{
		if(n == 2)
		{
			printf("Draw\n");
		}
		else
		{
			if((a - b - 1) % 2 == 0)
			{
				printf("Borys\n");
			}
			else
			{
				printf("Alice\n");
			}
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before 'printf'
    9 |                 vis = 0
      |                        ^
      |                        ;
   10 |                 printf("Borys\n");
      |                 ~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int n,a,b,s=0;
	int i;
	scanf("%d %d %d",&n,&a,&b);
	for(i=0;i<n;i++)
	{
		for(j=0;j<a;j++)
		{
			s+=a+b;
			s*=2;
		}
	}
	for(i=0;i<n;i++)
	{
		for(j=0;j<a;j++)
		{
			s+=a+b;
			s*=2;
		}
	}
	printf("%d");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'j' was not declared in this scope
   10 |                 for(j=0;j<a;j++)
      |                     ^
a.cc:18:21: error: 'j' was not declared in this scope
   18 |                 for(j=0;j<a;j++)
      |                     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:24:9: error: expected '}' before 'else'
   24 |         else
      |         ^~~~
main.c: At top level:
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: Java


import java.util.Scanner;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author rn-sshawish
 */
public class MoveAndWin {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int a = input.nextInt();
        int b = input.nextInt();
        
        if (a == 1 && b == n) {
            System.out.println("Borys");
            return;
        }
        
        int diff = Math.abs(a - b) -1;
        if (diff % 2 != 0) {
            System.out.println("Alice");
        }else{
        System.out.println("Borys");
        }
        
    }
}


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

#include<stdio.h>
 
int main(void)
{
    int a,b,n;
    scanf("%d %d %d",&n,&a,&b);
    while(1)
        {
         a=a+1;
         if(a>=b)
             {
              printf("Borys");
             }
             break;
         b=b-1;
         if(b<=a)
            {
            printf("Alice");
            }
            break;
        }
}
return 0


Compiler output:
main.c:23:1: error: expected identifier or '(' before 'return'
   23 | return 0
      | ^~~~~~
Language: C

#include<stdio.h>
 
int main(void)
{
    int a,b,n;
    scanf("%d %d %d",&n,&a,%b);
    while(1)
        {
         a=a+1;
         if(a>=b)
             {
              printf("Borys");
             }
             break;
         b=b-1;
         if(b<=a)
            {
            printf("Alice");
            }
            break;
        }
}
return 0


Compiler output:
main.c: In function 'main':
main.c:6:28: error: expected expression before '%' token
    6 |     scanf("%d %d %d",&n,&a,%b);
      |                            ^
main.c: At top level:
main.c:23:1: error: expected identifier or '(' before 'return'
   23 | return 0
      | ^~~~~~
Language: Java

import java.util.*;
import java.io.*;
public class A{
  public static void main(String... args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int a = scan.nextInt();
    int b = scan.nextInt();

    int tmpa,tmpb;
    while(true){

      tmpa = moveA(a, b);
      if(a == tmpa){
        System.out.println("Borys");
        return;
      }
      a = tmpa;
      tmpb = moveB(a, b, n);
      if(b == tmpb){
        System.out.println("Alice");
        return;
      }
      b = tmpb;
    }

  }

  public static int moveA(int a, int b){
    int tmp = a;
    if(b-a == 1){
      if(a > 1)
        tmp -= 1;
    }else{
      tmp += 1;
    }

    return tmp;
  }

  public static int moveB(int a, int b, int n){
    int tmp = b;
    if(b-a == 1){
      if(b < n)
        tmp += 1;
    }else{
      tmp -= 1;
    }

    return tmp;
  }
}


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

#include <iostream>

int main() {
    int n, a, b;
    std::cin >> n >> a >> b;
    
    if ((b - a) % 2 == 0) {
        std::cout << "Borys" << std::endl;
    } else {
        std::count << "Alice" << std::endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'count' is not a member of 'std'; did you mean 'cout'?
   10 |         std::count << "Alice" << std::endl;
      |              ^~~~~
      |              cout
Language: C

#include<stdio.h>

int main(void)
{
    int a,b,n;
    scanf("%d %d %d",&n,&a,%b);
    while(1)
        {
         a=a+1;
         if(a>=b)
             {
              printf(""Borys");
             }
             break;
         b=b-1;
         if(b<=a)
            {
            printf("Alice");
            }
            break;
        }
}
return 0

Compiler output:
main.c: In function 'main':
main.c:6:28: error: expected expression before '%' token
    6 |     scanf("%d %d %d",&n,&a,%b);
      |                            ^
main.c:12:24: error: expected ')' before 'Borys'
   12 |               printf(""Borys");
      |                     ~  ^~~~~
      |                        )
main.c:12:29: warning: missing terminating " character
   12 |               printf(""Borys");
      |                             ^
main.c:12:29: error: missing terminating " character
   12 |               printf(""Borys");
      |                             ^~~
main.c:12:29: error: expected ';' before '}' token
   12 |               printf(""Borys");
      |                             ^
      |                             ;
   13 |              }
      |              ~               
main.c: At top level:
main.c:23:1: error: expected identifier or '(' before 'return'
   23 | return 0
      | ^~~~~~
Language: C++

#include <iostream>

using namespace std;

#define abs(a) ((a) > 0? (a) : (-a))
int N;

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

	int center = N>>1 + N&1;
	if((N&1) && (a == center) && (abs(b-center) == 1))
	{
		cout << "Boyris" << "\n";
	}
	else if (!(N&1) && (a == center) && (a == center)){
		cout << "Boyris" << "\n";
	}else{
		cout <<(abs(a-center) > =abs(b-center) ? "Alice" : "Boyris") << "\n";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:41: error: expected primary-expression before '=' token
   20 |                 cout <<(abs(a-center) > =abs(b-center) ? "Alice" : "Boyris") << "\n";
      |                                         ^
Language: C++

#include<stdio.h>
int main()
{
      int n,a,b;
      scanf("%d%d%d",&n,&a,&b);
      if(abs(a-b)%2)
      {
             puts("Borys");
      }
      else
            puts("Alice");
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'abs' was not declared in this scope
    6 |       if(abs(a-b)%2)
      |          ^~~
Language: C++

#include <iostream>

using namespace std;

#define abs(a) ((a) > 0)? (a) : (-a))
int N;

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

	int center = N>>1 + N&1;
	if (N&1){
		if(a == center && abs(b-center) == 1)
		{
			cout << "Boyris" << "\n";
			return 0;
		}
	}	
	cout <<(abs(a-center)=>abs(b-center) ? "Alice" : "Boyris") << "\n";

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:49: error: expected primary-expression before '==' token
   14 |                 if(a == center && abs(b-center) == 1)
      |                                                 ^~
a.cc:20:31: error: expected primary-expression before '>' token
   20 |         cout <<(abs(a-center)=>abs(b-center) ? "Alice" : "Boyris") << "\n";
      |                               ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <stdlib.h>
#include <assert.h>
using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> ii;

void fastIO() {
    std::ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
}

#define FOR(i,f,t) for(int i=f; i<(int)t; i++)
#define FORR(i,f,t) for(int i=f; i>(int)t; i--)
#define FORE(i,c) for(auto i = (c).begin(); i != (c).end(); i++)
#define pb push_back
#define all(obj) obj.begin(), obj.end()
#define ms(obj, val) memset(obj, val, sizeof(obj))
#define ms2(obj, val, sz) memset(obj, val, sizeof(obj[0])*sz)

#define fst first
#define snd second

template<typename T, typename U> inline void mnze(T &x, U y) { if(y < x) x = y; }
template<typename T, typename U> inline void mxze(T &x, U y) { if(x < y) x = y; }

void _scan( int &x ) { scanf("%d",&x); }
void _scan( long long &x ) { scanf("%lld",&x); }
void _scan( double &x ) { scanf("%lf",&x); }
void _scan( char &x ) { scanf(" %c",&x); }
void _scan( char *x ) { scanf("%s",x); }
void scan() {}
template<typename T, typename... U>
void scan( T& head, U&... tail ) { _scan(head); scan(tail...);}

template<typename T> void _dbg(const char* sdbg, T h) { cerr<<sdbg<<"="<<h<<"\n"; }
template<typename T, typename... U> void _dbg(const char* sdbg, T h, U... t) {
    while(*sdbg != ',')cerr<<*sdbg++; cerr<<"="<<h<<","; _dbg(sdbg+1, t...);
}

#ifdef LOCAL
#define debug(...) _dbg(#__VA_ARGS__, __VA_ARGS__)
#define debugv(x) {{cerr <<#x <<" = "; FORE(_i, (x)) cerr <<*_i <<", "; cerr <<"\n"; }}
#define debuga(x, sz) {{cerr <<#x <<" = "; FOR(_i, 0, sz) cerr << x[_i] <<", "; cerr <<"\n"; }}
#else
#define debug(...) (__VA_ARGS__)
#define debugv(x)
#define debuga(x, sz)
#define cerr if(0)cout
#endif

///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

int main(){
    int a, b, n;
    scan(n, a, b);
    int diff = b - a;
    printf("%s\n", diff % 2? "Alice", "Borys");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:70:46: error: expected ':' before ')' token
   70 |     printf("%s\n", diff % 2? "Alice", "Borys");
      |                                              ^
      |                                              :
a.cc:70:46: error: expected primary-expression before ')' token
Language: C++


#include <iostream>
#include <algorithm>
#include <iomanip>
#include <fstream>
#include <vector>
#include <string>
#include <cmath>
#include <map>
#include <utility>
#include <algorithm>
#include <set>
#include <ctime>
#include <queue>
#include <stack>
#include <bitset>
#include <cstring>



using namespace std;




int main()
{
   IOS;
	int n,a,b;
	cin >> n >> a >>b;
	if(((a&1) && (b%2==0))||((a&1) && (b%2==0)))
	{
		cout << "Borys";
		return 0;

	}
	else
		cout << "Alice";
    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:4: error: 'IOS' was not declared in this scope
   28 |    IOS;
      |    ^~~