Language: C++

import java.util.Scanner;

class PrintFlowerNumber {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        System.out.print("数字を入力してください:");
        String numberString = stdIn.nextLine();
        String print[][] = new String[10][5];
        
        print[0][0] = "***** ";
        print[0][1] = "*   * ";
        print[0][2] = "*   * ";
        print[0][3] = "*   * ";
        print[0][4] = "***** ";

        print[1][0] = "    * ";
        print[1][1] = "    * ";
        print[1][2] = "    * ";
        print[1][3] = "    * ";
        print[1][4] = "    * ";

        print[2][0] = "***** ";
        print[2][1] = "    * ";
        print[2][2] = "***** ";
        print[2][3] = "*     ";
        print[2][4] = "***** ";

        print[3][0] = "***** ";
        print[3][1] = "    * ";
        print[3][2] = " **** ";
        print[3][3] = "    * ";
        print[3][4] = "***** ";

        print[4][0] = "*  *  ";
        print[4][1] = "*  *  ";
        print[4][2] = "***** ";
        print[4][3] = "   *  ";
        print[4][4] = "   *  ";

        print[5][0] = "***** ";
        print[5][1] = "*     ";
        print[5][2] = "***** ";
        print[5][3] = "    * ";
        print[5][4] = "***** ";

        print[6][0] = "***** ";
        print[6][1] = "*     ";
        print[6][2] = "***** ";
        print[6][3] = "*   * ";
        print[6][4] = "***** ";

        print[7][0] = "***** ";
        print[7][1] = "    * ";
        print[7][2] = "    * ";
        print[7][3] = "    * ";
        print[7][4] = "    * ";

        print[8][0] = "***** ";
        print[8][1] = "*   * ";
        print[8][2] = "***** ";
        print[8][3] = "*   * ";
        print[8][4] = "***** ";

        print[9][0] = "***** ";
        print[9][1] = "*   * ";
        print[9][2] = "***** ";
        print[9][3] = "    * ";
        print[9][4] = "***** ";

        int number;
        for (int i = 0; i < 5; i++) {
            for (int j = 0; j < numberString.length(); j++) {
                number = Character.getNumericValue(numberString.charAt(j));
                System.out.print(print[number][i]);
            }
            System.out.println();
        }
        stdIn.close();
    }
}

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:4:11: error: expected ':' before 'static'
    4 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:4:29: error: 'String' has not been declared
    4 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:4:38: error: expected ',' or '...' before 'args'
    4 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:81:2: error: expected ';' after class definition
   81 | }
      |  ^
      |  ;
a.cc: In static member function 'static void PrintFlowerNumber::main(int*)':
a.cc:5:9: error: 'Scanner' was not declared in this scope
    5 |         Scanner stdIn = new Scanner(System.in);
      |         ^~~~~~~
a.cc:7:9: error: 'System' was not declared in this scope
    7 |         System.out.print("数字を入力してください:");
      |         ^~~~~~
a.cc:8:9: error: 'String' was not declared in this scope
    8 |         String numberString = stdIn.nextLine();
      |         ^~~~~~
a.cc:9:16: error: expected ';' before 'print'
    9 |         String print[][] = new String[10][5];
      |                ^~~~~
a.cc:11:9: error: 'print' was not declared in this scope; did you mean 'int'?
   11 |         print[0][0] = "***** ";
      |         ^~~~~
      |         int
a.cc:73:33: error: 'numberString' was not declared in this scope
   73 |             for (int j = 0; j < numberString.length(); j++) {
      |                                 ^~~~~~~~~~~~
a.cc:74:26: error: 'Character' was not declared in this scope
   74 |                 number = Character.getNumericValue(numberString.charAt(j));
      |                          ^~~~~~~~~
a.cc:79:9: error: 'stdIn' was not declared in this scope; did you mean 'std'?
   79 |         stdIn.close();
      |         ^~~~~
      |         std