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

#include <algorithm>
#include <bitset>
#include <tuple>
#include <cstdint>
#include <cstdio>
#include <cctype>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <limits>
#include <map>
#include <memory>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#define ArraySizeOf(array)     (sizeof(array) / sizeof(array[0]))
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i,n) for(int i=1;i<n;i++)
#define int long long
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define _GLIBCXX_DEBUG
unsigned NthDayOfWeekToDay(unsigned n, unsigned dow, unsigned dow1)
{
unsigned day;
if(dow < dow1) dow += 7;
day = dow - dow1;
day += 7 * n - 6;
return day;
}
unsigned DayToWeekNumber(unsigned day)
{
  return (day - 1) / 7 + 1;
}
unsigned AnotherDayOfWeek(unsigned day, unsigned day0, unsigned dow0)
{
  return (dow0 + 35 + day - day0) % 7;
}
using namespace std;
signed main(){
	int A,B,C,D,E,F,K;
	cin>>A>>B>>C>>K;
	rep(i,K){
		D=A;
		E=B;
		F=C;
		A=E+F;
		B=D+F;
		C=D+E;
	}
	double G=A-B;
	if(double log10(G)>18){
		cout<<"Unfair"<<endl;
	}
	else{
		cout<<A-B<<endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:70:24: error: expected initializer before '(' token
   70 |         if(double log10(G)>18){
      |                        ^
a.cc:70:24: error: expected ')' before '(' token
   70 |         if(double log10(G)>18){
      |           ~            ^
      |                        )
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
using namespace std;


int main() {
    int A, B, C, K;
    cin >> A >> B >> C >> K;
    int X = 0;
    int Y = 0;
    int Z = 0;

    for (int i = 0; i < K; i++) {
        X = B + C;
        Y = A + C;
        Z = A + B;
    }

    if (abs(X - Y) > pow(10, 18)) {
        cout << "Unfair" << endl;
    }
    else {
        cout << X - Y << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:22: error: 'pow' was not declared in this scope
   34 |     if (abs(X - Y) > pow(10, 18)) {
      |                      ^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    long long A, B, C, K;
    cin >> A >> B >> C >> K;

    if(N % 2 == 0){
        cout << A - B << endl;
    } else{
        cout << B - A << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'N' was not declared in this scope
    8 |     if(N % 2 == 0){
      |        ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<cstddef>
#include<queue>
#include<math.h>
#include<iomanip>
using namespace std;

int main()
{
    long long a, b, c, k;
    cin >> a >> b >> c >> k;
    long long ans = a - b;
    if(k % 2 = 1) ans = b - a;
    cout << ans << endl;
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  ll A, B, C, K;
  cin >> A >> B >> C >> K;
  if(K % 2 == 1){
    cout << B-A << endl;
  }else{
    cout << A-B << endl;
  }
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'll' was not declared in this scope
    5 |   ll A, B, C, K;
      |   ^~
a.cc:6:10: error: 'A' was not declared in this scope
    6 |   cin >> A >> B >> C >> K;
      |          ^
a.cc:6:15: error: 'B' was not declared in this scope
    6 |   cin >> A >> B >> C >> K;
      |               ^
a.cc:6:20: error: 'C' was not declared in this scope
    6 |   cin >> A >> B >> C >> K;
      |                    ^
a.cc:6:25: error: 'K' was not declared in this scope
    6 |   cin >> A >> B >> C >> K;
      |                         ^
Language: C++

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

int main() {
  int A, B, C, a, b, c;
  long long K;
  cin >> A >> B >> C >> K;
  if(K%2==0) cout << A-B << endl;
  else cout << B-A << endl;
  }
}

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

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

int main(){
    long long A,B,C,K;
    cin>>A>>B>>C>>K;
    long long ans;

    else if(K % 2 == 0) ans = A - B;
    else if(K % 2 != 0) ans = B - A;

    cout<<ans<<endl;

    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else if(K % 2 == 0) ans = A - B;
      |     ^~~~
Language: C++

#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cassert>
#include <cstring>
#include <string>
#include <vector>
#include <random>
#include <bitset>
#include <queue>
#include <cmath>
#include <unordered_map>
#include <set>
#include <map>
#define INCANT cin.tie(0), cout.tie(0), ios::sync_with_stdio(0), cout << fixed << setprecision(20);
#define rep(i,n) for (int i=0; i<n;++i)
#define ALL(a)  (a).begin(),(a).end()
#define PI 3.14159265358979
typedef long long ll;
using namespace std;
const ll MOD = 1e9+7LL;
const int INF = 2e9;
int A,B, C;
ll K;

int main() {
  INCANT;
  cin >> A >> B >> C >> K;
  int ans = K%2==0?A-B:B-A;
  cout << ans << "\n";
  return 0;
}#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cassert>
#include <cstring>
#include <string>
#include <vector>
#include <random>
#include <bitset>
#include <queue>
#include <cmath>
#include <unordered_map>
#include <set>
#include <map>
#define INCANT cin.tie(0), cout.tie(0), ios::sync_with_stdio(0), cout << fixed << setprecision(20);
#define rep(i,n) for (int i=0; i<n;++i)
#define ALL(a)  (a).begin(),(a).end()
#define PI 3.14159265358979
typedef long long ll;
using namespace std;
const ll MOD = 1e9+7LL;
const int INF = 2e9;
int A,B, C;
ll K;

int main() {
  INCANT;
  cin >> A >> B >> C >> K;
  int ans = K%2==0?A-B:B-A;
  cout << ans << "\n";
  return 0;
}

Compiler output:
a.cc:32:2: error: stray '#' in program
   32 | }#include <algorithm>
      |  ^
a.cc:32:3: error: 'include' does not name a type
   32 | }#include <algorithm>
      |   ^~~~~~~
a.cc:52:10: error: redefinition of 'const ll MOD'
   52 | const ll MOD = 1e9+7LL;
      |          ^~~
a.cc:21:10: note: 'const ll MOD' previously defined here
   21 | const ll MOD = 1e9+7LL;
      |          ^~~
a.cc:53:11: error: redefinition of 'const int INF'
   53 | const int INF = 2e9;
      |           ^~~
a.cc:22:11: note: 'const int INF' previously defined here
   22 | const int INF = 2e9;
      |           ^~~
a.cc:54:5: error: redefinition of 'int A'
   54 | int A,B, C;
      |     ^
a.cc:23:5: note: 'int A' previously declared here
   23 | int A,B, C;
      |     ^
a.cc:54:7: error: redefinition of 'int B'
   54 | int A,B, C;
      |       ^
a.cc:23:7: note: 'int B' previously declared here
   23 | int A,B, C;
      |       ^
a.cc:54:10: error: redefinition of 'int C'
   54 | int A,B, C;
      |          ^
a.cc:23:10: note: 'int C' previously declared here
   23 | int A,B, C;
      |          ^
a.cc:55:4: error: redefinition of 'll K'
   55 | ll K;
      |    ^
a.cc:24:4: note: 'll K' previously declared here
   24 | ll K;
      |    ^
a.cc:57:5: error: redefinition of 'int main()'
   57 | int main() {
      |     ^~~~
a.cc:26:5: note: 'int main()' previously defined here
   26 | int main() {
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
using ll = long long;
using vi = vector<int>
#define rep(i,n) for(int i = 0; i< n; i++)

int main() {
  ll  a , b , c , k ;
  cin >> a >> b >> c >> k ;
  
  if(k%2==1){
  cout << b-a << endl;
  }
  
  else {
  cout << a-b << endl;
  }
}

Compiler output:
a.cc:5:12: error: two or more data types in declaration of 'type name'
    5 | using vi = vector<int>
      |            ^~~~~~~~~~~
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 pii = pair<int,int>;

int main(){
    ll a,b,c,k;
    cin >> a >> b >> c >> k;
    ll x,y,z;
    rep(i,k){
        x = b+c;
        y = a+c;
        z = a+b;
        a = x , b = y , c = z;
        if(a-b > pow(10,18)) {
            cout << "Unfair" << endl;
            return 0;
        }
    }
    else cout << a-b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'else' without a previous 'if'
   21 |     else cout << a-b << endl;
      |     ^~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <limits.h>

typedef long long t_long;

int main()
{
	t_long A,B,C;
	scanf("%lld%lld%lld", &A,&B,&C);
	t_long K;
	scanf("%lld", &K);
	if (llabs(A - B) == 0)
	{
		printf("0\n");
		return 0;
	}
	if (K % 2)
	{
		printf("%lld\n", B - A));
	}
	else
	{
		printf("%lld", A - B);
	}
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:20:40: error: expected ';' before ')' token
   20 |                 printf("%lld\n", B - A));
      |                                        ^
      |                                        ;
main.c:20:40: error: expected statement before ')' token
Language: C++

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

int main(){
  int a,b,c,k;
  cin >> a >> b >> c >> k;
  
  if (abs(b-a)>1e18) puts("Unfair");
  else if (k%2==0) cout << (a-b) << endl;
  else (k%2==1) cout << (b-a) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'cout'
   10 |   else (k%2==1) cout << (b-a) << endl;
      |                ^~~~~
      |                ;
Language: C++

import java.io.*;

public class Main {

	final static long MOD = 1000000007;
	public static String[] Ws = null;
	public static int wsIndx = 0;
	public static BufferedReader in = null;
	public static void main(String[] args) throws Exception {

		long A = nextLong();
		long B = nextLong();
		long C = nextLong();
		long K = nextLong();

		long ans = 0;
		if(K%2==0){
			ans=A-B;
		}else{
			ans=B-A;
		}
		System.out.println(ans);

	}




	public static void check() throws Exception{
		if(in == null){
			in = new BufferedReader(new InputStreamReader(System.in));
		}
		if(Ws==null || Ws.length<=wsIndx){
			Ws = in.readLine().split(" ");
			wsIndx=0;
		}
	}
	public static int nextInt()throws Exception{
		check();
		return Integer.parseInt(Ws[wsIndx++]);
	}

	public static long nextLong()throws Exception{
		check();
		return Long.parseLong(Ws[wsIndx++]);
	}

	public static String nextString()throws Exception{
		check();
		return Ws[wsIndx++];
	}

	public static int[] nextInts()throws Exception{
		check();
		int[] tmp = new int[Ws.length];
		for(int i=0;i<tmp.length;i++){
			tmp[i]=Integer.parseInt(Ws[i]);
		}
		wsIndx=Ws.length;
		return tmp;
	}

	public static long[] nextLongs()throws Exception{
		check();
		long[] tmp = new long[Ws.length];
		for(int i=0;i<tmp.length;i++){
			tmp[i]=Long.parseLong(Ws[i]);
		}
		wsIndx=Ws.length;
		return tmp;
	}

	public static String[] nextStrings()throws Exception{
		check();
		wsIndx=Ws.length;
		return Ws;
	}


}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

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


int main(){
  ll a,b,c,k;
  cin >> a >> b >> c >> k;
  for(int i=0;i<k;i++){
    ll na=a,nb=b,nc=c;
    a = nb + nc;
    b = na + nc;
    c = na + nb;
    if( a - b > 1000000000000000000 ){
      cout << "Unfair" << enld;
      retrun 0;
    }
  }
  ll ans = a - b;
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:27: error: 'enld' was not declared in this scope
   17 |       cout << "Unfair" << enld;
      |                           ^~~~
a.cc:18:7: error: 'retrun' was not declared in this scope
   18 |       retrun 0;
      |       ^~~~~~
Language: C++

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

int main() {
  ll A, B, C, K;
  cin >> A >> B >> C >> K;
  
  ll ans;
  if (k % 2 == 0) {
    ans = A - B;
  }
  else {
    ans = B - A;
  }
  if (ans > 1000000000000000000 || ans < -1000000000000000000) {
    cout << "Unfair" << endl;
    return 0;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'k' was not declared in this scope
   10 |   if (k % 2 == 0) {
      |       ^
Language: C

#include<stdio.h>
int main(void){
  long int A=1000000000000000000;
  int a,b,c,k;
  scanf("%d%d%d%d",&a,&b,&c,&k);
  if(k%2==1&&A>=a-b&&-1*A=<a-b)
    printf("%ld",(long int)a-b);
  else if(k%2==0&&A>=(a-b)*-1&&-1*A=<(a-b)*-1)
    printf("%ld",(long int)(a-b)*-1);
  else
    printf("Unfair");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:27: error: expected expression before '<' token
    6 |   if(k%2==1&&A>=a-b&&-1*A=<a-b)
      |                           ^
main.c:8:37: error: expected expression before '<' token
    8 |   else if(k%2==0&&A>=(a-b)*-1&&-1*A=<(a-b)*-1)
      |                                     ^
Language: C++

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

#define rep(i,n) for(int i=0;i<n;i++)
#define REP(i,s,n) for(int i=(s);i<=(n);i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define REPR(i,s,n) for(int i=(s);i>=(n);i--)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
#define Eunique(v) v.erase(unique(all(v)),v.end())
#define Eback(s) s.erase(s.end()-1,s.end())
#define rev(v) reverse(all(v))
#define minvec(v) *min_element(all(v))
#define maxvec(v) *max_element(all(v))
#define pb push_back
#define pf push_front
#define mod 1000000007
#define m_p make_pair
#define DOUBLE fixed << setprecision(15)
#define OK puts("OK")
#define OK1 puts("OK1")
#define OK2 puts("OK2")
#define SIZE(s) (int)s.size()
#define INF ((1LL<<62)-(1LL<<31))
#define zero(x,n) setw(x) << setfill('0') << n

typedef long long ll;

typedef vector<int> vi;
typedef vector<long long> vll;
typedef vector<double> vd;
typedef vector<char> vc;
typedef vector<string> vs;

typedef vector<vi> vvi;
typedef vector<vll> vvll;
typedef pair<ll,ll> pll;
typedef pair<int,int> pii;
typedef vector<pair<int,int>> vpii;
typedef vector<pair<ll,ll>> vpll;

const double pi = acos(-1.0);

template<class A, class B>
ostream& operator<<(ostream& ost, const pair<A, B>&p) {
	ost << "{" << p.first << ", " << p.second << "} ";
	return ost;
}

template<class T>
ostream& operator<<(ostream& ost, const vector<T>&v) {
	ost << "{";
	for (int i = 0; i<(int)v.size(); i++) {
		if (i)ost << " ";
		ost << v[i];
	}
	ost << "} \n";
	return ost;
}

template<class A, class B>
ostream& operator<<(ostream& ost, const map<A, B>&v) {
	ost << "{";
	for (auto p:v) {
		ost << "{" << p.first << ", " << p.second << "} ";
	}
	ost << "} ";
	return ost;
}

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

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

ll gcd(ll x, ll y) {return __gcd(x,y);}
ll lcm(ll x, ll y) {return x/__gcd(x,y)*y;}

int main()
{
	ll a,b,c,k;
	cin >> a >> b >> c >> k;
	cout << (k%2?b-aa:a-b) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:84:24: error: 'aa' was not declared in this scope; did you mean 'a'?
   84 |         cout << (k%2?b-aa:a-b) << endl;
      |                        ^~
      |                        a
Language: C++

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

int main(){
  ll a,b,c,k;cin>>a>>>b>>c>>k;
  if(k%2==0)cout<<a-b;
  else cout<<b-a;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected primary-expression before '>' token
    9 |   ll a,b,c,k;cin>>a>>>b>>c>>k;
      |                      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
signed main(){
  int b=0,c=0,d=1,e,f=1000000,t,g[100000];
  int a;
  cin>>a>>b>>c>>d;
  for(int i=0;i<d;i++){
    e=a+b;
    f=a+c;
    t=b+c;
    a=t;
    b=f;
    c=e:
  }
  if() cout<<"Unfair";
  else cout<<a-b;
  cout<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: expected ';' before ':' token
   13 |     c=e:
      |        ^
      |        ;
a.cc:15:6: error: expected primary-expression before ')' token
   15 |   if() cout<<"Unfair";
      |      ^
Language: C

#include<stdio.h>

int main() {
  unsigned long long int a, b, c, ab, bc, ca, i=0, k;
  
  scanf("%lld %lld %lld %lld", &a, &b, &c, &k);
  
  do {
    ab = a + b;
    bc = b + c;
    ca = a + c;
    a = bc;
    b = ca;
    c = ab;
    i++;
  }while(i<k);
  
  x = a - b;
  
  if(x < 1000000000000000000) {
    printf("%lld", x);
  }
  else {
    puts("Unfair");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:3: error: 'x' undeclared (first use in this function)
   18 |   x = a - b;
      |   ^
main.c:18:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
#include <cmath>
using namespace std;
 
int main(){
  double A, B, C, K;
  
  cin >> A >> B >> C >> K;
  int ans = (K % 2 == 0 ? A - B : B - A);
  if (abs(ans) > pow(10.0, 18.0)) {
    cout << "Unfair" << endl;
  } else {
    cout << int(ans) << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |   int ans = (K % 2 == 0 ? A - B : B - A);
      |              ~ ^ ~
      |              |   |
      |              |   int
      |              double
Language: C++

#include <bits/stdc++.h>
#include <cmath>
using namespace std;
 
int main(){
  int A, B, C, K;
  
  cin >> A >> B >> C >> K;
  int ans = (K % 2 == 0 ? A - B : B - A);
  cout << ((abs(ans) > pow(10, 18))? "Unfair": ans) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:36: error: operands to '?:' have different types 'const char*' and 'int'
   10 |   cout << ((abs(ans) > pow(10, 18))? "Unfair": ans) << endl;
      |            ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#include <cmath>
using namespace std;
 
int main(){
  int A, B, C, K;
  
  cin >> A >> B >> C >> K;
  int ans = (K % 2 == 0 ? A - B : B - A);
  cout << (abs(ans) > pow(10, 18))? "Unfair": ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:51: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |   cout << (abs(ans) > pow(10, 18))? "Unfair": ans << endl;
      |                                               ~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
#include <cmath>
using namespace std;
 
int main(){
  int A, B, C, K;
  
  cin >> A >> B >> C >> K;
  int ans = (K % 2 == 0 ? A - B : B - A);
  cout << (abs(ans) > pow(10, 18) ? "Unfair" : ans) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: operands to '?:' have different types 'const char*' and 'int'
   10 |   cout << (abs(ans) > pow(10, 18) ? "Unfair" : ans) << endl;
      |            ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
tyoedef long long ll;

int main()
{
    ll a, b, c, k;
    cin >> a >> b >> c >> k;
    if(k % 2) cout << b - a << endl;
    else cout << a - b << endl;
}

Compiler output:
a.cc:3:1: error: 'tyoedef' does not name a type; did you mean 'typedef'?
    3 | tyoedef long long ll;
      | ^~~~~~~
      | typedef
a.cc: In function 'int main()':
a.cc:7:5: error: 'll' was not declared in this scope
    7 |     ll a, b, c, k;
      |     ^~
a.cc:8:12: error: 'a' was not declared in this scope
    8 |     cin >> a >> b >> c >> k;
      |            ^
a.cc:8:17: error: 'b' was not declared in this scope
    8 |     cin >> a >> b >> c >> k;
      |                 ^
a.cc:8:22: error: 'c' was not declared in this scope
    8 |     cin >> a >> b >> c >> k;
      |                      ^
a.cc:8:27: error: 'k' was not declared in this scope
    8 |     cin >> a >> b >> c >> k;
      |                           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before 'cout'
    8 |   else(k%2==1)cout << a-b << endl;
      |               ^~~~
      |               ;
Language: C++

#include <bits/stdc++.h>

#define ld long double
#define ll long long int
#define ull unsigned long long int

using namespace std;

int main() {
    long long  a, b, c, k;
    cin >> a >> b >> c >> k;
    for (int i = 0; i < N; ++i) {
        int ta = b + c;
        int tb = a + c;
        int tc = a + b;
        a = ta;
        b = tb;
        c = tc;
    }
    long long  ans = a - b;
    if (ans > 1000000000000000000){
        cout << "Unfair" <<endl;
        return  0;
    }
    cout << a - b << endl;

}

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

#include <iostream>
#include <vector>
#include <set>
#include <algorithm>
#include <math.h>
#include <string.h>
#include <map>
#include <numeric>
using namespace std;

int main()
{
  int A,B,C
  long long K;
  cin>>A>>B>>C>>K;
  if(K%2){
    cout<<B-A<<endl;
  }else{
    cout<<A-B<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected initializer before 'long'
   14 |   long long K;
      |   ^~~~
a.cc:15:14: error: 'C' was not declared in this scope
   15 |   cin>>A>>B>>C>>K;
      |              ^
a.cc:15:17: error: 'K' was not declared in this scope
   15 |   cin>>A>>B>>C>>K;
      |                 ^
Language: C++

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

 #define REP(i, a, n) for(int i=a; i<n; i++)

int main() {
	longlong a, b, c, k;
	cin >> a >> b >> c >> k;
  	if(k%2==0){
      cout << a-b << endl;
    }else{
      cout << b-a << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'longlong' was not declared in this scope
    7 |         longlong a, b, c, k;
      |         ^~~~~~~~
a.cc:8:16: error: 'a' was not declared in this scope
    8 |         cin >> a >> b >> c >> k;
      |                ^
a.cc:8:21: error: 'b' was not declared in this scope
    8 |         cin >> a >> b >> c >> k;
      |                     ^
a.cc:8:26: error: 'c' was not declared in this scope
    8 |         cin >> a >> b >> c >> k;
      |                          ^
a.cc:8:31: error: 'k' was not declared in this scope
    8 |         cin >> a >> b >> c >> k;
      |                               ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  long long a,b,c,k;
  cin >> a >> b >> c >> k;
  if(abs(c - b) >= 1e18)cout << "Unfair" << endl;
  else cout << c - b << endl;
}1

Compiler output:
a.cc:9:2: error: expected unqualified-id before numeric constant
    9 | }1
      |  ^
Language: C++

#inclide <iostream>

int main(){
  long long a,b,c,k;
  cin >> a >> b >> c >> k;
  if(c - b > 1e18)cout << "Unfair" << endl;
  else cout << c - b << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> a >> b >> c >> k;
      |   ^~~
a.cc:6:19: error: 'cout' was not declared in this scope
    6 |   if(c - b > 1e18)cout << "Unfair" << endl;
      |                   ^~~~
a.cc:6:39: error: 'endl' was not declared in this scope
    6 |   if(c - b > 1e18)cout << "Unfair" << endl;
      |                                       ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope
    7 |   else cout << c - b << endl;
      |        ^~~~
a.cc:7:25: error: 'endl' was not declared in this scope
    7 |   else cout << c - b << endl;
      |                         ^~~~
Language: C++

#include <bits/stdc++.h>
#define ALL(v) v.begin(), v.end()
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long ll;

int main() {
ll a,b,c; cin>>a>>b>>c;
  ll k cin>>k;
  if(k%2==1){
    cout<<b-a<<endl;}
  else cout<<a-b<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected initializer before 'cin'
    9 |   ll k cin>>k;
      |        ^~~
a.cc:10:6: error: 'k' was not declared in this scope
   10 |   if(k%2==1){
      |      ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a, b, c, k;
  cin >> a >> b >> c >> k;
  cout << (a-b)(-1)**k << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expression cannot be used as a function
    6 |   cout << (a-b)(-1)**k << endl;
      |           ~~~~~^~~~
a.cc:6:21: error: invalid type argument of unary '*' (have 'int')
    6 |   cout << (a-b)(-1)**k << endl;
      |                     ^~
Language: C++

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

int main() {
  long long int a,b,c,k,bb;
  cin>>a>>b>>c>>k;
  for(long long int i=0;i<k;i++){
    bb=b;
    b=a;
    a=b
    if(abs(a-b)>=1000000000000000000){
      cout<<"Unfair"<<endl;
      return 0;
    }
  }
  cout<<a-b<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected ';' before 'if'
   10 |     a=b
      |        ^
      |        ;
   11 |     if(abs(a-b)>=1000000000000000000){
      |     ~~
Language: Java

import java.util.*;
public class Main{
    public static void main(String[]$){
        Scanner i=new Scanner(System.in);
        long a=i.nextLong(),b=i.nextLong(),c=i.nextLong()k=i.nextLong();
        System.out.println(b-a);
    }
}


Compiler output:
Main.java:5: error: ';' expected
        long a=i.nextLong(),b=i.nextLong(),c=i.nextLong()k=i.nextLong();
                                                         ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
const long long INF = (long long) 1e18;
int main(){
  int a, b, c, k;˜
  cin >> a >> b >> c>> k;
  if(abs(a-b) > INF){
    cout << 'Unfair' << endl;
    return 0;
  }
  if(k%2 == 1) cout << b-a << endl;
  else cout << a-b << endl;
  return 0;
}


Compiler output:
a.cc:8:13: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    8 |     cout << 'Unfair' << endl;
      |             ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:18: error: '\U000002dc' was not declared in this scope
    5 |   int a, b, c, k;˜
      |                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	long long a, b, c, k; cin >> a >> b >> c >> k;
	long long NUM_T = a, NUM_N = b, NUM_H = c;
	long long ans = NUM_T - NUM_N;
	for (int i = 0; i < k; i++) {
		long long	original_NUM_T = NUM_T, original_NUM_N = NUM_N, original_NUM_H = NUM_H;
		NUM_T = original_NUM_N + original_NUM_H;
		NUM_N = original_NUM_T + original_NUM_H;
		NUM_H = original_NUM_T + original_NUM_N;
		ans = NUM_T - NUM_N;
		if (abs(ans) >= 1e18) {
			cout << "Unfair" << endl;
			return 0;
		}
	}
	
	else {
		cout << ans << endl;
		return 0;
	}
}

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

#include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(),a.end()
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define limit(x,l,r) max(l,min(x,r))
#define lims(x,l,r) (x = max(l,min(x,r)))
#define isin(x,l,r) ((l) <= (x) && (x) < (r))
#define pb push_back
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define uni(x) x.erase(unique(rng(x)),x.end())
#define snuke srand((unsigned)clock()+(unsigned)time(NULL));
#define show(x) cout<<#x<<" = "<<x<<endl;
#define PQ(T) priority_queue<T,v(T),greater<T> >
#define bn(x) ((1<<x)-1)
#define dup(x,y) (((x)+(y)-1)/(y))
#define newline puts("")
#define v(T) vector<T>
#define vv(T) v(v(T))
using namespace std;
typedef long long int ll;
typedef unsigned uint;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<P> vp;
inline int in() { int x; scanf("%d",&x); return x;}
template<typename T>inline istream& operator>>(istream&i,v(T)&v)
{rep(j,sz(v))i>>v[j];return i;}
template<typename T>string join(const v(T)&v)
{stringstream s;rep(i,sz(v))s<<' '<<v[i];return s.str().substr(1);}
template<typename T>inline ostream& operator<<(ostream&o,const v(T)&v)
{if(sz(v))o<<join(v);return o;}
template<typename T1,typename T2>inline istream& operator>>(istream&i,pair<T1,T2>&v)
{return i>>v.fi>>v.se;}
template<typename T1,typename T2>inline ostream& operator<<(ostream&o,const pair<T1,T2>&v)
{return o<<v.fi<<","<<v.se;}
template<typename T>inline ll suma(const v(T)& a) { ll res(0); for (auto&& x : a) res += x; return res;}
const double eps = 1e-10;
const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;
#define dame { puts("-1"); return 0;}
#define yn {puts("YES");}else{puts("NO");}
const int MX = 200005;

    // 整数スキャン（複数）
    /*
    int x;
    scanf("%d",&x);
    int y;
    scanf("%d",&y);
    int z;
    scanf("%d",&y);

    // n個の整数のスキャン
    /*
    ll a[n] = {};
    rep(i,n){
        scanf("%lld",&a[i]);
    }
    */

    // 文字列スキャン
    /*
    string s;
    cin >> s;
    */


int main() {
    
    int x;
    scanf("%d",&x);
    int y;
    scanf("%d",&y);
    int z;
    scanf("%d",&y);
    int n;
    scanf("%d",&n);

    int ans = 0;

    if(k%2==0){
        ans=x-y;
    }else{
        ans=y-x;
    }

    cout << ans << endl;
   
    return 0;
}
 
 


Compiler output:
a.cc: In function 'int main()':
a.cc:91:8: error: 'k' was not declared in this scope
   91 |     if(k%2==0){
      |        ^
Language: C++

#include <iostream>
#include<vector>
#include<algorithm>
#include<string>
using namespace std;
#define REP(i,n) for(int i=0;i<n;i++)
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define INF 1000000000
const long long long int mod=1000000000000000000
int main(){
cin.tie(0);
ios::sync_with_stdio(false);

	long long long int A,B,C,K;
	cin>>A>>B>>C>>K;
	if(K%2==0){
		cout<<A-B<<endl;
		return 0;
	}
	else{
		cout<<C-A<<endl;
		return 0;
	}
}

Compiler output:
a.cc:9:17: error: 'long long long' is too long for GCC
    9 | const long long long int mod=1000000000000000000
      |                 ^~~~
a.cc:10:1: error: expected ',' or ';' before 'int'
   10 | int main(){
      | ^~~
Language: C++

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

int main(){
  int a,b,c,k;cin>>a>>b>>c>>k;
  if(abs(a-b)<1000000000000000000)cout<<(k%2==0?a-b:b-a)<<endl;
  else cout<<"unfair"<<endl;
}



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

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

typedef unsigned long long ull;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<double, double> pdd;
const ull mod = 1e9 + 7;
#define REP(i,n) for(int i=0;i<(int)n;++i)

//debug
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

template < typename T >
void vprint(T &v){
	REP(i, v.size()){
		cout << v[i] << " ";
	}
	cout << endl;
}

int main(){
	ll A, B, C, K;
	cin >> A >> B >> C >> K;

	if(K%2==0){
		cout << A-B << endl;
	}else{
		cout << B - A << Endl;
	}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:34: error: 'Endl' was not declared in this scope
   31 |                 cout << B - A << Endl;
      |                                  ^~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>

using namespace std;

const int mod = 998244353;
const int maxn = 500010;
typedef long long ll;

int N, K;
int jc[maxn], ijc[maxn], inv[maxn];

int C(int n, int m) {
    if (n < m) return 0;
 	return 1ll*jc[n]*ijc[m]*ijc[n-m];   
}

int cal(int n, int m, int T) {
 	return ((C(n+m, n)-C(n+m,m-T-1))%mod+mod)%mod;   
}

int main() {
    scanf("%d%d", &N, &K);
   	inv[1] = 1; jc[0] = ijc[0] = jc[1] = ijc[1] = 1;
    for (int i = 2; i <= N; i++) {
     	inv[i] = mod-1ll*(mod/i)*inv[mod%i]%mod;
        jc[i] = 1ll*jc[i-1]*i%mod;
        ijc[i] = 1ll*ijc[i-1]*inv[i]%mod;
    }
    int ans = 0;
    for (int R = 0; R <= K; R++) {
        int B = k-R;
        if (R == B) {
            if (K >= 2*N) {
                ans = (ans + cal(R, B-1, (K-2*N)/2))%mod;
            }
        } else if (R > B) {
            if (2*N-(R-B) <= K) {
             	ans = (ans + cal(R, B, R-N))%mod;   
            }
        }
    }
    printf("%d\n", ans);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:17: error: 'k' was not declared in this scope
   34 |         int B = k-R;
      |                 ^
Language: C

#include<stdio.h>

int main(){
	long long A,B,C,K;
	scanf("%lld%lld%lld%lld",&A,&B,&C,&K);
	if(K%2==0)printf("%lld\n",a-b);
	else printf("%lld\n",b-a);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:35: error: 'a' undeclared (first use in this function)
    6 |         if(K%2==0)printf("%lld\n",a-b);
      |                                   ^
main.c:6:35: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:37: error: 'b' undeclared (first use in this function)
    6 |         if(K%2==0)printf("%lld\n",a-b);
      |                                     ^
Language: C++

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

#define int long long

signed main() {
    int a,b,c;
    int k;
    cin >> a >> b >> c >> k;
    if(k%2)cout << b-a;
    else cout << b-
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected primary-expression before 'return'
   12 |         return 0;
      |         ^~~~~~
Language: C++

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

#define int long long

signed main() {
    int a,b,c;
    int k;
    cin >> a >> b >> c >> k;
    if(k == 0)cout << a-b;
    else cout << b-
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected primary-expression before 'return'
   12 |         return 0;
      |         ^~~~~~
Language: C++

#include <iostream>

int a, b, c;
long k;
int main() {
  cin >> a >> b >> c >> k;
  cout << (k % 2 == 0 ? 1 : -1) * (a - b) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c >> k;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << (k % 2 == 0 ? 1 : -1) * (a - b) << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:46: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << (k % 2 == 0 ? 1 : -1) * (a - b) << 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 <iostream>
#include <cmath
#include <vector>
using namespace std;
//絶対値
int abs(int x) {
				return max(x,-x);
}
  
int main() {
  int a,b,c,k;
  cin >>a>>b>>c>>k;
  if (k%2==0) cout <<a-b;
  else cout <<b-a;
}

Compiler output:
a.cc:2:16: error: missing terminating > character
    2 | #include <cmath
      |                ^
Language: C

#include <stdio.h>

int main()
{
    long long int a, b, c, k;
    long long int d, e, f, g, i;
    
    scanf("%d %d %d %d", &a, &b, &c, &k);
    
    if (k % 2 == 0) {
        printf("%lli", a - b);
    }
    else {
        printf("%lli," b - a);
    }
    
    if (g > 10000000000000000000) {
        printf("Unfair");
    }
    printf("%d", g);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:23: error: expected ')' before 'b'
   14 |         printf("%lli," b - a);
      |               ~       ^~
      |                       )
main.c:17:13: warning: integer constant is so large that it is unsigned
   17 |     if (g > 10000000000000000000) {
      |             ^~~~~~~~~~~~~~~~~~~~
Language: Java

class TaskA {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
        long k = sc.nextLong();
        if (k % 2 == 0) {
            System.out.println(a - b);
        } else {
            System.out.println(b - a);
        }
    }
}

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

import java.util.Scanner;

public class TaskA {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
        long k = sc.nextLong();
        if (k % 2 == 0) {
            System.out.println(a - c);
        } else {
            System.out.println(c - a);
        }
    }
}

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

#include <iostream>
using namespace std;
int main(){
    int a,b,c;
    long long n;
    if (k%2){
        cout << b-a << endl;
    }else {
        cout << a-b << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'k' was not declared in this scope
    6 |     if (k%2){
      |         ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include<vector>
#include<math.h>
#include<string>
#include<iomanip>
using namespace std;
int main()
{
    long long A,B,C,K;    cin>>A>>B>>C>>K;
    if(A==B&&B==C&&C==A){
        cout<<"0"<<endl;
        return 0;
    }
    if(K==0){
        cout<<A-B<<endl;
        return 0;
    }
    long long ans=K*(A-B);
    long long num=1000000000000000000;
    if(ans<0){
        if(num<-1*ans){
            cout<<"Unfair"<<endl;
            retrurn 0;
        }
    }
    if(ans>0){
        if(num<ans){
            cout<<"Unfair"<<endl;
            return 0;
        }
    }
    cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:13: error: 'retrurn' was not declared in this scope
   25 |             retrurn 0;
      |             ^~~~~~~
Language: Java

import java.util.*;
import java.io.*;
import java.lang.*;
public class Sample{
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(); long k=sc.nextLong();
    if(k%2==0)
      System.out.println(a-b);
    else 
      System.out.println(b-a);
  }
}

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

import java.util.*;
import java.io.*;
import java.lang.*;
public class Sample{
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(); long k=sc.nextLong();
    if(k%2==0)
      System.out.println(b-a);
    else 
      System.out.println(a-b);
  }
}

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

#include <cmath>
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <set>
#include <map>
#include <list>
#include <time.h>
#include <math.h>
#include <random>
#include <deque>
#include <queue>
#include <cassert>
#include <unordered_map>
#include <unordered_set>
#include <iomanip>
#include <bitset>
#include <sstream>

using namespace std;

typedef long long ll;

mt19937 rnd(228);

int main()
{
#ifdef ONPC
    freopen("a.in", "r", stdin);
#endif
    ios::sync_with_stdio(0);
    cin.tie(0);
    ll a, b, c;
    cin >> a >> b >> c;
    ll k;
    cin >> k;
    if (k > 10000)
    {
        cout << "Unfair\n";
        return 0;
    }
    for (int i = 0; i < k; i++)
    {
        ll x = b + c, y = a + c, z = a + b;
        a = x, b = y, c = z;
    }
    cout << a - b << '\n';
}
#include <cmath>
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <set>
#include <map>
#include <list>
#include <time.h>
#include <math.h>
#include <random>
#include <deque>
#include <queue>
#include <cassert>
#include <unordered_map>
#include <unordered_set>
#include <iomanip>
#include <bitset>
#include <sstream>

using namespace std;

typedef long long ll;

mt19937 rnd(228);

int main()
{
#ifdef ONPC
    freopen("a.in", "r", stdin);
#endif
    ios::sync_with_stdio(0);
    cin.tie(0);
    ll a, b, c;
    cin >> a >> b >> c;
    ll k;
    cin >> k;
    if (k > 10000)
    {
        cout << "Unfair\n";
        return 0;
    }
    for (int i = 0; i < k; i++)
    {
        ll x = b + c, y = a + c, z = a + b;
        a = x, b = y, c = z;
    }
    cout << a - b << '\n';
}


Compiler output:
a.cc:74:9: error: redefinition of 'std::mt19937 rnd'
   74 | mt19937 rnd(228);
      |         ^~~
a.cc:25:9: note: 'std::mt19937 rnd' previously declared here
   25 | mt19937 rnd(228);
      |         ^~~
a.cc:76:5: error: redefinition of 'int main()'
   76 | int main()
      |     ^~~~
a.cc:27:5: note: 'int main()' previously defined here
   27 | int main()
      |     ^~~~
Language: C++

int main() {
    long long A, B, C, K;
    cin >> A >> B >> C >> K;
    
    if (K % 2 == 0) cout << A - B << endl;
    else cout << B - A << endl;

   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> A >> B >> C >> K;
      |     ^~~
a.cc:5:21: error: 'cout' was not declared in this scope
    5 |     if (K % 2 == 0) cout << A - B << endl;
      |                     ^~~~
a.cc:5:38: error: 'endl' was not declared in this scope
    5 |     if (K % 2 == 0) cout << A - B << endl;
      |                                      ^~~~
a.cc:6:10: error: 'cout' was not declared in this scope
    6 |     else cout << B - A << endl;
      |          ^~~~
a.cc:6:27: error: 'endl' was not declared in this scope
    6 |     else cout << B - A << endl;
      |                           ^~~~
Language: C++

import xlwt, json, urllib.request

def getDate():
    page = urllib.request.urlopen("http://contests.acmicpc.info/contests.json")
    return page.read().decode()

def getJson(s):
    j = json.loads(s)
    return j

def writeExcel(header, v):
    wb = xlwt.Workbook()
    ws = wb.add_sheet('Sheet1')
    for c in range(len(header)):
        ws.write(0, c, header[c])
        for r in range(len(v)):
            ws.write(r+1, c, v[r][header[c]])
    wb.save('Recent contests.xls')

header = ['oj', 'name', 'link', 'start_time', 'week', 'access']
writeExcel(header, getJson(getDate()))



Compiler output:
a.cc:13:23: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   13 |     ws = wb.add_sheet('Sheet1')
      |                       ^~~~~~~~
a.cc:18:13: warning: multi-character literal with 19 characters exceeds 'int' size of 4 bytes
   18 |     wb.save('Recent contests.xls')
      |             ^~~~~~~~~~~~~~~~~~~~~
a.cc:20:11: warning: multi-character character constant [-Wmultichar]
   20 | header = ['oj', 'name', 'link', 'start_time', 'week', 'access']
      |           ^~~~
a.cc:20:17: warning: multi-character character constant [-Wmultichar]
   20 | header = ['oj', 'name', 'link', 'start_time', 'week', 'access']
      |                 ^~~~~~
a.cc:20:25: warning: multi-character character constant [-Wmultichar]
   20 | header = ['oj', 'name', 'link', 'start_time', 'week', 'access']
      |                         ^~~~~~
a.cc:20:33: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
   20 | header = ['oj', 'name', 'link', 'start_time', 'week', 'access']
      |                                 ^~~~~~~~~~~~
a.cc:20:47: warning: multi-character character constant [-Wmultichar]
   20 | header = ['oj', 'name', 'link', 'start_time', 'week', 'access']
      |                                               ^~~~~~
a.cc:20:55: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   20 | header = ['oj', 'name', 'link', 'start_time', 'week', 'access']
      |                                                       ^~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import xlwt, json, urllib.request
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long a = sc.nextLong();
        long b = sc.nextLong();
        long c = sc.nextLong();
        long k = sc.nextLong();

        long result = a-b;
        if (Math.abs(result) > 1000000000000000000L)
            System.out.println("Unfair");
        else if (k%2 == 0)
            System.out.println(result);
        else
            System.out.println(-result);
        }
    }
}


Compiler output:
Main.java:20: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.*;

public class P024A {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long a = sc.nextLong();
        long b = sc.nextLong();
        long c = sc.nextLong();
        long k = sc.nextLong();

        long result = a-b;
        if (a==b && a==c)
            System.out.println(result);
        else {
            if (k>0) {
                for (long i=0; i<k; i++) {
                    long a2 = b+c;
                    long b2 = a+c;
                    long c2 = a+b;
                    a = a2;
                    b = b2;
                    c = c2;
                }
            }
            if (Math.abs(result) > 1000000000000000000L)
                System.out.println("Unfair");
            else
                System.out.println(a-b);
        }
    }
}

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

#include<bits/stc++.h>
using namespace std;
typedef long long ll;
ll a,b,c,k;
int main(){
  cin >> a >> b >> c >> k;
  cout << (a-b)*(1-k%2*2) << endl;
  return 0;
}
  

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