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

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
typedef long long ll;

lint main()
{
	ll n; cin >> n;
	vector<ll>a(n);
	vector<ll>rui(n);
	for (ll i = 0; i < n; i++) {
		cin >> a[i];
		if (i)rui[i] += rui[i - 1] + a[i];
		else rui[i] = a[i];
	}
	vector<ll>tmp = rui;

	ll pm;
	ll b;
	if (rui[0] == 0) {
		rui = tmp;
		rui[0] = 1;
		pm = 1;
		b = 1;
		ll cnt1 = 1;
		for (ll i = 1; i < n; i++) {
			if (rui[i] + b > 0 && rui[i - 1] + b > 0) {
				cnt1 += rui[i] + b + 1;
				b -= rui[i] + b + 1;
				pm = -1;
			}
			else if (rui[i] + b < 0 && rui[i - 1] + b < 0) {
				cnt1 -= rui[i] + b - 1;
				b -= rui[i] + b - 1;
				pm = 1;
			}
			else if (rui[i]+b == 0) {
				if (pm == 1) {
					rui[i] = -1;
					b--;
					cnt1++;
					pm = -1;
				}
				else if (pm == -1) {
					rui[i] = 1;
					b++;
					cnt1++;
					pm = 1;
				}
			}
			else if (rui[i]+b > 0)pm = 1;
			else if (rui[i]+b < 0)pm = -1;
		}

		rui = tmp;
		rui[0] = -1;
		pm = -1;
		b = -1;
		ll cnt2 = 1;
		for (ll i = 1; i < n; i++) {
			if (rui[i] + b > 0 && rui[i - 1] + b > 0) {
				cnt2 += rui[i] + b + 1;
				b -= rui[i] + b + 1;
				pm = -1;
			}
			else if (rui[i] + b < 0 && rui[i - 1] + b < 0) {
				cnt2 -= rui[i] + b - 1;
				b -= rui[i] + b - 1;
				pm = 1;
			}
			else if (rui[i]+b == 0) {
				if (pm == 1) {
					rui[i] = -1;
					b--;
					cnt2++;
					pm = -1;
				}
				else if (pm == -1) {
					rui[i] = 1;
					b++;
					cnt2++;
					pm = 1;
				}
			}
			else if (rui[i]+b > 0)pm = 1;
			else if (rui[i]+b < 0)pm = -1;
		}
		cout << min(cnt1, cnt2) << endl;
	}
	else {
		if(rui[0]>0)pm = 1;
		else pm = -1;
		b = 0;
		ll cnt = 0;
		for (ll i = 1; i < n; i++) {
			if (rui[i]+b > 0 && rui[i - 1] + b > 0) {
				cnt += rui[i] + b + 1;
				b -= rui[i]+b + 1;
				pm = -1;
			}
			else if (rui[i]+b < 0 && rui[i - 1]+b < 0) {
				cnt -= rui[i] + b - 1;
				b -= rui[i]+b - 1;
				pm = 1;
			}
			else if (rui[i]+b == 0) {
				if (pm == 1) {
					rui[i] = -1;
					b--;
					cnt++;
					pm = -1;
				}
				else if (pm == -1) {
					rui[i] = 1;
					b++;
					cnt++;
					pm = 1;
				}
			}
			else if (rui[i]+b > 0)pm = 1;
			else if (rui[i]+b < 0)pm = -1;
		}
		cout << cnt << endl;
	}

    return 0;
}



Compiler output:
a.cc:8:1: error: 'lint' does not name a type; did you mean 'uint'?
    8 | lint main()
      | ^~~~
      | uint
Language: C++

#include <cstdio>
#include <cstring>
#include <vector>
#include <queue>
#include <string>
#include <algorithm>
#include <iostream>
#include <string>
#include <map>
#include <set>
#include <functional>
#include <iostream>
#define MOD 1000000007LL
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
 
int n;
ll a[1000001];
 
int main(void){
	scanf("%d",&n);
	for(int i=0;i<n;i++){
		scanf("%lld",&a[i]);
	}
	ll res=0;
	bool flag=true;
	ll now=0;
	for(int i=0;i<n;i++){
		if(now==0){
			now+=a[i];
			if(now==0){
				now++;
				res++;
			}else if(now<0){
				ll b=-now+1LL;
				res+=b;
				now=1;
			}
		}else if(now>0){
			if(now+a[i]<0){
				now=now+a[i];
			}else{
				ll b=now+a[i]+1LL;
				now=-1;
				res+=b;
			}
		}else{
			if(now+a[i]>0){
				now=now+a[i];
			}else{
				ll b=-(now+a[i])+1LL;
				now=1;
				res+=b;
			}
		}
	}
	ll ans=res;
	res=0;
	now=0;
	for(int i=0;i<n;i++){
		if(now==0){
			now+=a[i];
			if(now==0){
				now--;
				res++;
			}else if(now>0){
				ll b=now+1LL;
				res+=b;
				now=-1;
			}
		}else if(now>0){
			if(now+a[i]<0){
				now=now+a[i];
			}else{
				ll b=now+a[i]+1LL;
				now=-1;
				res+=b;
			}
		}else{
			if(now+a[i]>0){
				now=now+a[i];
			}else{
				ll b=-(now+a[i])+1LL;
				now=1;
				res+=b;
			}
		}
	}
	ans=min(res,ans);
	printf("%lld\n",ans);
	return 0;
}

