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

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

typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;

#define fi first
#define se second
#define repl(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++)
#define rep(i,n) repl(i,0,n)
#define all(x) (x).begin(),(x).end()
#define dbg(x) cout<<#x"="<<x<<endl
#define mmax(x,y) (x>y?x:y)
#define mmin(x,y) (x<y?x:y)
#define maxch(x,y) x=mmax(x,y)
#define minch(x,y) x=mmin(x,y)
#define uni(x) x.erase(unique(all(x)),x.end())
#define exist(x,y) (find(all(x),y)!=x.end())
#define bcnt __builtin_popcount

#define INF 1e16

ll n,k;
ll x[101010],y[101010];
bool c[101010];
bool h[101010];
vector<ll> ex[101010],ey[101010];

int main(){
	cin>>n>>k;
  rep(i,n){
    char cc;
    cin>>x[i]>>y[i]>>cc;
    if(cc=='W')c[i]=false;
    else c[i]=true;
  }
  ll crt=0;
  rep(i,n){
    h[i]=((x[i]/k)+(y[i]/k))%2;
    if(h[i]==c[i])crt++;
    ex[(k-(x[i]%k))].push_back(i);
    ey[(k-(y[i]%k))].push_back(i);
  }

  ll res=0;
  rep(a,k){
    for(ll idx : ex[a]){
      if(h[idx]==c[idx])crt--;
      else crt++;
      h[idx]=1-h[idx];
    }
    rep(b,k){
      for(ll idx : ey[b]){
        if(h[idx]==c[idx])crt--;
        else crt++;
        h[i]=1-h[i];
      }
      maxch(res,max(crt,n-crt));
    }
    rep(i,n){
      if(h[i]==c[i])crt--;
      else crt++;
      h[i]=1-h[i];
    }
  }
  cout<<res<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:57:11: error: 'i' was not declared in this scope
   57 |         h[i]=1-h[i];
      |           ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
#define chmax(x,y) x = max(x,y)
#define chmin(x,y) x = min(x,y)

int A,B;
int d[11][11];
const int C = 101;
int S = 1 , T = 2 * C;
int N = T , M = 2 * (C-1) + C * C;
int e[C][C];
 
int main(){
	cin >> A >> B;
	for (int i = 1; i <= A; ++i) {
		for (int j = 1; j <= B; ++j) {
			cin >> d[i][j];
		}
	}
	rep(i,C) rep(j,C){
		for (int x = 1; x <= A; ++x) {
			for (int y = 1; y <= B; ++y) {
				e[i][j] = max(e[i][j] , d[x][y]-i*x-j*y)
			}
		}
	}

	for (int x = 1; x <= A; ++x) {
		for (int y = 1; y <= B; ++y) {
			int z = C;
			rep(i,C) rep(j,C) z = min(z,e[i][j]+i*x+j*y);
			if(z != d[x][y]) return cout << "Impossible" << endl , 0;
		}
	}
	cout << "Possible" << endl;
	cout << N << ' ' << M << endl;
	for (int i = 1; i < C; ++i) {
		cout << i << ' ' << i+1 << " X" << endl;
		cout << C+i << ' ' << C+i+1 << " Y" << endl;
	}
	rep(i,C) rep(j,C) cout << i+1 << ' ' << N-j << ' ' << e[i][j] << endl;
	cout << S << ' ' << T << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:73: error: expected ';' before '}' token
   26 |                                 e[i][j] = max(e[i][j] , d[x][y]-i*x-j*y)
      |                                                                         ^
      |                                                                         ;
   27 |                         }
      |                         ~
Language: C++

解説読んだ
Xをa回Yをb回通るルートの中で最短距離となるルートはX,Yが変化しても変わらないの、なるほど

Compiler output:
a.cc:2:53: error: extended character 、 is not valid in an identifier
    2 | Xをa回Yをb回通るルートの中で最短距離となるルートはX,Yが変化しても変わらないの、なるほど
      |                                                     ^
a.cc:1:1: error: '\U000089e3\U00008aac\U00008aad\U00003093\U00003060' does not name a type
    1 | 解説読んだ
      | ^~~~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
#define max(a,b) ((a>b)?a:b)
#define min(a,b) ((a<b)?a:b)
using namespace std;
namespace fio {
	streambuf* in = cin.rdbuf();
	char bb[1000000], * s = bb, * t = bb;
#define gc() (s==t&&(t=(s=bb)+in->sgetn(bb,1000000),s==t)?EOF:*s++)
	inline int read() {
		int x = 0;
		char ch = gc();
		while (ch < 48)ch = gc();
		while (ch >= 48)x = x * 10 + ch - 48, ch = gc();
		return x;
	}
}using fio::read;
int n, m;
int arr[15][15];
int dp[305][305];
int main() {
	n = read(), m = read();
	for (int i = 1; i <= n; i++)for (int u = 1; u <= m; u++)arr[i][u] = read();
	for (int i = 0; i <= 100; i++)for (int u = 0; u <= 100; u++)for (int x = 1; x <= n; x++)for (int y = 1; y <= n; y++)dp[i][u] = max(dp[i][u], arr[x][y] - i * x - u * y);
	for (int x = 0; x <= n; x++)for (int y = 0, now = 0x7fffffff; y <= m; now = 0x7fffffff, y++) {
		for (int i = 0; i <= 100; i++)for (int u = 0; u <= 100; u++)
			now = min(now, dp[i][u] + i * x + u * y);
		if (now != arr[x][y])cout << "Impossible", exit(0);
	}
	puts("Possible"), puts("202 10401");
	for (int i = 1; i <= 201; i++)if (i != 101)cout << i << ' ' << i + 1 << ' ' << (i <= 100 ? 'X' : 'Y') << endl;
	for (int i = 0; i <= 100; i++)for (int u = 0; u <= 100; u++)printf("%d %d %d\n", i + 1, 202 - u, f[i][u]);
	cout << 1 << ' ' << 202;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:106: error: 'f' was not declared in this scope
   32 |         for (int i = 0; i <= 100; i++)for (int u = 0; u <= 100; u++)printf("%d %d %d\n", i + 1, 202 - u, f[i][u]);
      |                                                                                                          ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
using int64 = long long;

constexpr int DEBUG = 0;

template<typename T>
vector<vector<T>> Make2DVector(int d1, int d2, T default_value) {
  return vector<vector<T>>(d1, vector<T>(d2, default_value));
}

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

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

constexpr int D_MAX = 100;

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

  int x_max;
  int y_max;
  cin >> x_max >> y_max;

  auto d_matrix = Make2DVector(x_max + 1, y_max + 1, 0);
  for (int x = 1; x <= x_max; x++) {
    for (int y = 1; y <= y_max; y++) {
      cin >> d_matrix[x][y];
    }
  }

  auto c_matrix = Make2DVector(D_MAX + 1, D_MAX + 1, 0);
  for (int a = 0; a <= D_MAX; a++) {
    for (int b = 0; b <= D_MAX; b++) {
      for (int x = 1; x <= x_max; x++) {
        for (int y = 1; y <= y_max; y++) {
          UpdateMax(c_matrix[a][b], d_matrix[x][y] - a * x - b * y);
        }
      }
    }
  }

  auto check_fn = [&]() -> bool {
    for (int x = 1; x <= x_max; x++) {
      for (int y = 1; y <= y_max; y++) {
        int d = INT32_MAX;
        for (int a = 0; a <= D_MAX; a++) {
          for (int b = 0; b <= D_MAX; b++) {
            UpdateMin(d, a * x + b * y + c_matrix[a][b]);
          }
        }
        // cout << d << endl;
        if (d > d_matrix[x][y]) return false;
      }
    }
    return true;
  };

  if (!check_fn()) {
    cout << "Impossible" << endl;
    return;
  }

  cout << "Possible" << endl;
  cout << 2 * D_MAX + 2 << " " << D_MAX + D_MAX + (D_MAX + 1) * (D_MAX + 1) << endl;
  for (int i = 0; i + 1 <= D_MAX; i++) {
    cout << 1 + i << " " << 1 + i + 1 << " " << "X" << endl;
  }
  for (int i = 0; i + 1 <= D_MAX; i++) {
    cout << D_MAX + 1 + 1 + i << " " << D_MAX + 1 + 1 + i + 1 << " " << "Y" << endl;
  }
  for (int a = 0; a <= D_MAX; a++) {
    for(int b = 0; b <= D_MAX; b++) {
      cout << 1 + a << " " << 2 * D_MAX + 2 - b << " " << c_matrix[a][b] << endl;
    }
  }
  cout << 1 << " " << 2 * D_MAX + 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:67:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   67 |     return;
      |     ^~~~~~
Language: C++

Possible
202 202
1 2 X
2 3 X
3 4 X
4 5 X
5 6 X
6 7 X
7 8 X
8 9 X
9 10 X
10 11 X
11 12 X
12 13 X
13 14 X
14 15 X
15 16 X
16 17 X
17 18 X
18 19 X
19 20 X
20 21 X
21 22 X
22 23 X
23 24 X
24 25 X
25 26 X
26 27 X
27 28 X
28 29 X
29 30 X
30 31 X
31 32 X
32 33 X
33 34 X
34 35 X
35 36 X
36 37 X
37 38 X
38 39 X
39 40 X
40 41 X
41 42 X
42 43 X
43 44 X
44 45 X
45 46 X
46 47 X
47 48 X
48 49 X
49 50 X
50 51 X
51 52 X
52 53 X
53 54 X
54 55 X
55 56 X
56 57 X
57 58 X
58 59 X
59 60 X
60 61 X
61 62 X
62 63 X
63 64 X
64 65 X
65 66 X
66 67 X
67 68 X
68 69 X
69 70 X
70 71 X
71 72 X
72 73 X
73 74 X
74 75 X
75 76 X
76 77 X
77 78 X
78 79 X
79 80 X
80 81 X
81 82 X
82 83 X
83 84 X
84 85 X
85 86 X
86 87 X
87 88 X
88 89 X
89 90 X
90 91 X
91 92 X
92 93 X
93 94 X
94 95 X
95 96 X
96 97 X
97 98 X
98 99 X
99 100 X
100 101 X
102 103 Y
103 104 Y
104 105 Y
105 106 Y
106 107 Y
107 108 Y
108 109 Y
109 110 Y
110 111 Y
111 112 Y
112 113 Y
113 114 Y
114 115 Y
115 116 Y
116 117 Y
117 118 Y
118 119 Y
119 120 Y
120 121 Y
121 122 Y
122 123 Y
123 124 Y
124 125 Y
125 126 Y
126 127 Y
127 128 Y
128 129 Y
129 130 Y
130 131 Y
131 132 Y
132 133 Y
133 134 Y
134 135 Y
135 136 Y
136 137 Y
137 138 Y
138 139 Y
139 140 Y
140 141 Y
141 142 Y
142 143 Y
143 144 Y
144 145 Y
145 146 Y
146 147 Y
147 148 Y
148 149 Y
149 150 Y
150 151 Y
151 152 Y
152 153 Y
153 154 Y
154 155 Y
155 156 Y
156 157 Y
157 158 Y
158 159 Y
159 160 Y
160 161 Y
161 162 Y
162 163 Y
163 164 Y
164 165 Y
165 166 Y
166 167 Y
167 168 Y
168 169 Y
169 170 Y
170 171 Y
171 172 Y
172 173 Y
173 174 Y
174 175 Y
175 176 Y
176 177 Y
177 178 Y
178 179 Y
179 180 Y
180 181 Y
181 182 Y
182 183 Y
183 184 Y
184 185 Y
185 186 Y
186 187 Y
187 188 Y
188 189 Y
189 190 Y
190 191 Y
191 192 Y
192 193 Y
193 194 Y
194 195 Y
195 196 Y
196 197 Y
197 198 Y
198 199 Y
199 200 Y
200 201 Y
201 202 Y
1 201 0
3 202 0
1 202


Compiler output:
a.cc:1:1: error: 'Possible' does not name a type
    1 | Possible
      | ^~~~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <queue>
using namespace std;
const int MAXN = 305;
int A, B, D[15][15], F[105][105];
int S, T, M;
int main()
{
	scanf("%d%d", &A, &B);
	for(int I = 1; I <= A; ++I)
		for(int J = 1; J <= B; ++J)
			scanf("%d", &D[I][J]);
	for(int numX = 0; numX <= 100; ++numX)
		for(int numY = 0; numY <= 100 && numX + numY <= 100; ++numY){
			for(int X = 1; X <= A; ++X)
				for(int Y = 1; Y <= B; ++Y)
					F[numX][numY] = max(F[numX][numY], D[X][Y] - numX * X - numY * Y);
		}
	M = 200 + 101 * 101;
	S = 1, T = 202;
	for(int X = 1; X <= A; ++X)
		for(int Y = 1; Y <= B; ++Y){
			int minDis = 0x3f3f3f3f;
			for(int numX = 0; numX <= 100; ++numX)
				for(int numY = 0; numY <= 100 && numX + numY <= 100; ++numY)
				{
					minDis = min(minDis, X * numX + Y * numY + F[numX][numY]);
				}
			if(minDis != D[X][Y]){
				puts("Impossible");
				return 0;
			}
		}
	puts("Possible");
	cout<<202<<" "<<M<<endl;
	for(int I = 1; I <= 100; ++I)
		printf("%d %d X\n", I, I + 1);
	for(int I = 102; I <= 201; ++I)
		printf("%d %d Y\n", I, I + 1);
	for(int I = 0; I <= 100; ++I)
		for(int J = 0; J <= 100; ++J){
			printf("%d %d %d\n", 1 + I, 102 + J, F[I][100 - J]);
	cout<<S<<" "<<T<<endl;
	return 0;
}


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

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

struct change_path{
    int slope, upper;
};

change_path slope_and_upper(int nums_size, int nums[]){
    change_path ans;
    ans.slope = nums[1] - nums[0];
    int need_slope = ans.slope;
    for(int i = 1; i < nums_size; i++){
        if(nums[i] == nums[i - 1]){
            need_slope = 0;
            ans.upper = nums[i];
        }
        if(nums[1] - nums[0] != need_slope){
            cout << "Impossible" << endl;
            exit(0);
        }
    }
    if(need_slope){
        ans.upper = -1;
    }
    return ans;
}

int main(){
    int A, B;
    cin >> A >> B;
    int distances[A][B];
    for(int i = 0; i < A; i++){
        for(int j = 0; j < B; j++){
            cin >> distances[i][j];
        }
    }
    if(A == 1 && B == 1){
        cout << "2 1" << endl;
        cout << "1 2 " << distances[0][0] << endl;
        cout << "1 2" << endl;
    }else if(A == 1){
        change_path straight_graph
    }
    change_path change_pathes[A];
    for(int i = 0; i < A; i++){
        change_pathes[i] = slope_and_upper(B, distances[i]);
    }
    int slope_of_slope;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:5: error: expected initializer before '}' token
   45 |     }
      |     ^
Language: C++

#include <cstdio>
#include <iostream>
uisng namespace std;

int main()
{
	cout<<"Impossible"<<endl;
	return 0;
}

Compiler output:
a.cc:3:1: error: 'uisng' does not name a type
    3 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout<<"Impossible"<<endl;
      |         ^~~~
      |         std::cout
In file included from a.cc:2:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         cout<<"Impossible"<<endl;
      |                             ^~~~
      |                             std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <cstdio>
#include <iostream>

int main()
{
	cout<<"Impossible"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout<<"Impossible"<<endl;
      |         ^~~~
      |         std::cout
In file included from a.cc:2:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         cout<<"Impossible"<<endl;
      |                             ^~~~
      |                             std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

const int N = 75, K = 75;
const long long mod = 1000000007ll;

int n, m, stk[N], suf[K], pos[N], tmp[N], top = 0;
char str[K];
long long c[N * 5][N * 5], ans = 0ll;

long long solve () {
	queue<int> que;
	for (int i = 0; i < m; i++) suf[i] = 1;
	for (int i = 0, j = top - 1; i < m && j >= 0; i++) {
		if (str[i] == 'r') que.push(i);
		if (stk[j] && str[i] == 'b' && !que.empty()) {
			suf[que.front()] = suf[i] = 0;
			que.pop();
			pos[j--] = i;
		}
		while (j >= 0 && !stk[j] && !que.empty()) {
			suf[que.front()] = 0, que.pop();
			pos[j--] = i;
		}
		if (i == m - 1 && j >= 0) return 0ll;
	}

	suf[m] = 0;
	for (int i = m - 1; i >= 0; i--) suf[i] += suf[i + 1];
	for (int i = 0, j = 0; i < top; i++) {
		if (stk[i]) {
			j += stk[i] - 1;
			if (suf[pos[i]] < j) return 0ll;
		}
	}

	long long res = 1ll;
	for (int i = 0; i <= n; i++) tmp[i] = 0;
	for (int i = 0; i < top; i++) tmp[stk[i]]++;
	for (int i = 0, j = 0; i <= n; i++) {
		j += tmp[i];
		res = res * c[j][tmp[i]] % mod;
	}

	int num1 = 0, num2 = 0;
	for (int i = 0; i < top; i++) {
		if (stk[i]) num1 += 2 * stk[i] - 1, num2 += 2;
		else num1++;
	}
	if (top) num1 += top - 1, num2 += 2;
	else num1++;
	assert(num1 + num2 - 1 <= n * 3);
	res = res * c[n + num2 - 1][num1 + num2 - 1] % mod;
	return res;
}

void dfs (int mn, int total) {
	if (mn == n + 1) ans = (ans + solve()) % mod;
	if (mn <= n) dfs(mn + 1, total);
	int t = mn ? mn << 1 : 2;
	if (total + t <= n + 1) {
		stk[top++] = mn;
		dfs(mn, total + t);
		top--;
	}
}

int main () {
	scanf("%d%d%s", &n, &m, str);
	for (int i = 0; i <= n * 5 i++) c[i][0] = c[i][i] = 1ll;
	for (int i = 0; i <= n * 5; i++) {
		for (int j = 0; j <= n * 5; j++) c[i][j] = 0ll;
	}
	for (int i = 1; i <= n * 5; i++) {
		for (int j = 1; j < i; j++) c[i][j] = (c[i - 1][j] + c[i - 1][j - 1]) % mod;
	}
	dfs(0, 0);
	printf("%lld\n", ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:70:35: error: expected ';' before 'i'
   70 |         for (int i = 0; i <= n * 5 i++) c[i][0] = c[i][i] = 1ll;
      |                                   ^~
      |                                   ;
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
#include <cmath>
#include <map>

#define reps(i,s,n) for(int (i) = (s); (i) < (n); (i)++)
#define rep(i,n) reps(i,0,n)
using namespace std;
using ll = long long;

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

    return

Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: expected primary-expression at end of input
   20 |     return
      |           ^
a.cc:20:11: error: expected ';' at end of input
   20 |     return
      |           ^
      |           ;
a.cc:20:11: error: expected '}' at end of input
a.cc:13:11: note: to match this '{'
   13 | int main(){
      |           ^
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 << "Alice" << endl;
}


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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> N >> A >> B;
      |   ^~~
a.cc:7:7: error: 'B' was not declared in this scope
    7 |   if((B-A)%2==0){
      |       ^
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main()
{
    int a,b,c,d,e,f,g,h,i,j,k,l,m,n,t;
    
    cin>>n>>a>>b;
    
    x=max(a,b);
    
    y=min(a,b);
    
    z=x-y;
    

    if(z%2==0)
    {
        cout<<"Alice"<<endl;
    }
    else
        cout<<"Borys"<<endl;
        
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'x' was not declared in this scope
   10 |     x=max(a,b);
      |     ^
a.cc:12:5: error: 'y' was not declared in this scope
   12 |     y=min(a,b);
      |     ^
a.cc:14:5: error: 'z' was not declared in this scope
   14 |     z=x-y;
      |     ^
Language: C++

#include<stdio.h>
#include<math.h>
#include<conio.h>

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

    int p;
   if(a>b)
    p=a-b-1;
   else
    p=b-a-1;

    if(p%2==1)
        printf("Alice");
    else
        printf("Borys");

}






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

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

int main(){
  int N,A,B;
  cin >>N>>A>>B;
  
  for(int i=0;i<N;i++){
  if(i%2==0) {A++;
    if(A>B) cout<<"Borys"<<endl;}
      {A++;if(A>B) cout<<"Borys"<<endl;}
   else if(i%2==1) {B--;
    if(A>B) cout<<"Alice"<<endl;}
   if(A==B) cout<<"Draw"<<endl;break;
  }
  
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:4: error: 'else' without a previous 'if'
   12 |    else if(i%2==1) {B--;
      |    ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 typedef long long ll;
 
int main() {
int a,b,c;
cin>>a>>b>>C;
string ans;
if(abs(b-c)%2==0)ans=="Alice";
else ans="Borys";

cout<<ans<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'C' was not declared in this scope
    7 | cin>>a>>b>>C;
      |            ^
a.cc:9:21: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
    9 | if(abs(b-c)%2==0)ans=="Alice";
      |                  ~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

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

typedef long long ll;

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else if((B-A)%2==0) x="Alice";
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>
using namespace std;
typedef long long ll;
namespace mp = boost::multiprecision;
using Mint = mp::cpp_int;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i,a,b) for(int i = int(a); i < int(b); i++)
#define all(v) v.begin(), v.end()
#define uni(v) v.erase(unique(all(v)), v.end())
#define sort_g(v) sort(all(v), greater<int>())
#define dump(x) cerr << #x << ' ' << '=' << ' ' << x << endl

int main() {
    int N, A, B;
    cin >> N >> A >> B;
    cout << (B - A % 2 == 0 ? "Alice" : "Borys")
}

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 <bits/stdc++.h>
#include <cstdlib>
#include <cmath>
#define rep(i,n) for (long long i=0; i < (n); ++i)
#define rep2(i,n,m) for(long long i=n;i<=m;i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
const ll INF=1e18 ;
inline void chmax(ll& a,ll b){a=max(a,b);}
inline void chmin(ll& a,ll b){a=min(a,b);}
int main(){
  int n,a,b;
  cin>> n>> a>>b ;
  
  if((a-b)%2==1) )
  else
   cout<<"Alice"<<endl; 
    return 0;
}

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

#include <bits/stdc++.h>
#include <cstdlib>
#include <cmath>
#define rep(i,n) for (long long i=0; i < (n); ++i)
#define rep2(i,n,m) for(long long i=n;i<=m;i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
const ll INF=1e18 ;
inline void chmax(ll& a,ll b){a=max(a,b);}
inline void chmin(ll& a,ll b){a=min(a,b);}
int main(){
  int n,a,b;
  cin>> n>> a>>b ;
  if
  if((a-b)%2==1) )
  else
   cout<<"Alice"<<endl; 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: expected '(' before 'if'
   16 |   if((a-b)%2==1) )
      |   ^~
      |   (
Language: C++

#include <bits/stdc++.h>
#include <cstdlib>
#include <cmath>
#define rep(i,n) for (long long i=0; i < (n); ++i)
#define rep2(i,n,m) for(long long i=n;i<=m;i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
const ll INF=1e18 ;
inline void chmax(ll& a,ll b){a=max(a,b);}
inline void chmin(ll& a,ll b){a=min(a,b);}
int main(){
  int n,a,b;
  cin>> n>> a>>b ;
  if
  if((a-b)%2==1)）｛ //コーナーケースを考える
  cout <<"Borys" <<endl ;
  ｝else
   cout<<"Alice"<<endl; 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: expected '(' before 'if'
   16 |   if((a-b)%2==1)）｛ //コーナーケースを考える
      |   ^~
      |   (
a.cc:18:3: error: '\U0000ff5delse' was not declared in this scope
   18 |   ｝else
      |   ^~~~~~
Language: C++

#include <bits/stdc++.h>
#include <cstdlib>
#include <cmath>
#define rep(i,n) for (long long i=0; i < (n); ++i)
#define rep2(i,n,m) for(long long i=n;i<=m;i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
const ll INF=1e18 ;
inline void chmax(ll& a,ll b){a=max(a,b);}
inline void chmin(ll& a,ll b){a=min(a,b);}
int main(){
  int n,a,b;
  cin>> n>> a>>b ;
  if
  if((a-b)%2==1) //コーナーケースを考える
  cout <<"Borys" <<endl ;
  else
   cout<<"Alice"<<endl; 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: expected '(' before 'if'
   16 |   if((a-b)%2==1) //コーナーケースを考える
      |   ^~
      |   (
a.cc:18:3: error: 'else' without a previous 'if'
   18 |   else
      |   ^~~~
Language: C++

signed main() {
	int n, a, b;
	cin >> n >> a >> b;
	if ((b - a) % 2 == 1)
		cout << "Alice" << endl;
	else
		cout << "Borys" << endl;
}

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

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

int main(){
	ll n,a,b;
	cin>>n>>a>>b;
	ans = b-a;
	if(ans%2==0) cout<<"Alice";
	else cout<<"Borys";
}

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

#include<iostream>
using namespace std;
int main(){
int a,b,c,x,y,z;
cin>>a>>b;
z=a-b;
if(z<=0)z*=-1;
for(int i=1;i<=10000000;i++){
z-=1;
y+=1;
if(z==0&&y%2==1)cout<<{"Borys";break;}
if(z==0&&y%2==0)cout<<{"Alice";break;}}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected primary-expression before '{' token
   11 | if(z==0&&y%2==1)cout<<{"Borys";break;}
      |                       ^
a.cc:12:23: error: expected primary-expression before '{' token
   12 | if(z==0&&y%2==0)cout<<{"Alice";break;}}
      |                       ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c,x,y,z;
cin>>a>>b;
z=a-b;
if(z<=0)z*=-1;
for(int i=1;i<=10000000;i++){
z-=1;
y+=1;
if(z=0&&y%2=1)cout<<"Borys";
if(z=0&&y%2=0)cout<<"Alice";}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: lvalue required as left operand of assignment
   11 | if(z=0&&y%2=1)cout<<"Borys";
      |      ~^~~~~
a.cc:12:7: error: lvalue required as left operand of assignment
   12 | if(z=0&&y%2=0)cout<<"Alice";}
      |      ~^~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before 'cout'
    8 |   (d % 2 == 0) cout << "Alice" : cout << "Borys";
      |               ^~~~~
      |               ;
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected ';' before 'return'
    8 |         else cout<<"Borys"<<endl
      |                                 ^
      |                                 ;
    9 |     return 0;
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int64_t i=0;i < (int64_t)(n);i++)
#define invrep(i,n) for(int64_t i=n-1;i >= 0;i--)
using namespace std;

//////全探索したいときに開けよ////////
vector<vector<int>> fspattern;
vector<int> fspattern_draft;
int fspcnt = 0;

void setfspattern_core(int floor,int number,int degree){
  if(floor==degree){
    fspattern.at(fspcnt) = fspattern_draft;
    fspcnt++;
  }else{
    rep(i,number){
      fspattern_draft.at(floor) = i;
      setfspattern_core(floor+1,number,degree);
    }
  }
}

void setfspattern(int number,int degree){
  fspcnt = 0;
  int64_t array_num = 1;
  rep(i,degree){
    array_num *= number;
  }
  fspattern = vector<vector<int>>(array_num,vector<int>(degree));
  fspattern_draft = vector<int>(degree);
  setfspattern_core(0,number,degree);
}

//////nCrのmodを求めたいときに開けよ/////////
//int64_t univMod = 1000000007;
//int64_t factnum = 100000
//vector<int64_t> modfact(factnum);
//vector<int64_t> modinvfact(factnum);

/*void setmodfact(){
  for(int i=0;i<factnum;i++){
    if(i == 0){
      modfact.at(i) = 1;
    }else{
      modfact.at(i) = (modfact.at(i-1)*i)%univMod;
    }
  }
}

int64_t calcmodpower(int64_t a,int64_t n){
  int64_t res = 1;
  while(n != 0){
    if(n & 1){
      res = (res * a) % univMod;
    }
    a = (a*a) % univMod;
    n = n >> 1;
  }
  return res;
}

int64_t calcinverse(int64_t n){
	return calcmodpower(n,univMod-2);
}

void setmodinvfact(){
  for(int i=0;i<factnum;i++){
    if(i==0){
      modinvfact.at(i) = 1;
    }else{
      modinvfact.at(i) = calcmodpower(modfact.at(i),univMod-2);
    }
  }
}*/


/*
int64_t calcGCD(int64_t a,int64_t b){
	int64_t p = a;
	int64_t q = b;
	int64_t c = a%b;
	while(c != 0){
		p = q;
		q = c;
		c = p%q;
	}
	return q;
}
*/

int main(){
  int64_t 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:98:2: error: expected '}' at end of input
   98 | }
      |  ^
a.cc:91:11: note: to match this '{'
   91 | int main(){
      |           ^
Language: C++

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

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

    if(b - a % 2 = 0){
        puts("Alice");
    }else {
        puts("Borys");
    }
}

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

#include <iostream>

using namespace std;

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

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

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

int mian(){
  int n,a,b; cin>>n>>a>>b;
  if(abs(b-a)%2==0){
    cout<<"Alice"<<endl;
  }else cout<<"Borys"<<endl;
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | }
      | ^
/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 <bits/stdc++.h>
using namespace std;

int main()
{
    int n;cin>>n;
    int a[n];
    for(int i=0;i<n;i++)cin>>a[i];
    int s=0;
    if(n==1)
    {
        cout<<a[0]<<endl;return 0;
    }
    else if(n==2)
    {
        cout<<max(a[0],a[1])<<endl;
        return 0;
    }
    for(int i=0;i<n;i++)s+=a[i];
    sort(a,a+n);
    bitset
b;
    b[0]=1;
    for(int i=0;i<n;i++)
    {
        b |= (b<<a[i]);
    }
    for(int j=s/2;j<s;j++)
    {
        if(b[j])
        {
            cout<<j<<endl;
            break;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: error: the value of 's' is not usable in a constant expression
   21 |     bitset
b;
      |             ^
a.cc:9:9: note: 'int s' is not const
    9 |     int s=0;
      |         ^
a.cc:21:13: note: in template argument for type 'long unsigned int'
   21 |     bitset
b;
      |             ^
a.cc:22:6: error: invalid types 'int[int]' for array subscript
   22 |     b[0]=1;
      |      ^
a.cc:29:13: error: invalid types 'int[int]' for array subscript
   29 |         if(b[j])
      |             ^
Language: C++

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

const int maxn = 2000007;
bitset<maxn> dp;

int main()
{
	int n;
	cin>>n;
	//vector<int> A(n);
	int x;
	int sum = 0;
	dp[0] = 1;
	for(int i = 1 ; i < N ; i++)
	{
		cin>>x;
		sum += x;	
		dp = (dp|(dp<<x));
	} 
	int target = ((sum+1)/2);
	for(int i = target ; i <=sum ; i++)
	{
		if(dp[i])
		{
			cout<<i;
			break;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: 'N' was not declared in this scope
   15 |         for(int i = 1 ; i < N ; i++)
      |                             ^
Language: C++

import sys


def slove():
    input = sys.stdin.readline
    mod = 10 ** 9 + 7
    n, a, b = list(map(int, input().rstrip('\n').split()))
    if (a - b) % 2 == 0:
        print("Alice")
    else:
        print("Borys")


if __name__ == '__main__':
    slove()


Compiler output:
a.cc:14:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   14 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
using namespace std;

int main(void)
{
    //float f;
    //string s;
    int m,n;
    //char a,b,c;
    int i=0,sum=0;
    cin>>m>>n>>o;
    if(o-n-1%2==0) cout<<"Borys";
    else cout<<"Alice";
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: 'o' was not declared in this scope
   14 |     cin>>m>>n>>o;
      |                ^
Language: C

main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: 'n' redeclared as different kind of symbol
    1 | main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}
      |                 ^
main.c:1:1: note: previous definition of 'n' with type 'int'
    1 | main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}
      | ^~~~
main.c:1:19: error: 'a' redeclared as different kind of symbol
    1 | main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}
      |                   ^
main.c:1:1: note: previous definition of 'a' with type 'int'
    1 | main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}
      | ^~~~
main.c:1:21: error: 'b' redeclared as different kind of symbol
    1 | main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}
      |                     ^
main.c:1:1: note: previous definition of 'b' with type 'int'
    1 | main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}
      | ^~~~
main.c:1:23: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}
      |                       ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}
main.c:1:23: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}
      |                       ^~~~~
main.c:1:23: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:48: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}
      |                                                ^~~~
main.c:1:48: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C++

main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(n,a,b){int n,a,b;scanf("%d%d%d",&n,&a,&b);puts((b-a)%2?"Borys":"Alice");}
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
namespace IO
{
	template <typename T> inline void read(T &x)
	{
		int f = 1; x = 0; char c = getchar();
		for (; !isdigit(c); c = getchar()) if (c == '-') f = -1;
		for (; isdigit(c); c = getchar()) x = (x << 3) + (x << 1) + (c ^ 48);
		x *= f;
	}
	
	template <typename T> inline void chkmax(T &x, T y) { x = x > y ? x : y; }
	template <typename T> inline void chkmin(T &x, T y) { x = x < y ? x : y; }
	
	template <typename T> inline void write(T x)
	{
		if (x < 0) putchar('-'), x = -x;
		
		char num[20]; int len = 0;
		while (x > 9) { num[++len] = char(x % 10 + '0'); x /= 10; }
		
		num[++len] = char(x + '0');
		
		while (len) putchar(num[len--]);
	}
	template <typename T> inline void writeln(T x) { write(x); puts(""); }
}
using namespace IO;
int n, a, b;
int main(){
	read(h); read(a); read(b);
	if (abs(a - b) % 2 == 1) puts("Borys");
	else puts("Alice");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:14: error: 'h' was not declared in this scope
   34 |         read(h); read(a); read(b);
      |              ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc:11:22: warning: missing terminating " character
   11 |         cout << Borys" << endl;
      |                      ^
a.cc:11:22: error: missing terminating " character
   11 |         cout << Borys" << endl;
      |                      ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:17: error: 'Borys' was not declared in this scope
   11 |         cout << Borys" << endl;
      |                 ^~~~~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'manespace'
    2 | using manespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before ';' token
    5 |     int a,b,;
      |             ^
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>a>>b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout<<"Borys"<<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:9:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     else 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:9:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     else cout<<"Alice"<<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<bit/stdc++.h>
using namespace std;
int main(){
  int n,a,b;
  cin >> n >> a >> b;
  if((b-a)%2==0){
    cout << "Alice" << endl;
  }
  else{
    cout << "Borys" << endl;
  }
}

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

for t in range(int(input())):
	a,b,c,d=map(int,input().split(' '));l,x,y,o=(a+b)//(min(a,b)+1),(a*l-b)//(l-1),(b*l-a)//(l-1),""
	if a*l<=b:x,y=0,a+b
	elif b*l<=a:x,y=a+b,0
	for i in range(c,d+1):o+="AB"[i%(l+1)==0] if i<=x else "BA"[(a+b-i+1)%(l+1)==0] if a+b-i+1<=y else "AB"[a-x+x//(l+1)-y//(l+1)==0]
	print(o)

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'for'
    1 | for t in range(int(input())):
      | ^~~
a.cc:2:45: error: 'l' does not name a type
    2 |         a,b,c,d=map(int,input().split(' '));l,x,y,o=(a+b)//(min(a,b)+1),(a*l-b)//(l-1),(b*l-a)//(l-1),""
      |                                             ^
Language: C++

for t in range(int(input())):
	a,b,c,d=map(int,input().split(' '));l,x,y,o=(a+b)//(min(a,b)+1),0,0,""
	if a*l<=b:y=a+b;elif b*l<=a:x=a+b;else:x,y=(a*l-b)//(l-1),(b*l-a)//(l-1)
	for i in range(c,d+1):o+="AB"[i%(l+1)==0] if i<=x else "BA"[(a+b-i+1)%(l+1)==0] if a+b-i+1<=y else "AB"[a-x+x//(l+1)-y//(l+1)==0]
	print(o)

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'for'
    1 | for t in range(int(input())):
      | ^~~
a.cc:2:45: error: 'l' does not name a type
    2 |         a,b,c,d=map(int,input().split(' '));l,x,y,o=(a+b)//(min(a,b)+1),0,0,""
      |                                             ^
a.cc:3:25: error: 'elif' does not name a type
    3 |         if a*l<=b:y=a+b;elif b*l<=a:x=a+b;else:x,y=(a*l-b)//(l-1),(b*l-a)//(l-1)
      |                         ^~~~
a.cc:3:43: error: expected unqualified-id before 'else'
    3 |         if a*l<=b:y=a+b;elif b*l<=a:x=a+b;else:x,y=(a*l-b)//(l-1),(b*l-a)//(l-1)
      |                                           ^~~~
Language: C++

#include<iostream>

using namespace std;

int main(void){
  int N, A, B;
  cin >> N >> A >> B;
  cout << ((A - B) % 2 == 0) ? "Alice" : "Borys") << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:49: error: expected ';' before ')' token
    8 |   cout << ((A - B) % 2 == 0) ? "Alice" : "Borys") << endl;
      |                                                 ^
      |                                                 ;
Language: C++

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

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

    if(abs(a-b)%2 == 0){
        cout << "Alice" << endl;
    }else{
        cout << "Borys" << endl;
    }
    return 0;
}

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

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

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

  if ((a-b)%2==0) {
    cout << "Alice" << endl;
  }
   else if((a-b)%2==1){
  cout << "Borys" << endl;
   }
  else
    cout<<"Draw"<<endl;
}


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

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

int main()｛
int N, A, B; cin >> N >> A >> B;
int d = A-B-1;
if(d%2) cout << "Alice" << endl;
else cout << "Borys" << endl;
｝

Compiler output:
a.cc:4:11: error: expected initializer before '\U0000ff5b'
    4 | int main()｛
      |           ^~
a.cc:5:14: error: 'cin' does not name a type
    5 | int N, A, B; cin >> N >> A >> B;
      |              ^~~
a.cc:6:9: error: 'A' was not declared in this scope
    6 | int d = A-B-1;
      |         ^
a.cc:6:11: error: 'B' was not declared in this scope
    6 | int d = A-B-1;
      |           ^
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(d%2) cout << "Alice" << endl;
      | ^~
a.cc:8:1: error: expected unqualified-id before 'else'
    8 | else cout << "Borys" << endl;
      | ^~~~
a.cc:9:1: error: '\U0000ff5d' does not name a type
    9 | ｝
      | ^~
Language: C++

#include <iostream>
#include <cstdio>
#include <vector>
#include <string>
#include <numeric>
#include <algorithm>
#include <cmath>
#include <functional>
#include <map>
#include <set>
#include <stack>
#include <deque>

#define INF 1000000000;
#define MOD 1000000007;
#define LIMIT 1000000000000000000;
typedef long long ll;
using namespace std;
typedef pair<int, int> P;

struct kasu {
    double aho;
};

int main()
{
    int n, a, b; cin >> n >> a >> b;
    string ans;
    if (a == 1 && b == 2) {
        cout << "Borys" << endl; return;
    }
    if ((a == n - 1) && (b = n)) {
        cout << "Alice" << endl; return;
    }
    if ((b - a) % 2 == 0) {
        ans = "Alice";
    }
    else {
        ans = "Borys";
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:34: error: return-statement with no value, in function returning 'int' [-fpermissive]
   30 |         cout << "Borys" << endl; return;
      |                                  ^~~~~~
a.cc:33:34: error: return-statement with no value, in function returning 'int' [-fpermissive]
   33 |         cout << "Alice" << endl; return;
      |                                  ^~~~~~
Language: C++

#include <iostream>

using namespace std;

int main(){
  int a, b, n, c;
  cin >> n >> a >> b;
  c = a;
  if (a > b) {
    a = b;
    b = c;
  }
  cout << (b-a)%2 ? "Borys" : "Alice"<< endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:38: error: invalid operands of types 'const char [6]' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |   cout << (b-a)%2 ? "Borys" : "Alice"<< endl;
      |                               ~~~~~~~^~~~~~~
Language: C++

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

//repetition
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

//container util
#define all(x) (x).begin(),(x).end()

//typedef
typedef long long ll;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<ll> VLL;
typedef vector<VLL> VVLL;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef pair<ll, ll> PLL;


//conversion
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}


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


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

#include<iostream>
#include<algorithm>
#include<string>
#include<map>
#include<cmath>
#include<vector>
#include<queue>
#include<stdio.h>
using namespace std;
 
#define REP(i, x, n) for(int i = x; i < n; i++)
#define rep(i,n) REP(i,0,n)
#define INF 1<<25


int d[n + 1] = {};
typedef pair<int, int> P;

bool bfs(int x)
int main()
{
	int n, a, b;
	cin >> n >> a >> b;
	if (abs(a-b) % 2 == 1) {
		cout << "Alice" << endl;
	} else {
		cout << "Borys" << endl;
	}
	return 0;
}

Compiler output:
a.cc:16:7: error: 'n' was not declared in this scope; did you mean 'yn'?
   16 | int d[n + 1] = {};
      |       ^
      |       yn
a.cc:20:1: error: expected initializer before 'int'
   20 | int main()
      | ^~~