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

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

int main(){
unsigned int a,b,c,A,B,C;
long long int k;
cin>>a>>b>>c>>k;
int i = k;
while(i--){
    A = a;
    B = b;
    C = c;
    a = B+C;
    b = A+C;
    c = A+B;
}
;
if(abs(a-b) >= 1000000000000000000){
    cout<<"Unfair";
}
else{
cout<<a-b;
}
  return 0;
}

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

#include<iostream>
using namespace std;


int main()
{
	int a, b, c = 0;
	int d, e, f = 0;
	int i = 0;
	cin >> a >> b >> c >> i;
	while (i > 0) {
		i = i - 1;
		d = a;
		e = b;
		f = c;
		a = e + f;
		b = d + f;
		c = d + e;
	}
	if (a - b < pow(10, 18)) {
		cout << a - b << endl;
	}
	else {
		cout << "Unfair" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:21: error: 'pow' was not declared in this scope
   20 |         if (a - b < pow(10, 18)) {
      |                     ^~~
Language: C++

#include <iostream>
int main(){
std::cout << "Unfair" std::endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:22: error: expected ';' before 'std'
    3 | std::cout << "Unfair" std::endl;
      |                      ^~~~
      |                      ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
       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:6:8: error: 'a' was not declared in this scope
    6 |        a,b,c,k;
      |        ^
a.cc:6:10: error: 'b' was not declared in this scope
    6 |        a,b,c,k;
      |          ^
a.cc:6:12: error: 'c' was not declared in this scope
    6 |        a,b,c,k;
      |            ^
a.cc:6:14: error: 'k' was not declared in this scope
    6 |        a,b,c,k;
      |              ^
Language: C++

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

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

Compiler output:
a.cc:14:2: error: expected class-name at end of input
   14 | ~
      |  ^
Language: C++

a, b, c, k = map(int, input().split())

if k % 2 == 0:
    ans = a-b
else:
    ans = b-a

if abs(ans) < 10**18:
    print(ans)
else:
    print('Unfair')


Compiler output:
a.cc:11:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   11 |     print('Unfair')
      |           ^~~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c, k = map(int, input().split())
      | ^
Language: C++

#include<iostream>
using namespace std;
 
int main(){
        long long a,b,c,k;
        cin >> a >> b >> c >>k;
 
        long long ans;
        switch(k%4){
                case 0:
                        ans=a-b;
                        break;
                case 1:
                        ans=-a+b;
                        break;

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

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

int main()
{
   int t,n,h,k;
   cin >> t >> n >> h >>k;
 for(int i=0;i<k;i++)
{
    t=n+h;
     n=t+h;
     h=t+n;
}
if((t-n)<=(10^18))
cout<<t-n;
else
cout<<"Unfair";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:4: error: 'cin' was not declared in this scope
    4 |    cin >> t >> n >> h >>k;
      |    ^~~
a.cc:11:14: warning: result of '10^18' is 24; did you mean '1e18'? [-Wxor-used-as-pow]
   11 | if((t-n)<=(10^18))
      |              ^
      |            ---
      |            1e
a.cc:11:12: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10)
   11 | if((t-n)<=(10^18))
      |            ^~
      |            0xa
a.cc:12:1: error: 'cout' was not declared in this scope
   12 | cout<<t-n;
      | ^~~~
a.cc:14:1: error: 'cout' was not declared in this scope
   14 | cout<<"Unfair";
      | ^~~~
Language: C++

#include <cstdio>
#include <iostream>
#include <cstring>
using namespace std;

int main(void)
{
    long long a, b, c;
    char k[21];
    cin >> a >> b >> c >> k;

    if (strlen(k) == 1) {
        if (k[0] == '0') {
            printf("%lld\n", a - b);
        }
        else if (k[0] == '1') {
            printf("%lld\n", b - a);
        }
        else if (k[strlen(k)-1] == '0' || '2' || '4' || '6' || '8') {
            printf("%lld\n", b - a);
        else {
            printf("%lld\n", a - b);
        }
    }
    //偶数
    else if (k[strlen(k)-1] == '0' || '2' || '4' || '6' || '8') {
        printf("%lld\n", b - a);
    }
    //奇数
    else {
        printf("%lld\n", a - b);
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: expected '}' before 'else'
   21 |         else {
      |         ^~~~
a.cc:19:69: note: to match this '{'
   19 |         else if (k[strlen(k)-1] == '0' || '2' || '4' || '6' || '8') {
      |                                                                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
    ll A, B, C, 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 % 2 == 0)
    {
        ans = -ans;
    }
    //////////////////////

    //if (K % 2 == 0){
        double lim = (1000000000000000000 - big)*3 / s;
        for (ll i = 0; i < K / 2; i++)
        {
            lim /= 4;
            if (lim <= 1){
                printf("Unfair\n");
                return 0;
            }
        }
    //else
    /*{
        double lim = (1000000000000000000 small) / s * 3;
        for (ll i = 0; i < K / 2; i++)
        {
            lim /= 4;
        }
    }*/
    }
    printf("%lli\n", ans);
}

Compiler output:
a.cc:37:11: error: expected constructor, destructor, or type conversion before '(' token
   37 |     printf("%lli\n", ans);
      |           ^
a.cc:38:1: error: expected declaration before '}' token
   38 | }
      | ^
Language: C++

int main()
{
   int t,n,h,k;
   cin<<t<<n<<h<<k;
 for(int i=0;i<k;i++)
{
    t=n+h;
     n=t+h;
     h=t+n;
}
if((t-n)<=(10^18))
cout>>t-n;
else
cout>>"Unfair";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:4: error: 'cin' was not declared in this scope
    4 |    cin<<t<<n<<h<<k;
      |    ^~~
a.cc:11:14: warning: result of '10^18' is 24; did you mean '1e18'? [-Wxor-used-as-pow]
   11 | if((t-n)<=(10^18))
      |              ^
      |            ---
      |            1e
a.cc:11:12: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10)
   11 | if((t-n)<=(10^18))
      |            ^~
      |            0xa
a.cc:12:1: error: 'cout' was not declared in this scope
   12 | cout>>t-n;
      | ^~~~
a.cc:14:1: error: 'cout' was not declared in this scope
   14 | cout>>"Unfair";
      | ^~~~
Language: C++

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

int main(){
 unsigned 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;
}
long long int d = 1000000000000000000;
if(abs(a-b) >= d){
    cout<<"unfair";
}
else{
cout<<a-b;
}
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
long a,b,c,k,i;
cin>>a>>b>>c>>k;
 long d =1000000000000000000;
         //123456789012345678

for(i=0;i<k;i++){
  if(d>a){
  long s,t,u;
  s=a;
  t=b;
  u=c;
  a=t+u;
  b=u+s;
  c=s+t;
  }
  }
long d =1000000000000000000;
if(a-b>d||a-b<d)cout<<"Unfair"<<endl;
else{ cout<<a-b<<endl;}
  
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:6: error: redeclaration of 'long int d'
   20 | long d =1000000000000000000;
      |      ^
a.cc:6:7: note: 'long int d' previously declared here
    6 |  long d =1000000000000000000;
      |       ^
Language: C++

#include<iostream>
using namespace std;

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

        long long ans;
        switch(k%4){
                case 0:
                        ans=a-b;
                        break;
                case 1:
                        ans=-a+b;
                        break;
                case 2:
                        if(k==2) ans=a-b+2*c;
                        else ans=a-b;
                        break;
                case 3:
                        if(k==3)ans=-a+b+c;
                        else ans=-a+b
                        break;
        }

        cout << ans << endl;

        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:38: error: expected ';' before 'break'
   22 |                         else ans=-a+b
      |                                      ^
      |                                      ;
   23 |                         break;
      |                         ~~~~~
Language: C++

number = input()
a = number.split()


high=int(a[0])
middle=int(a[1])
low=int(a[2])
k=a[3]
k = int(k)

for i in range(k):
    high2 = middle + low
    #print(high2)
    middle2 = high + low
    #print(middle2)
    low2 = high + low
    if high2 or middle2 or low2 < 10**18:
        high = high2
        print(high)
        middle = middle2
        print(middle)
        low = low2
    else:
        answer = 'Unfair'
        break

answer = high - middle
print(answer)

Compiler output:
a.cc:13:6: error: invalid preprocessing directive #print
   13 |     #print(high2)
      |      ^~~~~
a.cc:15:6: error: invalid preprocessing directive #print
   15 |     #print(middle2)
      |      ^~~~~
a.cc:24:18: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   24 |         answer = 'Unfair'
      |                  ^~~~~~~~
a.cc:1:1: error: 'number' does not name a type
    1 | number = input()
      | ^~~~~~
Language: C++

int main()
{
   int t,n,h,k;
   cin>>t>>n>>h>>k;
 for(int i=0;i<k;i++)
{
    t=n+h;
     n=t+h;
     h=t+n;
}
if(t-n<=10^18)
cout<<t-n;
else
cout<<"Unfair";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:4: error: 'cin' was not declared in this scope
    4 |    cin>>t>>n>>h>>k;
      |    ^~~
a.cc:12:1: error: 'cout' was not declared in this scope
   12 | cout<<t-n;
      | ^~~~
a.cc:14:1: error: 'cout' was not declared in this scope
   14 | cout<<"Unfair";
      | ^~~~
Language: Java

import java.util.Scanner;

public class taka {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int t=sc.nextInt();int t1=0,h1=0,n1=0;
        int n=sc.nextInt();
        int h=sc.nextInt();
        long k=sc.nextLong();
        if(k==0)System.out.println("-1");
        else if(k>Integer.MAX_VALUE)System.out.println("0");
        else
        {
        while(k-->0)
        {
             t1=(n+h);
             n1=t+h;
             h1=t+n;
             t=t1;
             n=n1;h=h1;


        }

        if( Math.abs(t1-n1)>(10^18))System.out.println("Unfair");
        else System.out.println( Math.abs(t1-n1));
    }}
}


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

import java.util.Scanner;

public class taka {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int t=sc.nextInt();int t1=0,h1=0,n1=0;
        int n=sc.nextInt();
        int h=sc.nextInt();
        long k=sc.nextLong();
        if(k==0)System.out.println("-1");
        else if(k>Integer.MAX_VALUE)System.out.println("0");
        else
        {
        while(k-->0)
        {
             t1=(n+h);
             n1=t+h;
             h1=t+n;
             t=t1;
             n=n1;h=h1;


        }

        if( Math.abs(t1-n1)>(10^18))System.out.println("Unfair");
        else System.out.println( Math.abs(t1-n1));
    }}
}


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 taka {
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
long a,b,c,k,i;
cin>>a>>b>>c>>k;

for(i=0;i<k.i++){
  long s,t,u;
  s=a;
  t=b;
  u=c;
  a=t+u;
  b=u+s;
  c=s+t;
  }
long d =1000000000000000000;
if(a-b>d||a-b<d)cout<<"Unfair"<<endl;
else{ cout<<a-b<<endl;}
  
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: request for member 'i' in 'k', which is of non-class type 'long int'
    7 | for(i=0;i<k.i++){
      |             ^
a.cc:7:16: error: expected ';' before ')' token
    7 | for(i=0;i<k.i++){
      |                ^
      |                ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
long a,b,c,k;
cin>>a>>b>>c>>k;

for(long i=0;;i<k.i++){
  long s,t,u;
  s=a;
  t=b;
  u=c;
  a=t+u;
  b=u+s;
  c=s+t;
  }
long d =1000000000000000000;
if(a-b>d||a-b<d)cout<<"Unfair"<<endl;
else{ cout<<a-b<<endl;}
  
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: request for member 'i' in 'k', which is of non-class type 'long int'
    7 | for(long i=0;;i<k.i++){
      |                   ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
	long long a,b,c,k,d[3];
	cin>>k>>a>>b>>c;
    if (k/2=0)
    {
    	if (a-b>1000000000000000000 or b-a>1000000000000000000) cout<<"Unfair"<<endl;
    	else cout<<a-b<<endl;
    	system ("pause");
    	return 0;
	}
	if (k/2=1)
	{
		if (a-b>1000000000000000000 or b-a>1000000000000000000) cout<<"Unfair"<<endl;
		else cout<<b-a<<endl;
		system ("pause");
		return 0;
	}
	system ("pause");
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: lvalue required as left operand of assignment
    7 |     if (k/2=0)
      |         ~^~
a.cc:14:14: error: lvalue required as left operand of assignment
   14 |         if (k/2=1)
      |             ~^~
Language: C++

void main()
{
   int t,n,h,k;
   cin>>t>>n>>h>>k;
 for(int i=0;i<k;i++)
{
    t=n+h;
     n=t+h;
     h=t+n;
}
if((t-n)<=10^18)
cout<<(t-n);
else
cout>>"Unfair";

}
 

Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:4: error: 'cin' was not declared in this scope
    4 |    cin>>t>>n>>h>>k;
      |    ^~~
a.cc:12:1: error: 'cout' was not declared in this scope
   12 | cout<<(t-n);
      | ^~~~
a.cc:14:1: error: 'cout' was not declared in this scope
   14 | cout>>"Unfair";
      | ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	long long a,b,c,i,k;
	long long x,y,z,lasta,lastb,lastc;
	long long max=1000000000000000000;

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

	for(i=0;i<k;i++){
		x=b+c;
		y=a+c;
		z=a+b;
		a=x;
		b=y;
		c=z;
		if(last>a||lastb>b||lastc>c)break;
		else if(a>max||b>max||c>max)break;
		lasta=a;
		lastb=b;
		lastc=c;
	}
	if(i==k)cout<<a-b<<endl;
	else cout<<0<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: 'last' was not declared in this scope; did you mean 'lastc'?
   18 |                 if(last>a||lastb>b||lastc>c)break;
      |                    ^~~~
      |                    lastc
Language: Java

import java.util.Scanner;

/**
 *
 * @author Suraj
 */
public class At24 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner in =  new Scanner(System.in);
        long A=in.nextLong();
        long B=in.nextLong();
        long C=in.nextLong();
        long K=in.nextLong();
        double x = Math.pow(10,18);
        long a,b,c;
        if(K%2==2){
            if(A-B>x){
                System.out.println("Unfair");
            }
            else{
                System.out.println(A-B);
            }
        }
        else{
            if(B-A>x){
                System.out.println("Unfair");
            }
            else{
                System.out.println(B-A);
            }
        }
        
        
        
    }
    
}


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

#include <stdio.h>


int main(int argc, char **argv)
{
  int a,b,c,k;
  int aa,bb,cc,x;
  int i;
  scanf("%d %d %d %d",&a,&b,&c,&d);
  for(i = 0 ; i < k ; i++){
    aa = b + c;
    bb = c + a;
    cc = a + b;
    a = aa;
    b = bb;
    c = cc;
  }
  x = a - b;
  if(x > 1000000000000000000 || x < -1000000000000000000)
    printf("Unfair\n");
  else
    printf("%d\n",x);

  return 0;
}


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

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

int main(void) {
	int a, b, c, n, f = 0;
	cin >> a >> b >> c >> n;
	long long x, y, z;
	for (int i = 0; i < n; i++) {
		x = b + c;
		y = a + c;
		z = a + b;
		
		if (x-c != b || y-c |= a || z-b |= a) {
			f = 1;
			cout << "Unfair" << endl;
		}
		a = x, b = y, c = z;
	}
	if (f == 0) {
		int ans = a - b;
		cout << ans << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:42: error: lvalue required as left operand of assignment
   14 |                 if (x-c != b || y-c |= a || z-b |= a) {
      |                                        ~~^~~~~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Foobar {
//recode
	public static void main(String[] args) throws IOException{
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
        String[] Aa = line.split(" ");
        int A = Integer.parseInt(Aa[0]);
        int B = Integer.parseInt(Aa[1]);
        int C = Integer.parseInt(Aa[2]);
        long K = Long.parseLong(Aa[3]);
        int i=0;
        while(i<K){
        	int sum1 = B+C;
        	int sum2= C+A;
        	int sum3 = A+B;
        	A=sum1;
        	B=sum2;
        	C = sum3;
        	i++;
        }
        System.out.println(A-B);
    }
		
		

}

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

#include <iostream>

using namespace std;
typedef long long LL;

struct Mat
{
	LL a[3][3];
	Mat() {
		memset(a, 0, sizeof(a));
	}

}res, ori;

Mat multi(Mat x, Mat y) {
	Mat temp;
	memset(temp.a, 0, sizeof(temp.a));

	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 3; j++) {
			for (int k = 0; k < 3; k++) {
				temp.a[i][j] += x.a[i][k] * y.a[k][j];
			}
		}
	}
	return temp;
}

Mat quick_exp(Mat x, LL y) {
	Mat ori = x;
	Mat res;

	for (int i = 0; i < 3; i++) {
		res.a[i][i] = 1;
	}

	while (y) {
		if (1 & y) {
			res = multi(res, ori);
		}
		ori = multi(ori, ori);
		y >>= 1;
	}
	return res;
}

LL A, B, C, K;

int main()
{
	cin >> A >> B >> C >> K;
	Mat mat;
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 3; j++) {
			if (j == i)
				continue;
			mat.a[i][j] = 1;
		}
	}
	
	LL aa, bb;
	bool mat_exce = false, unfair = false;
	if(K) {
		Mat m = quick_exp(mat, K);
		for (int i = 0; i < 3; i++) {
			for (int j = 0; j < 3; j++) {
				if (m.a[i][j] >= 1e+18)
					mat_exce = true;
			}
		}

		if (mat_exce && A != B)
			unfair = true;

		aa = m.a[0][1] * B + m.a[0][2] * C;
		bb = m.a[1][0] * A + m.a[1][2] * C;
	}
	else {
		aa = A;
		bb = B;
	}
	LL res = aa - bb;
	if (unfair)
		cout << "Unfair" << endl;
	else
		cout << res << endl;

	return 0;
}

Compiler output:
a.cc: In constructor 'Mat::Mat()':
a.cc:10:17: error: 'memset' was not declared in this scope
   10 |                 memset(a, 0, sizeof(a));
      |                 ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | 
a.cc: In function 'Mat multi(Mat, Mat)':
a.cc:17:9: error: 'memset' was not declared in this scope
   17 |         memset(temp.a, 0, sizeof(temp.a));
      |         ^~~~~~
a.cc:17:9: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: Java


package codeforcess;


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


public class Codeforcess {

    static PrintWriter pw = new PrintWriter(System.out);

    public static void main(String[] args) throws IOException {
        Reader.init(System.in);
        
     int a=Reader.nextInt();
     int b=Reader.nextInt();
     int c=Reader.nextInt();
     
     long k=Reader.nextInt();
     
     if(k%2==0)
         pw.println(a-b);
     
     else {
     long ans=(long)(b+c)-(long)(a+c);
             if(Math.abs(ans)>=1e18)
                 pw.println("Unfair");
             else pw.println(ans);
     
     
     
     }
     pw.close();
        
  
    }
}//end class

class Reader {

    static BufferedReader reader;
    static StringTokenizer tokenizer;

    public static int pars(String x) {
        int num = 0;
        int i = 0;
        if (x.charAt(0) == '-') {
            i = 1;
        }
        for (; i < x.length(); i++) {
            num = num * 10 + (x.charAt(i) - '0');
        }

        if (x.charAt(0) == '-') {
            return -num;
        }

        return num;
    }

    static void init(InputStream input) {
        reader = new BufferedReader(
                new InputStreamReader(input));
        tokenizer = new StringTokenizer("");
    }

    static void init(FileReader input) {
        reader = new BufferedReader(input);
        tokenizer = new StringTokenizer("");
    }

    static String next() throws IOException {
        while (!tokenizer.hasMoreTokens()) {
            tokenizer = new StringTokenizer(
                    reader.readLine());
        }
        return tokenizer.nextToken();
    }

    static int nextInt() throws IOException {
        return pars(next());
    }

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

    static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }
}

class pair implements Comparable<pair> {

    long first, second;

    pair() {
    }

    pair(long a, long b) {
        first = a;
        second = b;
    }

    public int compareTo(pair q) {
        if (first > q.first) {
            return 1;
        } else if (first < q.first) {
            return -1;
        }
        if (second > q.second) {
            return -1;
        } else if (second < q.second) {
            return 1;
        }
        return 0;
    }
}


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

#include

using namespace std;

#define ll long long
#define ull unsigned long long
#define PI acos(-1.0)
#define eps 1e-12
#define fi first
#define se second
#define MEM(a,b) memset((a),(b),sizeof(a))
#define mod(x) ((x)%MOD)
#define pii pair

const int maxn = 4e5 + 10, INF = 0x3f3f3f3f;
const ll MOD = 1000000007LL;
const int Move[4][2] = {-1,0,1,0,0,1,0,-1};
const int Move_[8][2] = {-1,-1,-1,0,-1,1,0,-1,0,1,1,-1,1,0,1,1};

inline int read(){
int x=0,f=1;char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
while(ch>='0'&&ch<='9'){x=x10+ch-'0';ch=getchar();} return xf;
}

map m;

int main(){
// freopen("C:\Users\Administrator\Desktop\in.txt","r",stdin);
// freopen("C:\Users\Administrator\Desktop\out.txt","w",stdout);
ull a,b,c,k;
cin>>a>>b>>c>>k;
ll res;
if (k & 1) {
cout<<b - a<<endl;
} else cout<<a - b<<endl;
return 0;
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
a.cc: In function 'int read()':
a.cc:21:21: error: 'getchar' was not declared in this scope
   21 | int x=0,f=1;char ch=getchar();
      |                     ^~~~~~~
a.cc:1:1: note: 'getchar' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include
a.cc:23:27: error: 'x10' was not declared in this scope
   23 | while(ch>='0'&&ch<='9'){x=x10+ch-'0';ch=getchar();} return xf;
      |                           ^~~
a.cc:23:60: error: 'xf' was not declared in this scope; did you mean 'f'?
   23 | while(ch>='0'&&ch<='9'){x=x10+ch-'0';ch=getchar();} return xf;
      |                                                            ^~
      |                                                            f
a.cc: At global scope:
a.cc:26:1: error: 'map' does not name a type
   26 | map m;
      | ^~~
a.cc: In function 'int main()':
a.cc:32:1: error: 'cin' was not declared in this scope
   32 | cin>>a>>b>>c>>k;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include
a.cc:35:1: error: 'cout' was not declared in this scope
   35 | cout<<b - a<<endl;
      | ^~~~
a.cc:35:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:14: error: 'endl' was not declared in this scope
   35 | cout<<b - a<<endl;
      |              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include
a.cc:36:8: error: 'cout' was not declared in this scope
   36 | } else cout<<a - b<<endl;
      |        ^~~~
a.cc:36:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:36:21: error: 'endl' was not declared in this scope
   36 | } else cout<<a - b<<endl;
      |                     ^~~~
a.cc:36:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java


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


public class Codeforces {

    static PrintWriter pw = new PrintWriter(System.out);

    public static void main(String[] args) throws IOException {
        Reader.init(System.in);
        
     int a=Reader.nextInt();
     int b=Reader.nextInt();
     int c=Reader.nextInt();
     
     long k=Reader.nextInt();
     
     if(k%2==0)
         pw.println(a-b);
     
     else {
     long ans=(long)(b+c)-(long)(a+c);
             if(Math.abs(ans)>=1e18)
                 pw.println("Unfair");
             else pw.println(ans);
     
     
     
     }
     pw.close();
        
  
    }
}//end class

class Reader {

    static BufferedReader reader;
    static StringTokenizer tokenizer;

    public static int pars(String x) {
        int num = 0;
        int i = 0;
        if (x.charAt(0) == '-') {
            i = 1;
        }
        for (; i < x.length(); i++) {
            num = num * 10 + (x.charAt(i) - '0');
        }

        if (x.charAt(0) == '-') {
            return -num;
        }

        return num;
    }

    static void init(InputStream input) {
        reader = new BufferedReader(
                new InputStreamReader(input));
        tokenizer = new StringTokenizer("");
    }

    static void init(FileReader input) {
        reader = new BufferedReader(input);
        tokenizer = new StringTokenizer("");
    }

    static String next() throws IOException {
        while (!tokenizer.hasMoreTokens()) {
            tokenizer = new StringTokenizer(
                    reader.readLine());
        }
        return tokenizer.nextToken();
    }

    static int nextInt() throws IOException {
        return pars(next());
    }

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

    static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }
}

class pair implements Comparable<pair> {

    long first, second;

    pair() {
    }

    pair(long a, long b) {
        first = a;
        second = b;
    }

    public int compareTo(pair q) {
        if (first > q.first) {
            return 1;
        } else if (first < q.first) {
            return -1;
        }
        if (second > q.second) {
            return -1;
        } else if (second < q.second) {
            return 1;
        }
        return 0;
    }
}


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

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


long long s(long long a, long long t){
	for(int i = 0; i < t; i++){
		a = a * a;
	}
	return a;
}


int main() {
	long long  a, b, c, k,ans , t = 2, aa, ab, ac;
	cin >> a >> b >> c >> k;
	for(long long i = 1; i <= k; i++){
		t = t * 2;
	}
	if (k % 2 == 0){
		aa = t / 3;
		ab = aa - 1;
		ans = (s(a, aa) + s(b, ab) + s(c, ab)) - (s(b, aa) + a(a, ab) + s(c, ab));
		if(ans > 1000000000000000000){
			cout << "Unfair" << endl;
		}else{
			cout << ans << endl;
		}
		return 0;
		
	}else{
		aa = t / 3 - 1;
		ab = aa + 1;
		ans = (s(a, aa) + s(b, ab) + s(c, ab)) - (s(b, aa) + a(a, ab) + s(c, ab));
		if(ans > 1000000000000000000){
			cout << "Unfair" << endl;
		}else{
			cout << ans << endl;
		}
		return 0;		
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:71: error: 'a' cannot be used as a function
   22 |                 ans = (s(a, aa) + s(b, ab) + s(c, ab)) - (s(b, aa) + a(a, ab) + s(c, ab));
      |                                                                      ~^~~~~~~
a.cc:33:71: error: 'a' cannot be used as a function
   33 |                 ans = (s(a, aa) + s(b, ab) + s(c, ab)) - (s(b, aa) + a(a, ab) + s(c, ab));
      |                                                                      ~^~~~~~~
Language: Java


import java.io.*;
import java.util.*;
import javafx.util.Pair;
import javax.swing.*;

public class Main {

    static PrintWriter pw = new PrintWriter(System.out);

    public static void main(String[] args) throws IOException {
        Reader.init(System.in);
        
     int a=Reader.nextInt();
     int b=Reader.nextInt();
     int c=Reader.nextInt();
     
     long k=Reader.nextInt();
     
     if(k%2==0)
         pw.println(a-b);
     
     else {
     long ans=(long)(b+c)-(long)(a+c);
             if(Math.abs(ans)>=1e18)
                 pw.println("Unfair");
             else pw.println(ans);
     
     
     
     }
     pw.close();
        
  
    }
}//end class

class Reader {

    static BufferedReader reader;
    static StringTokenizer tokenizer;

    public static int pars(String x) {
        int num = 0;
        int i = 0;
        if (x.charAt(0) == '-') {
            i = 1;
        }
        for (; i < x.length(); i++) {
            num = num * 10 + (x.charAt(i) - '0');
        }

        if (x.charAt(0) == '-') {
            return -num;
        }

        return num;
    }

    static void init(InputStream input) {
        reader = new BufferedReader(
                new InputStreamReader(input));
        tokenizer = new StringTokenizer("");
    }

    static void init(FileReader input) {
        reader = new BufferedReader(input);
        tokenizer = new StringTokenizer("");
    }

    static String next() throws IOException {
        while (!tokenizer.hasMoreTokens()) {
            tokenizer = new StringTokenizer(
                    reader.readLine());
        }
        return tokenizer.nextToken();
    }

    static int nextInt() throws IOException {
        return pars(next());
    }

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

    static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }
}

class pair implements Comparable<pair> {

    long first, second;

    pair() {
    }

    pair(long a, long b) {
        first = a;
        second = b;
    }

    public int compareTo(pair q) {
        if (first > q.first) {
            return 1;
        } else if (first < q.first) {
            return -1;
        }
        if (second > q.second) {
            return -1;
        } else if (second < q.second) {
            return 1;
        }
        return 0;
    }
}


Compiler output:
Main.java:4: error: package javafx.util does not exist
import javafx.util.Pair;
                  ^
1 error
Language: C++

#include<iostream>
using namespace std;

int main(){
	unisigned long long a,b,c,i,k;
	unisigned long long x,y,z,last;
	unisigned long long max=1000000000000000000;

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

	for(i=0;i<k;i++){
		x=b+c;
		y=a+c;
		z=a+b;
		a=x;
		b=y;
		c=z;
		if(a>max||b>max||c>max)break;
		else if(a<0-max||b<0-max||c<0-max)break;
	}
	if(i==k)cout<<a-b<<endl;
	else cout<<0<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'unisigned' was not declared in this scope; did you mean 'unsigned'?
    5 |         unisigned long long a,b,c,i,k;
      |         ^~~~~~~~~
      |         unsigned
a.cc:6:18: error: expected ';' before 'long'
    6 |         unisigned long long x,y,z,last;
      |                  ^~~~~
      |                  ;
a.cc:7:18: error: expected ';' before 'long'
    7 |         unisigned long long max=1000000000000000000;
      |                  ^~~~~
      |                  ;
a.cc:9:15: error: 'a' was not declared in this scope
    9 |         cin >>a >>b >>c >>k;
      |               ^
a.cc:9:19: error: 'b' was not declared in this scope
    9 |         cin >>a >>b >>c >>k;
      |                   ^
a.cc:9:23: error: 'c' was not declared in this scope
    9 |         cin >>a >>b >>c >>k;
      |                       ^
a.cc:9:27: error: 'k' was not declared in this scope
    9 |         cin >>a >>b >>c >>k;
      |                           ^
a.cc:11:13: error: 'i' was not declared in this scope
   11 |         for(i=0;i<k;i++){
      |             ^
a.cc:12:17: error: 'x' was not declared in this scope
   12 |                 x=b+c;
      |                 ^
a.cc:13:17: error: 'y' was not declared in this scope
   13 |                 y=a+c;
      |                 ^
a.cc:14:17: error: 'z' was not declared in this scope
   14 |                 z=a+b;
      |                 ^
a.cc:19:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
   19 |                 else if(a<0-max||b<0-max||c<0-max)break;
      |                           ~^~~~
a.cc:19:37: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
   19 |                 else if(a<0-max||b<0-max||c<0-max)break;
      |                                    ~^~~~
a.cc:19:46: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
   19 |                 else if(a<0-max||b<0-max||c<0-max)break;
      |                                             ~^~~~
a.cc:21:12: error: 'i' was not declared in this scope
   21 |         if(i==k)cout<<a-b<<endl;
      |            ^
Language: C++

#include<iostream>
using namespace std;
int main{
  int a,b,c,k,s,t,u;
  cin>>a>>b>>c>>k;
  for(int i=0;i<k;i++){
    s=a,b=t,a=b+c,b=s+c,c=s+t;
  }
  u=a-b;
  if(u>1000000000000000000||u<-1000000000000000000){
    cout<<"unfair"<<endl;
  }
  else cout<<u<<endl;
  return 0;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a,b,c,k,s,t,u;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>a>>b>>c>>k;
      |   ^~~
a.cc:6:3: error: expected unqualified-id before 'for'
    6 |   for(int i=0;i<k;i++){
      |   ^~~
a.cc:6:15: error: 'i' does not name a type
    6 |   for(int i=0;i<k;i++){
      |               ^
a.cc:6:19: error: 'i' does not name a type
    6 |   for(int i=0;i<k;i++){
      |                   ^
a.cc:9:3: error: 'u' does not name a type
    9 |   u=a-b;
      |   ^
a.cc:10:3: error: expected unqualified-id before 'if'
   10 |   if(u>1000000000000000000||u<-1000000000000000000){
      |   ^~
a.cc:13:3: error: expected unqualified-id before 'else'
   13 |   else cout<<u<<endl;
      |   ^~~~
a.cc:14:3: error: expected unqualified-id before 'return'
   14 |   return 0;
      |   ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: Java


import java.io.*;
import java.util.*;
import javafx.util.Pair;
import javax.swing.*;

public class Codeforces {

    static PrintWriter pw = new PrintWriter(System.out);

    public static void main(String[] args) throws IOException {
        Reader.init(System.in);
        
     int a=Reader.nextInt();
     int b=Reader.nextInt();
     int c=Reader.nextInt();
     
     long k=Reader.nextInt();
     
     if(k%2==0)
         pw.println(a-b);
     
     else {
     long ans=(long)(b+c)-(long)(a+c);
             if(Math.abs(ans)>=1e18)
                 pw.println("Unfair");
             else pw.println(ans);
     
     
     
     }
     pw.close();
        
  
    }
}//end class

class Reader {

    static BufferedReader reader;
    static StringTokenizer tokenizer;

    public static int pars(String x) {
        int num = 0;
        int i = 0;
        if (x.charAt(0) == '-') {
            i = 1;
        }
        for (; i < x.length(); i++) {
            num = num * 10 + (x.charAt(i) - '0');
        }

        if (x.charAt(0) == '-') {
            return -num;
        }

        return num;
    }

    static void init(InputStream input) {
        reader = new BufferedReader(
                new InputStreamReader(input));
        tokenizer = new StringTokenizer("");
    }

    static void init(FileReader input) {
        reader = new BufferedReader(input);
        tokenizer = new StringTokenizer("");
    }

    static String next() throws IOException {
        while (!tokenizer.hasMoreTokens()) {
            tokenizer = new StringTokenizer(
                    reader.readLine());
        }
        return tokenizer.nextToken();
    }

    static int nextInt() throws IOException {
        return pars(next());
    }

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

    static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }
}

class pair implements Comparable<pair> {

    long first, second;

    pair() {
    }

    pair(long a, long b) {
        first = a;
        second = b;
    }

    public int compareTo(pair q) {
        if (first > q.first) {
            return 1;
        } else if (first < q.first) {
            return -1;
        }
        if (second > q.second) {
            return -1;
        } else if (second < q.second) {
            return 1;
        }
        return 0;
    }
}


Compiler output:
Main.java:7: error: class Codeforces is public, should be declared in a file named Codeforces.java
public class Codeforces {
       ^
Main.java:4: error: package javafx.util does not exist
import javafx.util.Pair;
                  ^
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
template<class T> using vt = vector<T>;
template<class T> using vvt = vector<vt<T>>;
template<class T> using ttt = tuple<T,T>;
using tii = tuple<int,int>;
using vi = vector<int>;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define pb push_back
#define mt make_tuple
#define ALL(a) (a).begin(),(a).end()
#define FST first
#define SEC second
#define DEB cerr<<"!"<<endl
#define SHOW(a,b) cerr<<(a)<<" "<<(b)<<endl
#define DIV int(1e9+7)
const int INF = (INT_MAX/2);
const ll LLINF = (LLONG_MAX/2);
const double eps = 1e-8;
//const double PI = M_PI;  
inline ll pow(ll x,ll n,ll m){ll r=1;while(n>0){if((n&1)==1)r=r*x%m;x=x*x%m;n>>=1;}return r%m;}
inline ll lcm(ll d1, ll d2){return d1 / __gcd(d1, d2) * d2;}

/*
願はくは花の下にて春死なんそのきさらぎの望月のころ（西行 1118-1190）
--This is old Japanese poem expressing the desire to die under tree on the full moon night.(written by Saigyo)
In my research, there is possibility that the tree may be seg-tree.
*/

/*Coding Space*/
using Array = vector<ll>;
using Matrix = vector<Array>;

// O( n )
Matrix identity(int n) {
  Matrix A(n, Array(n));
  for (int i = 0; i < n; ++i) A[i][i] = 1;
  return A;
}
// O( n^2 )
Array mul(const Matrix &A, const Array &x) {
  Array y(A.size());
  for (int i = 0; i < (int)A.size(); ++i)
    for (int j = 0; j < (int)A[0].size(); ++j)
      y[i] += A[i][j] * x[j];
  return y;
}
// O( n^3 )
Matrix mul(const Matrix &A, const Matrix &B) {
  Matrix C(A.size(), Array(B[0].size()));
  for (int i = 0; i < (int)C.size(); ++i)
    for (int j = 0; j < (int)C[i].size(); ++j)
      for (int k = 0; k < (int)A[i].size(); ++k){
        C[i][j] += A[i][k] * B[k][j];
        if(llabs(C[i][j]) > 100000000000000){cout << "Unfair" << endl; exit(0);}
      }
  return C;
}
// O( n^3 log e )

Matrix pow(const Matrix &A, int e) {
  return e == 0 ? identity(A.size())  :
     e % 2 == 0 ? pow(mul(A, A), e/2) : mul(A, pow(A, e-1));
}

int main(){
  Matrix test(3,vector<ll>(3));
  test[0][1] = test[0][2] = test[1][0] = test[1][2] = test[2][0] = test[2][1] = 1;
  ll a,b,c,k; cin >> a >> b >> c >> k;
  [&]{
  if(a == b && b == c){cout << 0 << endl; return 0;}
  if(k == 0) return;
  Array x = {a,b,c};
  test = pow(test, k);
  rep(i,3)rep(j,3)  cerr << test[i][j] << endl;
  
  Array ans = mul(test, x);
  cerr << ans[0] << " " << ans[1] << " " << ans[2] << endl;
  a = ans[0];
  b = ans[1];
  }();
  a = a - b;
        if(llabs(a) > 100000000000000){cout << "Unfair" << endl; exit(0);}
  else
    cout << a << endl;
}

Compiler output:
a.cc: In lambda function:
a.cc:73:14: error: inconsistent types 'int' and 'void' deduced for lambda return type
   73 |   if(k == 0) return;
      |              ^~~~~~
Language: C++

int main()
{
   int t,n,h,k;
   cin>>t>>n>>h>>k;
 for(int i=0;i<k;i++)
{
    t=n+h;
     n=t+h;
     h=t+n;
}
if(t-n<=10^18)
cout<<t-n;
else
cout>>"Unfair";
return 0;
}

 

   
 

Compiler output:
a.cc: In function 'int main()':
a.cc:4:4: error: 'cin' was not declared in this scope
    4 |    cin>>t>>n>>h>>k;
      |    ^~~
a.cc:12:1: error: 'cout' was not declared in this scope
   12 | cout<<t-n;
      | ^~~~
a.cc:14:1: error: 'cout' was not declared in this scope
   14 | cout>>"Unfair";
      | ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

using ll = long long;
using ull = unsigned long long;

int main(int argc, char const *argv[]) {
	ull a,b,c;
	std::cin >> a >> b >> c >> k;
	if (k % 2 == 0) {
		std::cout << a - b << '\n';
	}
	else {
		std::cout << b - a << '\n';
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:10:36: error: 'k' was not declared in this scope
   10 |         std::cin >> a >> b >> c >> k;
      |                                    ^
Language: Java

import java.util.*;
import java.math.BigInteger;
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:6: error: class wangji is public, should be declared in a file named wangji.java
public class wangji {
       ^
1 error