Compiler output:
a.cc:17:1: error: extended character   is not valid in an identifier
   17 |  
      | ^
a.cc:20:1: error: extended character   is not valid in an identifier
   20 |  
      | ^
a.cc:17:1: error: '\U000000a0' does not name a type
   17 |  
      | ^
a.cc:20:1: error: '\U000000a0' does not name a type
   20 |  
      | ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

typedef long long int ll;



int n, a[100010];


int main(){

	while(scanf("%d", &n)!=EOF){
		for(int i=0; i<n; i++){
			scanf("%d", &a[i]);
			//b[i] = a[i];
		}
		int sum=0, ans=0;
		for(int i=0; i<n; i++){
			sum += a[i];
			if((i%2)==0){
				if(sum<=0){
					ans += 1-sum;					
					sum = 1;
				}
			}
			else{
				if(sum>=0){
					ans += sum+1;
					sum = -1;
				}
			}	
		}
		int ans2 = ans;
		sum = 0; ans = 0;
		for(int i=0; i<n; i++){
			sum += a[i];
			if(i%2){
				if(sum<=0){a
					ans += 1-sum;
					sum = 1;
				}
			}
			else{
				if(sum>=0){
					ans += sum+1;					
					sum = -1;
				}
			}	
		}	
		ans2= min(ans, ans2);
		printf("%d\n", ans2);
	}		

	return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:40:45: error: expected ';' before 'ans'
   40 |                                 if(sum<=0){a
      |                                             ^
      |                                             ;
   41 |                                         ans += 1-sum;
      |                                         ~~~
Language: C++

#include <fstream>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <deque>
#include <complex>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <cstring>

#define REP(i,x) for(int i=0 ; i<(int)(x) ; i++)
#define ALL(x) (x).begin(),(x).end()
#define LL long long

using namespace std;

LL solve(const vector<LL> &a, bool plus){
    LL res = 0;
    LL sum = 0;
    int n = a.size();
    REP(i, n){
        sum += a[i];
        if(plus){
            if(sum <= 0){
                res += 1LL - sum;
                sum = 1LL;
            }
        }else{
            if(sum >= 0){
                res -= -1LL - sum;
                sum = -1LL;
            }
        }
        //cout << sum << endl;
        plus = !plus;
    }
    return res;
}



int main(){
    int n;
    cin >> n;
    vector<LL> a(n);
    REP(i, n)cin >> a[i];
    LL res = min(solve(a, true), solve(a, false));
    cout << res << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:5: error: 'cin' was not declared in this scope
   49 |     cin >> n;
      |     ^~~
a.cc:15:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   14 | #include <cstring>
  +++ |+#include <iostream>
   15 | 
a.cc:53:5: error: 'cout' was not declared in this scope
   53 |     cout << res << endl;
      |     ^~~~
a.cc:53:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

#include<stdio.h>
long a[100000];

int main(int argc, char const *argv[]){
	long a,sum,bsum,ans=0,n,i,f=0,min=1;
	scanf("%ld",&n);
	scanf("%ld",&a[0]);
	if(a[0]==0){
		ans++;
		sum=1;
		f=1;
	}else sum=a[0];
	for(i=1;i<n;i++){
		scanf("%ld",&a[i]);
		bsum=sum;
		sum+=a[i];
		if(bsum>0){
			if(sum>=0){
				ans+=sum+1;
				sum-=1;
		}else{
			if(sum<=0){
				ans+=1-sum;
				sum=1;
			}
		}
	}
	if(f==1){
		sum=-1;
		for(i=1;i<n;i++){
			bsum=sum;
			sum+=a[i];
			if(bsum>0){
				if(sum>=0){
					min+=sum+1;
					sum-=1;
			}else{
				if(sum<=0){
					min+=1-sum;
					sum=1;
				}
			}
		}
		if(ans<min) printf("%ld\n",ans);
		else printf("%ld\n",min);
	}else{
		printf("%ld\n",ans);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: subscripted value is neither array nor pointer nor vector
    7 |         scanf("%ld",&a[0]);
      |                       ^
main.c:8:13: error: subscripted value is neither array nor pointer nor vector
    8 |         if(a[0]==0){
      |             ^
main.c:12:20: error: subscripted value is neither array nor pointer nor vector
   12 |         }else sum=a[0];
      |                    ^
main.c:14:31: error: subscripted value is neither array nor pointer nor vector
   14 |                 scanf("%ld",&a[i]);
      |                               ^
main.c:16:23: error: subscripted value is neither array nor pointer nor vector
   16 |                 sum+=a[i];
      |                       ^
main.c:32:31: error: subscripted value is neither array nor pointer nor vector
   32 |                         sum+=a[i];
      |                               ^
main.c:46:10: error: expected '}' before 'else'
   46 |         }else{
      |          ^~~~
main.c:50:1: error: expected declaration or statement at end of input
   50 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(void)
{

  int n;
  cin >> n;
  vector< int > a;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }

  int cnt = 0;
  int sum = 0;

  for (int i = 0; i < n; ++i) {
    if (i == 0 && a[0] == 0) {
      if (a[1] > 0) {
        cnt++;
        a[0] = -1;
        sum = -1;
      } else {
        cnt++;
        a[0] = 1;
        sum = 1;
      }
      continue;
    } else if (i == 0) {
      sum = a[0];
      continue;
    }
    if (sum * (sum+a[i]) >= 0) {
      if (sum > 0) {
        cnt += abs(sum+a[i], -1);
        sum = -1;
      } else {
        cnt += abs(sum+a[i], 1);
        sum = 1;
      }
    }
  }
  cout << cnt << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'vector' was not declared in this scope
    9 |   vector< int > a;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:9:11: error: expected primary-expression before 'int'
    9 |   vector< int > a;
      |           ^~~
a.cc:11:12: error: 'a' was not declared in this scope
   11 |     cin >> a[i];
      |            ^
a.cc:18:19: error: 'a' was not declared in this scope
   18 |     if (i == 0 && a[0] == 0) {
      |                   ^
a.cc:33:20: error: 'a' was not declared in this scope
   33 |     if (sum * (sum+a[i]) >= 0) {
      |                    ^
Language: Java

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

public class C
{
	public static void main(String[] args) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
		int n = Integer.parseInt(br.readLine()), ans = 0;
		StringTokenizer st = new StringTokenizer(br.readLine());
		long sum = Long.parseLong(st.nextToken());
		for(int i = 0; i < n-1; i++)
		{
			long num = Long.parseLong(st.nextToken());
			if(sum > 0)
			{
				sum += num;
				if(sum >= 0)
				{
					ans += sum + 1;
					sum = -1;
				}
			}
			else if(sum < 0)
			{
				sum += num;
				if(sum <= 0)
				{
					ans += -sum + 1;
					sum = 1;
				}
			}
		}
		pw.println(ans);
		br.close();
		pw.close();
		System.exit(0);
	}
}

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

use std::io;
use std::io::{Read, BufReader};
use std::cmp;

fn next_token<R: Read>(reader: &mut R) -> Vec<u8> {
    let mut buf: [u8; 1] = [0];
    let mut read_chars = false;
    let mut ret: Vec<u8> = vec![];

    loop {
        if reader.read(&mut buf).unwrap() == 0 {
            break;
        } else {
            if buf[0] == '\r' as u8 || buf[0] == '\n' as u8 || buf[0] == ' ' as u8 {
                if read_chars {
                    break;
                }
            } else {
                read_chars = true;
                ret.push(buf[0]);
            }
        }
    };
    ret
}
fn next_i64<R: Read>(reader: &mut R) -> i64 {
    let token = next_token(reader);
    let mut ret: i64 = 0;
    let mut sgn = false;

    for c in token {
        if '0' as u8 <= c && c <= '9' as u8 {
            ret = ret * 10 + (c - ('0' as u8)) as i64;
        } else if '-' as u8 == c {
            sgn = true;
        }
    };
    ret * if sgn { -1 } else { 1 }
}
fn next_i32<R: Read>(reader: &mut R) -> i32 {
    next_i64(reader) as i32
}

fn main() {
    let buf = &mut BufReader::new(io::stdin());

    let n = next_i32(buf);
    let mut a = vec![];
    for _ in 0..n {
        a.push(next_i32(buf));
    }

    let mut ret1 = 0;
    let mut sum = 0;
    for i in 0..n {
        sum += a[i as usize];
        if i % 2 == 0 {
            // target: +
            let diff = cmp::max(0, 1 - sum);
            sum += diff;
            ret1 += diff;
        } else {
            // target: -
            let diff = cmp::max(0, sum + 1);
            sum -= diff;
            ret1 += diff;
        }
    //    println!("{} {}", ret1, sum);
    }
    let mut ret2 = 0;
    let mut sum = 0;
    for i in 0..n {
        sum += a[i as usize];
        if i % 2 == 1 {
            // target: +
            let diff = cmp::max(0, 1 - sum);
            sum += diff;
            ret2 += diff;
        } else {
            // target: -
            let diff = cmp::max(0, sum + 1);
            sum -= diff;
            ret2 += diff;
        }
    }

    println!("{}", cmp::min(ret1, ret2));
}


Compiler output:
a.cc:49:14: error: too many decimal points in number
   49 |     for _ in 0..n {
      |              ^~~~
a.cc:55:14: error: too many decimal points in number
   55 |     for i in 0..n {
      |              ^~~~
a.cc:72:14: error: too many decimal points in number
   72 |     for i in 0..n {
      |              ^~~~
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::io::{Read, BufReader};
      | ^~~
a.cc:3:1: error: 'use' does not name a type
    3 | use std::cmp;
      | ^~~
a.cc:5:1: error: 'fn' does not name a type
    5 | fn next_token<R: Read>(reader: &mut R) -> Vec<u8> {
      | ^~
a.cc:26:1: error: 'fn' does not name a type
   26 | fn next_i64<R: Read>(reader: &mut R) -> i64 {
      | ^~
a.cc:40:1: error: 'fn' does not name a type
   40 | fn next_i32<R: Read>(reader: &mut R) -> i32 {
      | ^~
a.cc:44:1: error: 'fn' does not name a type
   44 | fn main() {
      | ^~
Language: C++

#include <iostream>

int main() {
  long long a,b;
  std::cin >> a >> b;
  if(abs(a-b)<=1){
    std::cout << "Brown" << endl;
  }
  else{
    std::cout << "Alice" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     std::cout << "Brown" << endl;
      |                             ^~~~
      |                             std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     std::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 <algorithm>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
#define IOS ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define Pause system("pause")
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
int main()
{
	IOS;
    ull x,y,cnt0=0,cnt1=0;
    cin>>x>>y;
    if(abs(x-y)>1)
        cout<<"Alice";
    else
        cout<<"Brown";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: call of overloaded 'abs(ull)' is ambiguous
   21 |     if(abs(x-y)>1)
      |        ~~~^~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/bits/stl_algo.h:71,
                 from /usr/include/c++/14/algorithm:61,
                 from a.cc:1:
/usr/include/stdlib.h:980:12: note: candidate: 'int abs(int)'
  980 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
In file included from /usr/include/c++/14/cstdlib:81:
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
Language: C++

#include <algorithm>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
#define IOS ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define Pause system("pause")
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
int main()
{
	IOS;
    ull x,y,cnt0=0,cnt1=0;
    cin>>x>>y;
    if(abs(x-y)>1)
        cout<<"Alice";
    else
        cout<<"Brown";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: call of overloaded 'abs(ull)' is ambiguous
   21 |     if(abs(x-y)>1)
      |        ~~~^~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/bits/stl_algo.h:71,
                 from /usr/include/c++/14/algorithm:61,
                 from a.cc:1:
/usr/include/stdlib.h:980:12: note: candidate: 'int abs(int)'
  980 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
In file included from /usr/include/c++/14/cstdlib:81:
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
Language: C++


#include <bits/stdc++.h>
using namespace std;
#define fi first
#define endl "\n"
#define se second
#define ls( s) (s&(-s))
#define ll long long
#define inf 0x3f3f3f3f
#define fast    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const ll N = 300030;
#define rep(i, begin, end) for (__typeof(end) i = (begin) - ((begin) > (end)); i != (end) - ((begin) > (end)); i += 1 - 2 * ((begin) > (end)))
const ll mod =    1e9+7;

int main()
{  fast
ll n,m;
cin>>n>>m;
if(abs(p-q)>1)
cout<<"Alice";
else
cout<<"Brown";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: 'p' was not declared in this scope
   19 | if(abs(p-q)>1)
      |        ^
a.cc:19:10: error: 'q' was not declared in this scope
   19 | if(abs(p-q)>1)
      |          ^
Language: C++

#include<iostream>
#include<cmath>
#include<algorithm>
#include<cstring>
using namespace std;
typedef long long ll;
int main () {
    ll x, y;
    cin >> x >> y;
    if (fabs(x, y) <= 1) cout << "Brown\n";
    else cout << "Alice\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: no matching function for call to 'fabs(ll&, ll&)'
   10 |     if (fabs(x, y) <= 1) cout << "Brown\n";
      |         ~~~~^~~~~~
In file included from a.cc:2:
/usr/include/c++/14/cmath:250:5: note: candidate: 'template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::fabs(_Tp)'
  250 |     fabs(_Tp __x)
      |     ^~~~
/usr/include/c++/14/cmath:250:5: note:   candidate expects 1 argument, 2 provided
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/bits/requires_hosted.h:31,
                 from /usr/include/c++/14/iostream:38,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:195:1: note: candidate: 'double fabs(double)'
  195 | __MATHCALLX (fabs,, (_Mdouble_ __x), (__const__));
      | ^~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:195:1: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/cmath:242:3: note: candidate: 'constexpr long double std::fabs(long double)'
  242 |   fabs(long double __x)
      |   ^~~~
/usr/include/c++/14/cmath:242:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/cmath:238:3: note: candidate: 'constexpr float std::fabs(float)'
  238 |   fabs(float __x)
      |   ^~~~
/usr/include/c++/14/cmath:238:3: note:   candidate expects 1 argument, 2 provided
Language: C++

#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using ULL = unsigned long long;
using VI = vector<int>;
using VL = vector<LL>;
using PII = pair<int, int>;
using PLL = pair<LL, LL>;

#define SZ(a) (int)a.size()
#define ALL(a) a.begin(), a.end()
#define MP make_pair
#define PB push_back
#define EB emplace_back
#define F first
#define S second
#define FOR(i, a, b) for (int i = (a); i<(b); ++i)
#define RFOR(i, b, a) for (int i = (b)-1; i>=(a); --i)
#define FILL(a, b) memset(a, b, sizeof(a))

void dout() { cerr << endl; }

template <typename Head, typename... Tail>
void dout(Head H, Tail... T) {
    cerr << H << ' ';
    dout(T...);
}

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int n, m;
    cin >> n >> m;
    if (abs(x - y) > 1)
        cout << "Alice\n";
    else
        cout << "Brown\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:13: error: 'x' was not declared in this scope
   35 |     if (abs(x - y) > 1)
      |             ^
a.cc:35:17: error: 'y' was not declared in this scope
   35 |     if (abs(x - y) > 1)
      |                 ^
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

ll X, Y;

int main(){
  	cin >> X >> Y;
  	if(abs(X - Y) <= 1){
    	cout << "Brown" << endl;
    }else cout << "Alice" << endl;
	return 0;
}

Compiler output:
a.cc:6:1: error: 'll' does not name a type
    6 | ll X, Y;
      | ^~
a.cc: In function 'int main()':
a.cc:9:16: error: 'X' was not declared in this scope
    9 |         cin >> X >> Y;
      |                ^
a.cc:9:21: error: 'Y' was not declared in this scope
    9 |         cin >> X >> Y;
      |                     ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    long long x,y;
    cin >> x >> y;
    if(x<y) swap(x,y);
    if((x==1&&y==0) || (x==1&&y==1) || (x==2&&y==1) || (X==0&&y==0)) cout << "Brown" << endl;
    else cout << "Alice" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:57: error: 'X' was not declared in this scope
    7 |     if((x==1&&y==0) || (x==1&&y==1) || (x==2&&y==1) || (X==0&&y==0)) cout << "Brown" << endl;
      |                                                         ^
Language: C++

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

int main () {
  long long x, y;
  cin >> x >> y;
  
  if (abs (x - y) < 2)
    cout << "Brown" << endl:
  else
    cout << "Alice" << endl;
  
  return 0;
}

Compiler output:
a.cc:1:24: error: missing terminating > character
    1 | #include <bits/stdc++.h
      |                        ^
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

#include<bits/stdc++.h>
typedef long long ll;

int main()
{
    ll x,y;
    cin>>x>>y;
    if(abs(x-y)<=1)
    {
        cout<<"Brown"<<endl;
    }
    else
    {
        cout<<"Alice"<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin>>x>>y;
      |     ^~~
      |     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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout<<"Brown"<<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:10:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         cout<<"Brown"<<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:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         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:14:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |         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 <bits/stdc++.h>
 
typedef long long ll;
 
ll x, y;
 
int main()
{
	scanf("%lld%lld", &x, &y);
	printf("%s\n", max(0ll, x - 1) > y? "Alice" : "Brown");
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: 'max' was not declared in this scope; did you mean 'std::max'?
   10 |         printf("%s\n", max(0ll, x - 1) > y? "Alice" : "Brown");
      |                        ^~~
      |                        std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

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

using ll long long;

int main() {
    ll X,Y; cin >> X >> Y;
    bool alice = (llabs(X-Y) >= 2);
    cout << (alice ? "Alice" : "Brown") << endl;
    return 0;
}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'll'
    4 | using ll long long;
      |       ^~
a.cc: In function 'int main()':
a.cc:7:5: error: 'll' was not declared in this scope
    7 |     ll X,Y; cin >> X >> Y;
      |     ^~
a.cc:7:20: error: 'X' was not declared in this scope
    7 |     ll X,Y; cin >> X >> Y;
      |                    ^
a.cc:7:25: error: 'Y' was not declared in this scope
    7 |     ll X,Y; cin >> X >> Y;
      |                         ^
Language: C++

#include #include <iostream>
#include <cstdio>
#include <vector>
#include <cmath>
#include <cstring>
#include <numeric>
#include <algorithm>
#include <functional>
#include <array>
#include <map>
#include <queue>
#include <limits.h>
#include <set>
#include <stack>
#include <random>
#include <complex>
#include <unordered_map>
#define rep(i,s,n) for(int i = (s); (n) > i; i++)
#define REP(i,n) rep(i,0,n)
#define RANGE(x,a,b) ((a) <= (x) && (x) < (b))
#define DUPLE(a,b,c,d) (RANGE(a,c,d) || RANGE(b,c,d) || RANGE(c,a,b) || RANGE(d,a,b))
#define INCLU(a,b,c,d) (RANGE(a,c,d) && (b,c,d))
#define PW(x) ((x)*(x))
#define ALL(x) (x).begin(), (x).end()
#define RALL(x) (x).rbegin(), (x).rend()
#define MODU 1000000007LL
#define bitcheck(a,b)   ((a >> b) & 1)
#define bitset(a,b)      ( a |= (1 << b))
#define bitunset(a,b)    (a &= ~(1 << b))
#define MP(a,b) make_pair((a),(b))
#define Manh(a,b) (abs((a).first-(b).first) + abs((a).second - ((b).second))
#define pritnf printf
#define scnaf scanf
#define itn int
#define PI 3.141592653589


#define izryt bool
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
template<typename A, size_t N, typename T>
void Fill(A(&array)[N], const T &val) {
	std::fill((T*)array, (T*)(array + N), val);
}
pll Dir[8] = { //移動
	{ 0 ,1 },{ -1 ,0 },{ 1 ,0 },{ 0 ,-1 },
	{ 1 ,1 },{ 1 ,-1 },{ -1 ,1 },{ -1 ,-1 }
};

//[a, b)
#define Getsum(ar, a,b) (ar[b] - ar[a])
#define INF 10000000000000000LL

struct Edge {
	int from, to;
	ll w;
};
typedef vector<vector<Edge>> Graph;

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


bool BellmanFord(Graph g, int s, vector<ll>& dis) { //is huheiro aru
#define INF 10000000000000LL
	fill(ALL(dis), INF);
	dis[s] = 0;
	REP(cc, g.size()*10) {

		REP(v, g.size()) {
			for (auto e : g[v]) {
				if (cc >= g.size() && e.to == g.size()-1 && dis[e.to] > dis[e.from] + e.w) return 1;
				dis[e.to] = min(dis[e.to], dis[e.from] + e.w);
			}
		}

	}


	return 0;
}

signed main(void) {

	ll x, y;

	cin >> x >> y;

	cout << (abs(x-y) <= 1 ? "Alice" : "Brown") << endl;

	return 0;
}



Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include #include <iostream>
      |          ^
a.cc:69:9: warning: "INF" redefined
   69 | #define INF 10000000000000LL
      |         ^~~
a.cc:54:9: note: this is the location of the previous definition
   54 | #define INF 10000000000000000LL
      |         ^~~
a.cc: In function 'int main()':
a.cc:91:9: error: 'cin' was not declared in this scope
   91 |         cin >> x >> y;
      |         ^~~
a.cc:17:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   16 | #include <complex>
  +++ |+#include <iostream>
   17 | #include <unordered_map>
a.cc:93:9: error: 'cout' was not declared in this scope
   93 |         cout << (abs(x-y) <= 1 ? "Alice" : "Brown") << endl;
      |         ^~~~
a.cc:93:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
using namespace std;
int main(){
    long long x,y;
    cin >> x >> y;
    abs(x-y)<=1? cout <<"Brown"<<endl : cout << "Alice" << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:65: error: expected '}' at end of input
    6 |     abs(x-y)<=1? cout <<"Brown"<<endl : cout << "Alice" << endl;
      |                                                                 ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

int main()
{
    long long X, Y;
    std::cin>>X>>Y;
    if (abs(X - Y) <= 1)
        std::cout<<"Brown\n";
    else
        std::cout<<"Alice\n"; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'cin' is not a member of 'std'
    4 |     std::cin>>X>>Y;
      |          ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main()
a.cc:5:9: error: 'abs' was not declared in this scope
    5 |     if (abs(X - Y) <= 1)
      |         ^~~
a.cc:6:14: error: 'cout' is not a member of 'std'
    6 |         std::cout<<"Brown\n";
      |              ^~~~
a.cc:6:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:14: error: 'cout' is not a member of 'std'
    8 |         std::cout<<"Alice\n";
      |              ^~~~
a.cc:8:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  long long int x,y;cin>>x>>y
  string ans;
  if(abs(x-y)<=1)ans='Brown';
  else ans='Alice';
  cout<<ans<<endl;
}

Compiler output:
a.cc:6:22: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    6 |   if(abs(x-y)<=1)ans='Brown';
      |                      ^~~~~~~
a.cc:7:12: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |   else ans='Alice';
      |            ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:30: error: expected ';' before 'string'
    4 |   long long int x,y;cin>>x>>y
      |                              ^
      |                              ;
    5 |   string ans;
      |   ~~~~~~                      
a.cc:6:18: error: 'ans' was not declared in this scope; did you mean 'abs'?
    6 |   if(abs(x-y)<=1)ans='Brown';
      |                  ^~~
      |                  abs
a.cc:7:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   else ans='Alice';
      |        ^~~
      |        abs
a.cc:8:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  long long int x,y;cin>>x>>y;
  if(abs(x-y)<=1)ans='Brown';
  else ans='Alice';
  cout<<ans<<endl;
}

Compiler output:
a.cc:5:22: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |   if(abs(x-y)<=1)ans='Brown';
      |                      ^~~~~~~
a.cc:6:12: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    6 |   else ans='Alice';
      |            ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:18: error: 'ans' was not declared in this scope; did you mean 'abs'?
    5 |   if(abs(x-y)<=1)ans='Brown';
      |                  ^~~
      |                  abs
a.cc:6:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
    6 |   else ans='Alice';
      |        ^~~
      |        abs
a.cc:7:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int x,y;cin>>x>>y;
  if(abs(x-y)<=1)string ans="Brown";
  else string ans="Alice";
  cout<<ans<<endl;
}


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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int x,y;cin>>x>>y;
  if(abs(x-y)<=1)string ans='Brown';
  else string ans='Alice';
  cout<<ans<<endl;
}


Compiler output:
a.cc:5:29: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |   if(abs(x-y)<=1)string ans='Brown';
      |                             ^~~~~~~
a.cc:6:19: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    6 |   else string ans='Alice';
      |                   ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:29: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    5 |   if(abs(x-y)<=1)string ans='Brown';
      |                             ^~~~~~~
a.cc:6:19: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |   else string ans='Alice';
      |                   ^~~~~~~
a.cc:7:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int x,y;cin>>x>>y;
  if(abs(x-y)<=1)ans='Brown';
  else ans='Alice';
  cout<<ans<<endl;
}

Compiler output:
a.cc:5:22: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |   if(abs(x-y)<=1)ans='Brown';
      |                      ^~~~~~~
a.cc:6:12: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    6 |   else ans='Alice';
      |            ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:18: error: 'ans' was not declared in this scope; did you mean 'abs'?
    5 |   if(abs(x-y)<=1)ans='Brown';
      |                  ^~~
      |                  abs
a.cc:6:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
    6 |   else ans='Alice';
      |        ^~~
      |        abs
a.cc:7:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

#include <iostream>
#include <climits>
#include <stack>
#include <queue>
#include <string>
#include <random>
#include <utility>
#include <cmath>
#include <string.h>
#include <iomanip>
#include <stdlib.h>
#include <algorithm>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
long long int INF = 1e18;
double Pi = 3.141592653589;
const int mod = 1000000007;
// memset(a,0,sizeof(a)); →全部０にする
 
struct edge{int to,cost;};
vector<int> G[100005];
 
long long int n,m,i,j=1,t;
long long int b,l;
int dx[8]={1,0,-1,0,1,1,-1,-1};
int dy[8]={0,1,0,-1,1,-1,-1,1,};
 
std::vector<P> tree[100010];
long long int dp[100005];
long long int a,k;
bool flag=false;
bool used[100005];
char s[20];

ll ans=0;
long long int x,y,a,b;

int main(){
	cin>>x>>y;
	a=max(x,y);
	b=min(x,y);
	if(max(x,y)>=4){
		cout<<"Alice";
	}else{
		if((a<=1 && b==0) || (a==2 && b==1) || (a==1 && b==1) )cout<<"Brown";
		if((a>=2 && b==0) || (a==3 && b==1) )cout<<"Alice";
	}
	cout<<endl;
	return 0;
}

Compiler output:
a.cc:38:19: error: redefinition of 'long long int a'
   38 | long long int x,y,a,b;
      |                   ^
a.cc:32:15: note: 'long long int a' previously declared here
   32 | long long int a,k;
      |               ^
a.cc:38:21: error: redefinition of 'long long int b'
   38 | long long int x,y,a,b;
      |                     ^
a.cc:26:15: note: 'long long int b' previously declared here
   26 | long long int b,l;
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
LL x,y;
int main()
{
cin>>x>>y;
printf(abs(x-y)<=1 ? "Brown" : "Alice");
return 0;
}

Compiler output:
a.cc:3:1: error: 'LL' does not name a type
    3 | LL x,y;
      | ^~
a.cc: In function 'int main()':
a.cc:6:6: error: 'x' was not declared in this scope
    6 | cin>>x>>y;
      |      ^
a.cc:6:9: error: 'y' was not declared in this scope; did you mean 'yn'?
    6 | cin>>x>>y;
      |         ^
      |         yn
Language: C++

#include<iostream>
 using namespace std;
 
int main (){
int n,m;
cin>>n>>m;
if(n>m){int k=n;n=m;m=k;}
if((m-n)>1)cout<<Alice<<endl;
else cout<<Brown<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'Alice' was not declared in this scope
    8 | if((m-n)>1)cout<<Alice<<endl;
      |                  ^~~~~
a.cc:9:12: error: 'Brown' was not declared in this scope
    9 | else cout<<Brown<<endl;
      |            ^~~~~
Language: C++

#include <iostream>
using namespace std;
long long x, y;
long long abs(long long x) { return x < 0 ? -x : x; }
int main(){
  cin>>x>>y;
  if(abs(x-y) <= 1) cout<<"Alice";
 else cout<<"Brown";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: call of overloaded 'abs(long long int)' is ambiguous
    7 |   if(abs(x-y) <= 1) cout<<"Alice";
      |      ~~~^~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:980:12: note: candidate: 'int abs(int)'
  980 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
a.cc:4:11: note: candidate: 'long long int abs(long long int)'
    4 | long long abs(long long x) { return x < 0 ? -x : x; }
      |           ^~~
In file included from /usr/include/c++/14/cstdlib:81:
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
Language: C++

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

#define pb         push_back

typedef long long ll;
const ll INF = 1000000000000000000ll;
const ll MOD = 1000000007ll;
const double EPS = 1e-8;

int memo[105][105];

bool rec(int x, int y, bool a){
	if(x < 2 && y < 2){
		//cout << !a << endl;
		return false;
	}

	if(memo[x][y] != -1) return memo[x][y];

	if(memo[x][y] == -1){
		for(int i=1; 2*i <= x; i++){
			//cout << x << y << endl;
			if(rec(x-2*i, y+i, !a) == false){
				return memo[x][y] = 1;
			}
		}
		for(int i=1; 2*i <= y; i++){
			//cout << x << y << endl;
			if(rec(x+i, y-2*i, !a) == false){
				return memo[x][y] = 1;
			}
		}
	}
	return memo[x][y] = 0;
}

int main(void) {
	//ios_base::sync_with_stdio(false);
	//cin.tie(0);
	//cout << rec(2, 1, true) << endl;
	
	memset(memo, 0xff, sizeof(memo));

	//rec(3, 3, true);
	
	/*
	for(int i=0; i<=20; i++){
		for(int j=0; j<=20; j++){
			if(rec(i, j, true) == true){
				printf("A");
			}else{
				printf("B");
			}
		}
		puts("");
	}
	*/

	int x, y;
	cin >> x >> y;
	printf("%s\n", (abs(x - y) <= 1) ? "Brown" : "Alice")

	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:62:62: error: expected ';' before 'return'
   62 |         printf("%s\n", (abs(x - y) <= 1) ? "Brown" : "Alice")
      |                                                              ^
      |                                                              ;
......
   65 |         return 0;
      |         ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long a,b;
  cin>>a>>b;
  if(abs(x-y)>1)cout<<"Alice"<<endl;
  else cout<<"Brown"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'x' was not declared in this scope
    6 |   if(abs(x-y)>1)cout<<"Alice"<<endl;
      |          ^
a.cc:6:12: error: 'y' was not declared in this scope
    6 |   if(abs(x-y)>1)cout<<"Alice"<<endl;
      |            ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
#define all(c) c.begin(),c.end()
#define pb push_back
#define fs first
#define sc second
#define show(x) cout << #x << " = " << x << endl
#define chmin(x,y) x=min(x,y)
#define chmax(x,y) x=max(x,y)
using namespace std;
template<class S,class T> ostream& operator<<(ostream& o,const pair<S,T> &p){return o<<"("<<p.fs<<","<<p.sc<<")";}
template<class T> ostream& operator<<(ostream& o,const vector<T> &vc){o<<"sz = "<<vc.size()<<endl<<"[";for(const T& v:vc) o<<v<<",";o<<"]";return o;}
int main(){
	ll x,y;
	cin>>x>>y;
	if(x==0 && y==0){
		puts("Brown");
	}else if(abs(x-y)==1){
		puts("Brown");
	}else puts("Alice");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'll' was not declared in this scope; did you mean 'all'?
   15 |         ll x,y;
      |         ^~
      |         all
a.cc:16:14: error: 'x' was not declared in this scope
   16 |         cin>>x>>y;
      |              ^
a.cc:16:17: error: 'y' was not declared in this scope; did you mean 'yn'?
   16 |         cin>>x>>y;
      |                 ^
      |                 yn
Language: Java

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

public class A {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        System.out.println(Math.abs(sc.nextLong() - sc.nextLong()) <= 1 ? "Brown" : "Alice");
        
        out.flush();
        out.close();
    }

    static class Scanner {
        StringTokenizer st;
        BufferedReader br;

        public Scanner(InputStream s) {
            br = new BufferedReader(new InputStreamReader(s));
        }

        public Scanner (FileReader f) {br = new BufferedReader(f);}

        public String next() throws IOException {
            while (st == null || !st.hasMoreTokens())
                st = new StringTokenizer(br.readLine());
            return st.nextToken();
        }

        public int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        public long nextLong() throws IOException {
            return Long.parseLong(next());
        }

        public String nextLine() throws IOException {
            return br.readLine();
        }

        public double nextDouble() throws IOException {
            String x = next();
            StringBuilder sb = new StringBuilder("0");
            double res = 0, f = 1;
            boolean dec = false, neg = false;
            int start = 0;
            if (x.charAt(0) == '-') {
                neg = true;
                start++;
            }
            for (int i = start; i < x.length(); i++)
                if (x.charAt(i) == '.') {
                    res = Long.parseLong(sb.toString());
                    sb = new StringBuilder("0");
                    dec = true;
                } else {
                    sb.append(x.charAt(i));
                    if (dec)
                        f *= 10;
                }
            res += Long.parseLong(sb.toString()) / f;
            return res * (neg ? -1 : 1);
        }

        public boolean ready() throws IOException {
            return br.ready();
        }

    }
}

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

#include<iostream>
#include<vector>
#include<cmath>
#include<utility>
using namespace std;
typedef long long LL;
#define F first
#define S second

int main() {
	LL a, b;
	cin >> a >> b;
	if (abs(a - b) >= 2)cout << "Alice" << endl;
	else cout << "Brown" << endl;
	return;
}

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