Language: C++

import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(Sysytem.in);
int[] sum[101];
for(int d=0;d<a;d++){
sum[d]=0;
}
int[][] h=new int[101][101];
int[]  m=new int[101]
int a=scan.nextInt();
int b=scan.nextInt();
for(int c=0;c<a;c++){
for(int d=0;d<b;d++){
h[c][d]=scan.nextInt();
}
}
for(int d=0;d<b;d++){
m[d]=scan.nextInt();
}
for(int c=0;c<a;c++){
for(int d=0;d<b;d++){
sum[c]+=h[c][d]*m[d];

}
}
for(int c=0;c<a;c++){
System.out.println(sum[c]);
}
}
}

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:3:7: error: expected ':' before 'static'
    3 | public static void main(String[] args){
      |       ^~~~~~~
      |       :
a.cc:3:25: error: 'String' has not been declared
    3 | public static void main(String[] args){
      |                         ^~~~~~
a.cc:3:34: error: expected ',' or '...' before 'args'
    3 | public static void main(String[] args){
      |                                  ^~~~
a.cc:31:2: error: expected ';' after class definition
   31 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:4:1: error: 'Scanner' was not declared in this scope
    4 | Scanner scan=new Scanner(Sysytem.in);
      | ^~~~~~~
a.cc:5:4: error: structured binding declaration cannot have type 'int'
    5 | int[] sum[101];
      |    ^~
a.cc:5:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:4: error: empty structured binding declaration
a.cc:5:7: error: expected initializer before 'sum'
    5 | int[] sum[101];
      |       ^~~
a.cc:6:15: error: 'a' was not declared in this scope
    6 | for(int d=0;d<a;d++){
      |               ^
a.cc:7:1: error: 'sum' was not declared in this scope
    7 | sum[d]=0;
      | ^~~
a.cc:9:4: error: structured binding declaration cannot have type 'int'
    9 | int[][] h=new int[101][101];
      |    ^~
a.cc:9:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:9:4: error: empty structured binding declaration
a.cc:9:6: error: expected initializer before '[' token
    9 | int[][] h=new int[101][101];
      |      ^
a.cc:10:4: error: structured binding declaration cannot have type 'int'
   10 | int[]  m=new int[101]
      |    ^~
a.cc:10:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:4: error: empty structured binding declaration
a.cc:10:8: error: expected initializer before 'm'
   10 | int[]  m=new int[101]
      |        ^
a.cc:12:7: error: 'scan' was not declared in this scope
   12 | int b=scan.nextInt();
      |       ^~~~
a.cc:13:15: error: 'a' was not declared in this scope
   13 | for(int c=0;c<a;c++){
      |               ^
a.cc:15:1: error: 'h' was not declared in this scope
   15 | h[c][d]=scan.nextInt();
      | ^
a.cc:19:1: error: 'm' was not declared in this scope
   19 | m[d]=scan.nextInt();
      | ^
a.cc:21:15: error: 'a' was not declared in this scope
   21 | for(int c=0;c<a;c++){
      |               ^
a.cc:23:1: error: 'sum' was not declared in this scope
   23 | sum[c]+=h[c][d]*m[d];
      | ^~~
a.cc:23:9: error: 'h' was not declared in this scope
   23 | sum[c]+=h[c][d]*m[d];
      |         ^
a.cc:23:17: error: 'm' was not declared in this scope
   23 | sum[c]+=h[c][d]*m[d];
      |                 ^
a.cc:27:15: error: 'a' was not declared in this scope
   27 | for(int c=0;c<a;c++){
      |               ^
a.cc:28:1: error: 'System' was not declared in this scope
   28 | System.out.println(sum[c]);
      | ^~~~~~
a.cc:28:20: error: 'sum' was not declared in this scope
   28 | System.out.println(sum[c]);
      |                    ^~~