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);
  }
}
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");
                              ^
Main.java:24: error: class, interface, enum, or record expected
import java.util.*;
^
Main.java:41: error: illegal start of expression
    (a - b >= 0) ? if(a - b > 1000000000000000000) System.out.println("Unfair")
                   ^
Main.java:41: error: not a statement
    (a - b >= 0) ? if(a - b > 1000000000000000000) System.out.println("Unfair")
                 ^
Main.java:41: error: integer number too large
    (a - b >= 0) ? if(a - b > 1000000000000000000) System.out.println("Unfair")
                              ^
Main.java:41: error: ';' expected
    (a - b >= 0) ? if(a - b > 1000000000000000000) System.out.println("Unfair")
                                                                               ^
Main.java:42: error: ';' expected
                   else System.out.println(a - b)
                                                 ^
Main.java:43: error: integer number too large
                 : if(b - a > 1000000000000000000) System.out.println("Unfair")
                              ^
Main.java:43: error: ';' expected
                 : if(b - a > 1000000000000000000) System.out.println("Unfair")
                                                                               ^
Main.java:44: error: ';' expected
                   else System.out.println(b - a)
                                                 ^
14 errors