View Code of Problem 3689

import java.math.BigInteger;
import java.utils.*;

public class Main{
  public static void main(string[] args){
    Scanner sc = new Scanner(System.in);
    int t = sc.nextInt();
    int k = 1;
    while (t--){
      BigInteger a = sc.nextBigInteger();
      BigInteger b = sc.nextBigInteger();
      System.out.println("Case #"+ k++ +":");
      System.out.println(a.subtract(b));
    }
  }
}

/*
Main.java:2: error: package java.utils does not exist
import java.utils.*;
^
Main.java:5: error: cannot find symbol
  public static void main(string[] args){
                          ^
  symbol:   class string
  location: class Main
Main.java:6: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
Main.java:9: error: incompatible types: int cannot be converted to boolean
    while (t--){
            ^
5 errors
*/

Double click to view unformatted code.


Back to problem 3689