Language: C++

import java.lang.*;
import java.math.*;

import java.util.*;

class Main{
    public static void main(String s[]){
	Scanner sc = new Scanner(System.in);
	BigInteger TWO=new BigInteger("2");
	BigInteger FOUR=new BigInteger("4");
	BigInteger EIGHT=new BigInteger("8");
	while(true){
	    BigInteger biN = sc.nextBigInteger();
	    if( biN.equals( BigInteger.ZERO)  ) break;
	    BigInteger biT = (biN.subtract(FOUR)).divide(TWO).add(BigInteger.ONE);
	    //System.out.println( biT );
	    biN=biN.multiply(TWO).multiply(biN).add( biN.multiply(EIGHT) );
	    //System.out.println(biN);
	    biT=biT.multiply(FOUR).multiply(biT.add(BigInteger.ONE));
	    BigInteger ans = biN.subtract( biT );
	    //System.out.println( biT );
	    if(biN.equals(new BigInteger("64")))ans=new BigInteger("64");
	    System.out.println( ans );
	    
	}
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.lang.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.math.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.*;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:11: error: expected ':' before 'static'
    7 |     public static void main(String s[]){
      |           ^~~~~~~
      |           :
a.cc:7:29: error: 'String' has not been declared
    7 |     public static void main(String s[]){
      |                             ^~~~~~
a.cc:27:2: error: expected ';' after class definition
   27 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:8:9: error: 'Scanner' was not declared in this scope
    8 |         Scanner sc = new Scanner(System.in);
      |         ^~~~~~~
a.cc:9:9: error: 'BigInteger' was not declared in this scope
    9 |         BigInteger TWO=new BigInteger("2");
      |         ^~~~~~~~~~
a.cc:10:20: error: expected ';' before 'FOUR'
   10 |         BigInteger FOUR=new BigInteger("4");
      |                    ^~~~
a.cc:11:20: error: expected ';' before 'EIGHT'
   11 |         BigInteger EIGHT=new BigInteger("8");
      |                    ^~~~~
a.cc:13:24: error: expected ';' before 'biN'
   13 |             BigInteger biN = sc.nextBigInteger();
      |                        ^~~
a.cc:14:17: error: 'biN' was not declared in this scope
   14 |             if( biN.equals( BigInteger.ZERO)  ) break;
      |                 ^~~
a.cc:15:24: error: expected ';' before 'biT'
   15 |             BigInteger biT = (biN.subtract(FOUR)).divide(TWO).add(BigInteger.ONE);
      |                        ^~~
a.cc:17:13: error: 'biN' was not declared in this scope
   17 |             biN=biN.multiply(TWO).multiply(biN).add( biN.multiply(EIGHT) );
      |             ^~~
a.cc:17:30: error: 'TWO' was not declared in this scope
   17 |             biN=biN.multiply(TWO).multiply(biN).add( biN.multiply(EIGHT) );
      |                              ^~~
a.cc:17:67: error: 'EIGHT' was not declared in this scope
   17 |             biN=biN.multiply(TWO).multiply(biN).add( biN.multiply(EIGHT) );
      |                                                                   ^~~~~
a.cc:19:13: error: 'biT' was not declared in this scope
   19 |             biT=biT.multiply(FOUR).multiply(biT.add(BigInteger.ONE));
      |             ^~~
a.cc:19:30: error: 'FOUR' was not declared in this scope
   19 |             biT=biT.multiply(FOUR).multiply(biT.add(BigInteger.ONE));
      |                              ^~~~
a.cc:20:24: error: expected ';' before 'ans'
   20 |             BigInteger ans = biN.subtract( biT );
      |                        ^~~
a.cc:22:31: error: expected type-specifier before 'BigInteger'
   22 |             if(biN.equals(new BigInteger("64")))ans=new BigInteger("64");
      |                               ^~~~~~~~~~
a.cc:22:49: error: 'ans' was not declared in this scope
   22 |             if(biN.equals(new BigInteger("64")))ans=new BigInteger("64");
      |                                                 ^~~
a.cc:22:57: error: expected type-specifier before 'BigInteger'
   22 |             if(biN.equals(new BigInteger("64")))ans=new BigInteger("64");
      |                                                         ^~~~~~~~~~
a.cc:23:13: error: 'System' was not declared in this scope
   23 |             System.out.println( ans );
      |             ^~~~~~
a.cc:23:33: error: 'ans' was not declared in this scope
   23 |             System.out.println( ans );
      |                                 ^~~