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

#include<iostream>
using namespace std;

int main(){
	int A,B,C,K;
	cin>>A>>B>>C>>K;
	int h=A-B;
	int j=B-A;
	while(K){
	if(K%2==0){
		cout<<h<<endl;
	}
		}
		while(K){
		if(K%2==1){
			cout<<j<<endl;
		}
	}
		int abs(h)=u;
		int abs(j)=o;
		if(u>1000000000000000000){
		cout<<"unfair"<<endl;
	}if(o>1000000000000000000){
		cout<<"unfair"<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: expected ',' or ';' before '=' token
   19 |                 int abs(h)=u;
      |                           ^
a.cc:20:21: error: redeclaration of 'int abs'
   20 |                 int abs(j)=o;
      |                     ^~~
a.cc:19:21: note: 'int abs' previously declared here
   19 |                 int abs(h)=u;
      |                     ^~~
a.cc:21:20: error: 'u' was not declared in this scope
   21 |                 if(u>1000000000000000000){
      |                    ^
a.cc:23:13: error: 'o' was not declared in this scope
   23 |         }if(o>1000000000000000000){
      |             ^
Language: C++

#include<iostream>
using namespace std;

int main(){
	int A,B,C,K;
	cin>>A>>B>>C>>K;
	int h=A-B;
	int j=B-A;
	while(K){
	if(K%2==0){
		cout<<h<<endl;
	}
		}
		while(K){
		if(K%2==1){
			cout<<j<<endl;
		}
	}
		int abs(int h)=u;
		int abs(int j)=o;
		if(u>1000000000000000000){
		cout<<"unfair"<<endl;
	}if(o>1000000000000000000){
		cout<<"unfair"<<endl;
	}
	return 0;
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:19:30: warning: declaration of 'int abs(int)' has 'extern' and is initialized
   19 |                 int abs(int h)=u;
      |                              ^
a.cc:19:33: error: invalid pure specifier (only '= 0' is allowed) before ';' token
   19 |                 int abs(int h)=u;
      |                                 ^
a.cc:19:21: error: function 'int abs(int)' is initialized like a variable
   19 |                 int abs(int h)=u;
      |                     ^~~
a.cc:20:30: warning: declaration of 'int abs(int)' has 'extern' and is initialized
   20 |                 int abs(int j)=o;
      |                              ^
a.cc:20:33: error: invalid pure specifier (only '= 0' is allowed) before ';' token
   20 |                 int abs(int j)=o;
      |                                 ^
a.cc:20:21: error: function 'int abs(int)' is initialized like a variable
   20 |                 int abs(int j)=o;
      |                     ^~~
a.cc:21:20: error: 'u' was not declared in this scope
   21 |                 if(u>1000000000000000000){
      |                    ^
a.cc:23:13: error: 'o' was not declared in this scope
   23 |         }if(o>1000000000000000000){
      |             ^
Language: C++

#include<iostream>
using namespace std;

int main(){
	int A,B,C,K;
	cin>>A>>B>>C>>K;
	int h=A-B;
	int j=B-A;
	while(K){
	if(K%2==0){
		cout<<h<<endl;
	}
		}
		while(K){
		if(K%2==1){
			cout<<j<<endl;
		}
	}if{int abs(int h);>1000000000000000000}{
		cout<<"unfair"<<endl;
	}if{int abs(int j);>1000000000000000000}{
		cout<<"unfair"<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: expected '(' before '{' token
   18 |         }if{int abs(int h);>1000000000000000000}{
      |            ^
      |            (
a.cc:20:12: error: expected '(' before '{' token
   20 |         }if{int abs(int j);>1000000000000000000}{
      |            ^
      |            (
Language: C++

#include<iostream>
using namespace std;

int main(){
	int A,B,C,K;
	cin>>A>>B>>C>>K;
	int h=A-B;
	int j=B-A;
	while(K){
	if(K%2==0){
		cout<<h<<endl;
	}
		}
		while(K){
		if(K%2==1){
			cout<<j<<endl;
		}
	}if{int abs(int h);>1000000000000000000}{
		cout<<"unfair"<<endl;
	}if{int abs(int h);>1000000000000000000}{
		cout<<"unfair"<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: expected '(' before '{' token
   18 |         }if{int abs(int h);>1000000000000000000}{
      |            ^
      |            (
a.cc:20:12: error: expected '(' before '{' token
   20 |         }if{int abs(int h);>1000000000000000000}{
      |            ^
      |            (
Language: C++

#include<iostream>
using namespace std;

int main(){
	int A,B,C,K;
	cin>>A>>B>>C>>K;
	if(K%2==0){
		cout<<A-B<<endl;
		}if(K%2==1){
			cout<<B-A<<endl;
	}if(ans>1000000000000000000){
		cout<<"unfair"<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |         }if(ans>1000000000000000000){
      |             ^~~
      |             abs
Language: C++

#include<iostream>
using namespace std;

int main(){
	int A,B,C,K;
	cin>>A>>B>>C>>K;
	if(K%2=0){
		cout<<A-B<<endl;
		}if(K%2=1){
			cout<<B-A<<endl;
	}if(ans>1000000000000000000){
		cout<<"unfair"<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: lvalue required as left operand of assignment
    7 |         if(K%2=0){
      |            ~^~
a.cc:9:22: error: lvalue required as left operand of assignment
    9 |                 }if(K%2=1){
      |                     ~^~
a.cc:11:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |         }if(ans>1000000000000000000){
      |             ^~~
      |             abs
Language: C++

#include <iostream>
#include <string>
#include <algoritthm>
using namespace std;
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;
	return 0;
}

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

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    int k = sc.nextInt();
    for(int j = 0; j < k; j++){
      int a_ = a;
      int b_ = b;
      
      a = b + c;
      b = c + a_;
      c = a_ + b_;
    }
    
    (a - b >= 0) ? if(a - b > 1000000000000000000) System.out.println("Unfair");
                   else System.out.println(a - b);
                 : if(b - a > 1000000000000000000) System.out.println("Unfair");
                   else System.out.println(b - a);
  }
}

Compiler output:
Main.java:18: error: illegal start of expression
    (a - b >= 0) ? if(a - b > 1000000000000000000) System.out.println("Unfair");
                   ^
Main.java:18: error: not a statement
    (a - b >= 0) ? if(a - b > 1000000000000000000) System.out.println("Unfair");
                 ^
Main.java:18: error: integer number too large
    (a - b >= 0) ? if(a - b > 1000000000000000000) System.out.println("Unfair");
                              ^
Main.java:20: error: illegal start of expression
                 : if(b - a > 1000000000000000000) System.out.println("Unfair");
                 ^
Main.java:20: error: integer number too large
                 : if(b - a > 1000000000000000000) System.out.println("Unfair");
                              ^
5 errors
Language: C++

#include<bits/stdc++.h>
#include <assert.h>
using namespace std;
#define rep(a,b,c) for(int a=b;a<=c;a++)
#define ll long long 
#define sum(a,b) a=a+b


int main() {

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:
a.cc: In function 'int main()':
a.cc:11:30: error: 'a' was not declared in this scope
   11 | scanf("%lld %lld %lld %lld",&a,&b,&c,&k);
      |                              ^
a.cc:11:33: error: 'b' was not declared in this scope
   11 | scanf("%lld %lld %lld %lld",&a,&b,&c,&k);
      |                                 ^
a.cc:11:36: error: 'c' was not declared in this scope
   11 | scanf("%lld %lld %lld %lld",&a,&b,&c,&k);
      |                                    ^
a.cc:11:39: error: 'k' was not declared in this scope
   11 | scanf("%lld %lld %lld %lld",&a,&b,&c,&k);
      |                                       ^
Language: C++

A,B,C,K=map(int,input().split())
takahashi=A
nakahashi=B
teihashi=C
takahashi1=0
nakahashi1=0
teihashi1=0

if A==B and B==C:
    print("0")
else:
    for i in range(K):
        takahashi1=nakahashi+teihashi
        nakahashi1=takahashi+teihashi
        teihashi1=takahashi+nakahashi
        takahashi=takahashi1
        nakahashi=nakahashi1
        teihashi=teihashi1
    print(takahashi-nakahashi)

Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A,B,C,K=map(int,input().split())
      | ^
Language: C++

var a,b,c,d:int64;begin read(a,b,c,d);if odd(d)then write(b-a)else write(a-b)end.

Compiler output:
a.cc:1:1: error: 'var' does not name a type
    1 | var a,b,c,d:int64;begin read(a,b,c,d);if odd(d)then write(b-a)else write(a-b)end.
      | ^~~
a.cc:1:19: error: 'begin' does not name a type
    1 | var a,b,c,d:int64;begin read(a,b,c,d);if odd(d)then write(b-a)else write(a-b)end.
      |                   ^~~~~
a.cc:1:39: error: expected unqualified-id before 'if'
    1 | var a,b,c,d:int64;begin read(a,b,c,d);if odd(d)then write(b-a)else write(a-b)end.
      |                                       ^~
Language: C++

#define<bits/stdc++.h>
 
using namespace std;
 
 
int main()
{
   long long int 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:
a.cc:1:8: error: macro names must be identifiers
    1 | #define<bits/stdc++.h>
      |        ^
a.cc: In function 'int main()':
a.cc:9:4: error: 'scanf' was not declared in this scope
    9 |    scanf("%lld %lld %lld %lld",&a,&b,&c,&k);
      |    ^~~~~
a.cc:10:15: error: 'printf' was not declared in this scope
   10 |    if(k%2==0) printf("%lld\n",a-b);
      |               ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #define<bits/stdc++.h>
a.cc:11:9: error: 'printf' was not declared in this scope
   11 |    else printf("%lld\n",b-a);
      |         ^~~~~~
a.cc:11:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#define<bits/stdc++.h>

using namespace std;


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:
a.cc:1:8: error: macro names must be identifiers
    1 | #define<bits/stdc++.h>
      |        ^
a.cc: In function 'int main()':
a.cc:9:4: error: 'scanf' was not declared in this scope
    9 |    scanf("%lld %lld %lld %lld",&a,&b,&c,&k);
      |    ^~~~~
a.cc:10:15: error: 'printf' was not declared in this scope
   10 |    if(k%2==0) printf("%lld\n",a-b);
      |               ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #define<bits/stdc++.h>
a.cc:11:9: error: 'printf' was not declared in this scope
   11 |    else printf("%lld\n",b-a);
      |         ^~~~~~
a.cc:11:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <iostream>
using namesapce std;
int main (){
	int A,B,C,K,m,n;
	cin>>A>>B>>C>>K;
	for (int i=0;i<K;i++){
		m=A;
		n=B;
		A=B+C;
		B=m+C;
		C=m+n;
	}
	cout<<A-B<<endl;
	return 0;
}
		

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         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:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         cout<<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:13:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |         cout<<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>
#inculde<string>

using namespace std;

int main()
{
	long long a,b,c,k,i;
	cin >> a >> b >> c >> k;

	if(k%2 == 1)
		cout << a-b << endl;
	else
		cout << b-a << endl;
	
	return 0;
}	

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inculde; did you mean #include?
    2 | #inculde<string>
      |  ^~~~~~~
      |  include
Language: C++

#include<iostream>
#incude<string>

using namespace std;

int main()
{
	long long a,b,c,k,i;
	cin >> a >> b >> c >> k;

	if(k%2 == 1)
		cout << a-b << endl;
	else
		cout << b-a << endl;
	
	return 0;
}	

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incude; did you mean #include?
    2 | #incude<string>
      |  ^~~~~~
      |  include
Language: C++

#include<iostream>
#incude<string>

using namespace std;

int main()
{
	long long a,b,c,k,i;
	cin >> a >> b >> c >> k;

	if(k%2)
		cout << a-b << endl;
	else
		cout << b-a << endl;
	
	return 0;
}	

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incude; did you mean #include?
    2 | #incude<string>
      |  ^~~~~~
      |  include
Language: C++

#include<iostream>

using namespace std;
typedef long long ll
int main(){
ll a,b,c, k;
cin>>a>>b>>c>>k;
int ret = k%2==0? a-b : b-a;
cout<<ret<<endl;
return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
int main(){
    ll a,b,c,x;
    scanf("%lld%lld%lld%lld", &a, &b, &c, &x);
    if(x >= 2){
        puts("0");
        return 0;
    }
    else if(x==0){
        ll ans = a-b;
    } else if(x==1){
        ll ans = b-a;
    }

    //if(abs(ans) > 1000000000000000000) puts("unfair");
    printf("%lld\n", ans);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:22: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |     printf("%lld\n", ans);
      |                      ^~~
      |                      abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
int main(){
    ll a,b,c,x;
    scanf("%lld%lld%lld%lld", &a, &b, &c, &x);
    if(x >= 2){
        puts("0");
        return 0;
    }
    else if(x==0){
        ll ans = a-b;
    } else if(x==1){
        ll ans = b-a;
    }

    if(abs(ans) > 1000000000000000000) puts("unfair");
    else printf("%lld\n", ans);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |     if(abs(ans) > 1000000000000000000) puts("unfair");
      |            ^~~
      |            abs
Language: C++

///
// File:  a.go
// Author: ymiyamoto
//
// Created on Tue May 22 22:13:49 2018
//
package main

import (
	"fmt"
)

var A, B, C, K int64

func main() {
	fmt.Scan(&A, &B, &C, &K)
	if K%2 == 0 {
		fmt.Println(A - B)
	} else {
		fmt.Println(B - A)
	}
}


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

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin>>a>>b>>c>>k;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:20: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         if(k%2==1) cout<<b-a<<endl;
      |                    ^~~~
      |                    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         if(k%2==1) cout<<b-a<<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:7:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         else cout<<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:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         else cout<<a-b<<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 <vector>

using namespace std;

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

int main(void)
{
	ll A, B, C, K;
	cin >> A >> B >> C >> K;
	
	cout << B - A << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope
   12 |         cin >> A >> B >> C >> K;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <vector>
  +++ |+#include <iostream>
    2 | 
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << B - A << endl;
      |         ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:26: error: 'endl' was not declared in this scope
   14 |         cout << B - A << endl;
      |                          ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <vector>
  +++ |+#include <ostream>
    2 |
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
long long k;
cin>>a>>b>>c>>k;
cout<<(k&1)?b-a:a-b<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 | cout<<(k&1)?b-a:a-b<<endl;
      |                 ~~~^~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include <numeric>
#include <utility>
#include <cmath>
#include <vector>
#include <list>
#include <set>
#include <stack>
#include <functional>
#include <ctime>
#include <queue>
#include <string>
#include <map>
#include <utility>
#include <sstream>
#include <cmath>
#define MAX_U   10
#define MIN_U   0
#define rep(i,n) for(int i=0;i<n;i++)
#define pb push_back
#define form(i,a,b) for(int i=(a);i<(b);i++)
#define sz(x) ((int)(x).size())
#define CLR(a) memset((a), 0 ,sizeof(a))
using namespace std;
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vii;
typedef vector<char> vc;
typedef vector<string> vs;
typedef queue<int> qi;
const int INF=numeric_limits<int>::infinity();
void printa(){cout<<"\n";}
template<class T, class... A>void printa(const T&first,const A&... rest){cout<<first;printa(rest...);}
template<class... A>void printa(const A&... rest){printa(rest...);}
void prints(){cout<<" ";}
template<class T, class... A>void prints(const T&first,const A&... rest){cout<<first;prints(rest...);}
template<class... A>void prints(const A&... rest){prints(rest...);}
int factorial(int x){int f=1;for(int i=1;i<x+1;i++)f=f*i;return f;}
int sigma(int x){int s;for(int i=1;i<x+1;i++)s=s+i;return s;}
int middle(int x){if(x%2==0)return x/2;else return x/2+1;}
double heron(int a,int b,int c){double s;s=(a+b+c)/2;return sqrt(s*(s-a)*(s-b)*(s-c));}
double trapezium(int a,int b,int h){return (a+b)*h/2;}
double triangle(int a,int h){return a*h/2;}
void sorm(vector<int> vec){sort(vec.begin(),vec.end());}
void sorg(vector<int> vec){sort(vec.begin(),vec.end(),greater<int>());}
int cmp( const void *p, const void *q ) {if( *(double*)p > *(double*)q ) return 1;if( *(double*)p < *(double*)q ) return -1;return 0;}
int main(void){
    cin.tie(0);
    ios::sync_with_stdio(false);
    solve();
    return 0;
}
void solve(){
    int a,b,c,k;
    cin >>a>>b>>c>>k;
    if(k%2==0)printa(a-b);
    else printa(b-a);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:55:5: error: 'solve' was not declared in this scope
   55 |     solve();
      |     ^~~~~
Language: C++

include <bits/stdc++.h>
using namespace std;
int main()
{
    int i,j,k,n,ans,l,r,f,a[200005],b[200005];
    scanf("%d",&n);
    j=1;
    for(i=1;i<=n;i++)
        {scanf("%d",&a[i]);
         b[a[i]]=j;
         j=j+1;
         }
    l=1;
    ans=n;
    for(i=1;i<=n-1;i++)
    {
        if(b[i]<b[i+1])
        {
            l=l+1;

        }
        else
        {
            ans=min(ans,(n-l));
        l=1;
        }
    }
    ans=min(ans,(n-l));
    printf("%d",ans);
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf' was not declared in this scope
    6 |     scanf("%d",&n);
      |     ^~~~~
a.cc:24:17: error: 'min' was not declared in this scope; did you mean 'main'?
   24 |             ans=min(ans,(n-l));
      |                 ^~~
      |                 main
a.cc:28:9: error: 'min' was not declared in this scope; did you mean 'main'?
   28 |     ans=min(ans,(n-l));
      |         ^~~
      |         main
a.cc:29:5: error: 'printf' was not declared in this scope
   29 |     printf("%d",ans);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include <bits/stdc++.h>
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
long long int a,b,c,k,A,B,C;
cin >> a >> b >> c >> k;
for(int i = 0; i < k; i++) {
A = a;
B = b;
C = c;
a += B+C;
b += A+C;
c += A+B;
}
if(a-b < 114514191981011419) {
cout << a-b << endl;
} else {
cout << "Unfair" << endl;

return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main() {
long long int a,b,c,k,A,B,C;
cin >> a >> b >> c >> k;
for(int i = 0; i < k; i++) {
A = a;
B = b;
C = c;
a += B+C;
b += A+C;
c += A+B;
}
if(a-b < 11451419198101141919) {
cout << a-b << endl;
} else {
cout << "Unfair" << endl;

return 0;
}

Compiler output:
a.cc:14:10: warning: integer constant is so large that it is unsigned
   14 | if(a-b < 11451419198101141919) {
      |          ^~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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

int main()
{
    int 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:9:8: error: 'k' was not declared in this scope
    9 |     if(k%2==0)
      |        ^
Language: C++

# include <iostream>

using namespace std;

void swap(long& a, long& b, long& c){
    long d, e, f;
    d = a;
    e = b;
    f = c;
    a = e + f;
    b = d + f;
    c = d + e;

}
int main() {
    long a, b, c, k;

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

    cout << a - b << endl;


    return 0;
}

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

#include<iostream>
using namespace std;


int main()
{
	long long a,b,c
	unsigned long long k;
	cin>>a>>b>>c>>k;
	if(k&1)
		cout<<b-a<<endl;
	else
		cout<<a-b<<endl;
	return 0;
 } 

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected initializer before 'unsigned'
    8 |         unsigned long long k;
      |         ^~~~~~~~
a.cc:9:20: error: 'c' was not declared in this scope
    9 |         cin>>a>>b>>c>>k;
      |                    ^
a.cc:9:23: error: 'k' was not declared in this scope
    9 |         cin>>a>>b>>c>>k;
      |                       ^
Language: Java

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

	
public class wangji {
	public static void main(String[] args) throws IOException {
//		InputReader cin = new InputReader(System.in);
//	    PrintWriter cout = new PrintWriter(System.out);
		Scanner cin = new Scanner(System.in);
		long a, b, c, k;
		a = cin.nextLong();
		b = cin.nextLong();
		c = cin.nextLong();
		k = cin.nextLong();
		if(k%2 == 0)System.out.println(a-b);
		else System.out.println(b-a);
	}
}


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

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

	
public class wangji {
	static long gcd(long x, long y) {return x == 0?y:gcd(y%x, x);}
	public static void main(String[] args) throws IOException {
//		InputReader cin = new InputReader(System.in);
//	    PrintWriter cout = new PrintWriter(System.out);
		Scanner cin = new Scanner(System.in);
		long a, b, c, k;
		a = cin.nextLong();
		b = cin.nextLong();
		c = cin.nextLong();
		k = cin.nextLong();
		if(k%2 == 0)System.out.println(a-b);
		else System.out.println(b-a);
	}
}
class InputReader {
    public BufferedReader reader;
    public StringTokenizer tokenizer;

    public InputReader(InputStream stream) {
        reader = new BufferedReader(new InputStreamReader(stream), 32768);
        tokenizer = null;
    }

    public String next() {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            try {
                tokenizer = new StringTokenizer(reader.readLine());
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
        return tokenizer.nextToken();
    }

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

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


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

#include <bits/stdc++.h>
#define pb push_back
using namespace std;
const int N = 5e5+7;
vector <int> a[N];
int n,m,Pos[N],TP[N],Count = 0;
void nhap()
{
}
void solve()
{
    long long a,b,c,d;
    cin >> a >> b >> c >> d;
    if (d & 1) {
        cout << b - c;
    }
    else {
        cout << c - b;
    }
}
int main()
{
    nhap();
    init();
    solve();
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:5: error: 'init' was not declared in this scope; did you mean 'int'?
   24 |     init();
      |     ^~~~
      |     int
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> a >> b  >> c >> k;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |             cout << b - c;
      |             ^~~~
      |             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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | cout << c - b;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
#include <iostream>
using namespace std;
void Fairness() {
	long long A, B, C, K;
	cin >> A >> B >> C >> K;

	if (K % 2 == 0) {
		cout << (A - B);
	}
	else {
		cout << (B - A)
	}
	//long long res = pow(-1,K) * (A - B);

	//cout << res;
}

int main() {
	Fairness();
	return 0;
}


Compiler output:
a.cc: In function 'void Fairness()':
a.cc:20:32: error: expected ';' before '}' token
   20 |                 cout << (B - A)
      |                                ^
      |                                ;
   21 |         }
      |         ~
Language: Java

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

	
public class wangji {
	static long gcd(long x, long y) {return x == 0?y:gcd(y%x, x);}
	public static void main(String[] args) throws IOException {
		InputReader cin = new InputReader(System.in);
	    PrintWriter cout = new PrintWriter(System.out);
		long a, b, c, k;
		a = cin.nextLong();
		b = cin.nextLong();
		c = cin.nextLong();
		k = cin.nextLong();
		if(k%2 == 0)cout.println(a-b);
		else cout.println(b-a);
		cout.flush();
		cout.close();
	}
}
class InputReader {
    public BufferedReader reader;
    public StringTokenizer tokenizer;

    public InputReader(InputStream stream) {
        reader = new BufferedReader(new InputStreamReader(stream), 32768);
        tokenizer = null;
    }

    public String next() {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            try {
                tokenizer = new StringTokenizer(reader.readLine());
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
        return tokenizer.nextToken();
    }

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

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


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

package fairness;

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

public class Main {
    public static long valueOf (String[] s) {
    Scanner sc = new Scanner(System.in);
    long A,B = 0,C = 0,K = Integer.valueOf(sc.next());
                   
       for(long i = 1; i<K; i++);
       A = B + C;
       B = C + A;
       C = A + B;
       if(A > 1000000000);{
   	System.out.println("Unfair"); 
       }
       if(A < 1000000000);
       {
    	   System.out.println(A - B);
       }        
                
                };
         
        
    }



Compiler output:
Main.java:23: error: missing return statement
                };
                ^
1 error
Language: Java

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

public class Main {
    public static long parseLong (String[] args) {
    Scanner sc = new Scanner(System.in);
    long A,B = 0,C = 0,K = Integer.parseLong(sc.next());
                   
       for(long i = 1; i<K; i++);
       A = B + C;
       B = C + A;
       C = A + B;
       if(A > 1000000000000000000);{
   	System.out.println("Unfair"); 
       }
       if(A < 1000000000000000000);
       {
    	   System.out.println(A - B);
       }        
                
                };
         
        
    }



Compiler output:
Main.java:13: error: integer number too large
       if(A > 1000000000000000000);{
              ^
Main.java:16: error: integer number too large
       if(A < 1000000000000000000);
              ^
2 errors
Language: C++

#include <iostream>

using namespace std;

int abs(int n){
    int m;
    if(n < 0){
        m = -n;
    }else{
        m = n;
    }
    return m;
}

int main(){
    int a, b, c, k;
    cin >> a >> b >> c >> k;
    int x[1000000000000000000], y[1000000000000000000], z[1000000000000000000];
    x[0] = a;
    y[0] = b;
    z[0] = c;
    for(int i = 0; i < k; i++){
        x[i + 1] = y[i] + z[i];
        y[i + 1] = z[i] + x[i];
        z[i + 1] = x[i] + y[i];
    }
    
    int iv;
    iv = x[k + 1] - y[k + 1];
    if(abs(iv) > pow(10.0, 18.0)){
        cout << "Unfair" << endl;
    } else {
        cout << iv << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:18: error: 'pow' was not declared in this scope
   30 |     if(abs(iv) > pow(10.0, 18.0)){
      |                  ^~~
Language: C++

#include <iostream>

using namespace std;

int abs(int n){
    int m;
    if(n < 0){
        m = -n;
    }else{
        m = n;
    }
    return m;
}

int main(){
    int a, b, c, k;
    cin >> a >> b >> c >> k;
    int x[pow(10.0,18.0)], y[pow(10.0,18.0)], z[pow(10.0,18.0)];
    x[0] = a;
    y[0] = b;
    z[0] = c;
    for(int i = 0; i < k; i++){
        x[i + 1] = y[i] + z[i];
        y[i + 1] = z[i] + x[i];
        z[i + 1] = x[i] + y[i];
    }
    
    int iv;
    iv = x[k + 1] - y[k + 1];
    if(abs(iv) > pow(10.0, 18.0)){
        cout << "Unfair" << endl;
    } else {
        cout << iv << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: 'pow' was not declared in this scope
   18 |     int x[pow(10.0,18.0)], y[pow(10.0,18.0)], z[pow(10.0,18.0)];
      |           ^~~
a.cc:19:5: error: 'x' was not declared in this scope
   19 |     x[0] = a;
      |     ^
a.cc:20:5: error: 'y' was not declared in this scope
   20 |     y[0] = b;
      |     ^
a.cc:21:5: error: 'z' was not declared in this scope
   21 |     z[0] = c;
      |     ^
Language: C++

#include<iostream>
using namespace std;

int main(){

	long long a,b,c,k;
	cin >>a >>b >>c >>k;

	k+=a+b+c;
	a+=k;
	cout<<"Unfair"
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected ';' before 'return'
   11 |         cout<<"Unfair"
      |                       ^
      |                       ;
   12 |         return 0;
      |         ~~~~~~
Language: Java

package fairness;

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

public class Main {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A,B,C,K = Integer.parseInt(sc.next());
                   
       for(int i = 1; i<K; i++);
       A = B + C;
       B = C + A;
       C = A + B;
       if(A > 1000000000);{
   	System.out.println("Unfair"); 
       }
       if(A < 1000000000);
       {
    	   System.out.println(A - B);
       }        
                
                };
         
        
    }



Compiler output:
Main.java:12: error: variable B might not have been initialized
       A = B + C;
           ^
Main.java:12: error: variable C might not have been initialized
       A = B + C;
               ^
2 errors
Language: C++

#include<iostream>
using namespace std;

int main(){
	unsigned long long a,b,c,k;

	cin >>a >>b >>c >>k;

        k+=a+b+c;
        a+=k;
 　　cout<<"Unfair"<<endl;
	return 0;
}

Compiler output:
a.cc:11:2: error: extended character 　 is not valid in an identifier
   11 |  　　cout<<"Unfair"<<endl;
      |  ^
a.cc:11:2: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:11:2: error: '\U00003000\U00003000cout' was not declared in this scope
   11 |  　　cout<<"Unfair"<<endl;
      |  ^~~~~~~~
Language: C++

import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int[] a = new int[3];
        for (int i = 0; i < 3; i++) {
            a[i] = sc.nextInt();
        }
        long n = sc.nextLong();

        if(n % 2 == 1){

            System.out.println(a[0] - a[1]);
        } else {
            System.out.println(a[1] - a[0]);
        }

    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
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: Java

import java.math.BigInteger;
import java.util.Scanner;

public class AtcoderAgc024A {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);

        long a = input.nextLong();
        long b = input.nextLong();
        long c = input.nextLong();
        long k = input.nextLong();

        if (k == 0){
            System.out.println(-1);
            return;
        }else if(b != 0 && a !=0  && c!= 0){
            System.out.println(a-b);
        }else if (b == 0 && c == 0 ){
            BigInteger val = BigInteger.valueOf(a).multiply(BigInteger.valueOf(k));
            if (val.compareTo(BigInteger.valueOf(1000000000000000000L)) > 0){
                System.out.println("Unfair");

            }else{
                System.out.println(val);
            }
        }else if ( a == 0 && c == 0){
            BigInteger val = BigInteger.valueOf(b).multiply(BigInteger.valueOf(k));
            if (val.compareTo(BigInteger.valueOf(1000000000000000000L)) > 0){
                System.out.println("Unfair");

            }else{
                System.out.println(val);
            }
        }else{

            System.out.println(a-b);
        }


    }
}


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

package fairness;

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

public class Main {
    public static void main(String[] args) throws Exception {
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            br.lines()
                .map(line -> Arrays.stream(line.split(" "))
                        .mapToLong(Integer::parseInt)
                        .toArray())
                .forEach(tokens -> {
                    long A  = tokens[0];
                    long B  = tokens[1];
                    long C  = tokens[2];
                    long K  = tokens[3];
       for(int i = 1; i<K; i++);
       A = B + C;
       B = C + A;
       C = A + B;
       if(A > 1000000000);{
   	System.out.println("Unfair"); 
       }
       else {
    	   System.out.println(A - B);
       }        
                
                });
         
        }
    }
}


Compiler output:
Main.java:25: error: 'else' without 'if'
       else {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Fairness{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double a  = sc.nextDouble();
        double b  = sc.nextDouble();
        double c  = sc.nextDouble();

        double k  = sc.nextDouble();

        if(Math.abs(a - b) > Math.pow(10, 9) ){
            System.out.println("Unfair");
            return;
        }
        System.out.println((int)(k % 2 == 0 ? (a - b) : (b - a)));
    }
}

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


#include <iostream>


using namespace std;

int main()
{
	long long int A, B, C, K, i,a,b,c;

	cin >> A;	cin >> B;	cin >> C;	cin >> K;

	for (i = 1; i <= K; i++) {
		a = A;
		b = B;
		c = C;
		A = b + c;
		B = a + c;
		C = a + b;
	}


	if (abs(A-B)>pow(10,18))
		cout << "Unfair" << endl;
	else		
		cout << A-B << endl;

	return 0;
}


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

#include "stdafx.h"
#include <iostream>


using namespace std;

int main()
{
	long long int A, B, C, K, i,a,b,c;

	cin >> A;	cin >> B;	cin >> C;	cin >> K;

	for (i = 1; i <= K; i++) {
		a = A;
		b = B;
		c = C;
		A = b + c;
		B = a + c;
		C = a + b;
	}


	if (abs(A-B)>pow(10,18))
		cout << "Unfair" << endl;
	else		
		cout << A-B << endl;

	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
    ll A, B, C;
    double K;
    cin >> A >> B >> C >> K;
    ll s = A + B + C;
    ll ans = B - A;
    ll small = min(A, min(B, C));
    ll big = max(A, max(B, C));
    if (K > 57){
        cout << "Unfair" << endl;
        return 0;
    }
    if (K % 2 == 0)
    {
        ans = -ans;
    }
    //////////////////////
    double lim = s;
    for (int i = 0; i < K; i++)
    {
        if (i % 2 == 0){
            lim = lim * 2 + 1;
        }
        else{
            lim = lim * 2 - 1;
        }
        if (lim - small > 1000000000000000000){
            cout << "Unfair" << endl;
            return 0;
        }
    }
    if (K % 2 == 0){
        if (lim + big > 1000000000000000000){
            cout << "Unfair" << endl;
            return 0;
        }
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   17 |     if (K % 2 == 0)
      |         ~ ^ ~
      |         |   |
      |         |   int
      |         double
a.cc:36:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   36 |     if (K % 2 == 0){
      |         ~ ^ ~
      |         |   |
      |         |   int
      |         double
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
typedef long long ll;
 
int main() {
	ll A,B,C,K,S;
	cin >> A >> B >> C >> K;
	for(int i=0;i < K;i++){
		S=A+B+C;
		A=S-A;
		B=S-B;
		C=S-C;
		if(abs(A)>1e18||abs(B)>1e18||abs(S-A-B)>1e18)) break;
	}
	else cout << A-B << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:62: error: expected primary-expression before ')' token
   15 |                 if(abs(A)>1e18||abs(B)>1e18||abs(S-A-B)>1e18)) break;
      |                                                              ^
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else cout << A-B << endl;
      |         ^~~~
Language: C++

#include<iostream>
#include<math.h>

using namespace std;

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

	float a=A;
	float b=B;
	float c=C;

	for(float i=0f;i<K;i++){
		float a0=a;
		float b0=b;
		float c0=c;
		a=b0+c0;
		b=a0+c0;
		c=a0+b0;

	}
	if(abs(a-b)>pow(10,18))cout<<"Unfair";
	else cout<<a-b;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: unable to find numeric literal operator 'operator""f'
   16 |         for(float i=0f;i<K;i++){
      |                     ^~
Language: C++

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

using namespace std;


int main()
{
	long long A, B, C, K, ans = 0;

	cin >> A >> B >> C >> K;

	ans = pow(long long(-1), K) * (A - B);
	if (abs(ans) > 1000000000000000000) {
		cout << "Unfair";
	}
	else {
		cout << ans;
	}

	char qq;
	cin >> qq;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:19: error: expected primary-expression before 'long'
   20 |         ans = pow(long long(-1), K) * (A - B);
      |                   ^~~~
Language: C

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

int main(void)
{
    int i,a1,b1,c1,A,B,C,K,S,N;
    
    N = 10^18;
    
    scanf("%d %d %d %d",&A,&B,&C,&K);
    
    for(i=0;i<K;i++)
    {
        a1 = A;
        b1 = B;
        c1 = C;
        A = b1 + c1;
        B = a1 + c1;
        C = a1 + b1;
        printf("%d %d %d\n",A,B,C);
    }
    
    S = A - B;
    
    
    if(S*S > N*N)
    {
        printf("Unfair\n");
    }
    
    else
    {
        printf("%d\n",S);
    }
    

Compiler output:
main.c: In function 'main':
main.c:8:11: warning: result of '10^18' is 24; did you mean '1e18'? [-Wxor-used-as-pow]
    8 |     N = 10^18;
      |           ^
      |         ---
      |         1e
main.c:8:9: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10)
    8 |     N = 10^18;
      |         ^~
      |         0xa
main.c:34:5: error: expected declaration or statement at end of input
   34 |     }
      |     ^
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner scanner =new Scanner(System.in);
		long takahashi = scanner.nextLong();
		long nakahashi = scanner.nextLong();
		long hikuhashi = scanner.nextLong();

		long k = scanner.nextLong();

		System.out.println((k%2==1)?nakahashi-takahashi:takahashi-nakahashi);
		scanner.close();
	}

}


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

#include<iostream>

using namespace std;

int main(){
int a,b,c;
cin>>a>>b>>c;
int k;
cin>>k;
cout<<"Unfair"

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before 'return'
   10 | cout<<"Unfair"
      |               ^
      |               ;
   11 | 
   12 | return 0;
      | ~~~~~~
Language: C++

#include<iostleam>
using namespace std;

int main(){
    int a,b,c,k;
    cin >> a >> b >> c >> k;
    cout <<a;
}

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

#include<iostream>

using namespace std;

int main(){
cout<<"Unfair"

retrun 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected ';' before 'retrun'
    6 | cout<<"Unfair"
      |               ^
      |               ;
    7 | 
    8 | retrun 0;
      | ~~~~~~
Language: C++

#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <cstring>

using namespace std;

unsigned long long  a,b,c,k;

void change()
{
	unsigned long long tmpa,tmpb,tmpc;
	tmpa=a;
	tmpb=b;
	tmpc=c;
	a=tmpb+tmpc;
	b=tmpa+tmpc;
	c=tmpa+tmpb;
}

int main()
{
	scanf("%llu %llu %llu %llu",&a,&b,&c,&k);
	while(k--)
	{
		change();
	}
	
	if((a-b)<(unsigned long long)pow(10,18)*-1 || (a-b) >(unsigned long long)pow(10,18))
	{
		printf("Unfair\n");	
	}
	else printf("%llu",a-b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:38: error: 'pow' was not declared in this scope
   29 |         if((a-b)<(unsigned long long)pow(10,18)*-1 || (a-b) >(unsigned long long)pow(10,18))
      |                                      ^~~