Language: C++

import java.math.BigDecimal;
import java.util.Scanner;

class Main {

    public static final int DEPT = 100000;

    public static final BigDecimal INTEREST = new BigDecimal(0.05);

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int week = Integer.parseInt(s.next());

        BigDecimal repay = new BigDecimal(DEPT);

        for (int i = 0; i < week; ++i) {
            repay = repay.add(repay.multiply(INTEREST));

        }

        s.close();
        System.out.println(repay.divide(new BigDecimal(10000), 0,
                BigDecimal.ROUND_CEILING).multiply(new BigDecimal(10000)));

    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.math.BigDecimal;
      | ^~~~~~
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.util.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:11: error: expected ':' before 'static'
    6 |     public static final int DEPT = 100000;
      |           ^~~~~~~
      |           :
a.cc:6:19: error: 'final' does not name a type
    6 |     public static final int DEPT = 100000;
      |                   ^~~~~
a.cc:8:11: error: expected ':' before 'static'
    8 |     public static final BigDecimal INTEREST = new BigDecimal(0.05);
      |           ^~~~~~~
      |           :
a.cc:8:19: error: 'final' does not name a type
    8 |     public static final BigDecimal INTEREST = new BigDecimal(0.05);
      |                   ^~~~~
a.cc:10:11: error: expected ':' before 'static'
   10 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:10:29: error: 'String' has not been declared
   10 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:10:38: error: expected ',' or '...' before 'args'
   10 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:26:2: error: expected ';' after class definition
   26 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:11:9: error: 'Scanner' was not declared in this scope
   11 |         Scanner s = new Scanner(System.in);
      |         ^~~~~~~
a.cc:12:20: error: 'Integer' was not declared in this scope
   12 |         int week = Integer.parseInt(s.next());
      |                    ^~~~~~~
a.cc:12:37: error: 's' was not declared in this scope
   12 |         int week = Integer.parseInt(s.next());
      |                                     ^
a.cc:14:9: error: 'BigDecimal' was not declared in this scope
   14 |         BigDecimal repay = new BigDecimal(DEPT);
      |         ^~~~~~~~~~
a.cc:17:13: error: 'repay' was not declared in this scope
   17 |             repay = repay.add(repay.multiply(INTEREST));
      |             ^~~~~
a.cc:17:46: error: 'INTEREST' was not declared in this scope
   17 |             repay = repay.add(repay.multiply(INTEREST));
      |                                              ^~~~~~~~
a.cc:22:9: error: 'System' was not declared in this scope
   22 |         System.out.println(repay.divide(new BigDecimal(10000), 0,
      |         ^~~~~~
a.cc:22:28: error: 'repay' was not declared in this scope
   22 |         System.out.println(repay.divide(new BigDecimal(10000), 0,
      |                            ^~~~~
a.cc:22:45: error: expected type-specifier before 'BigDecimal'
   22 |         System.out.println(repay.divide(new BigDecimal(10000), 0,
      |                                             ^~~~~~~~~~
a.cc:23:56: error: expected type-specifier before 'BigDecimal'
   23 |                 BigDecimal.ROUND_CEILING).multiply(new BigDecimal(10000)));
      |                                                        ^~~~~~~~~~