Language: C

a[100][100],b[100],n,m,sum,i,j;

  scanf("%d %d",&n,&m);
  for(i=0;i<n;i++) for(j=0;j<m;j++) scanf("%d",&a[i][j]);

  for(i=0;i<m;i++) scanf("%d",&b[i]);
  for(i=0;i<n;i++){
    for(sum=0,j=0;j<m;j++) sum+=(a[i][j]*b[j]);
    printf("%d\n",sum);
  }

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a[100][100],b[100],n,m,sum,i,j;
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:13: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a[100][100],b[100],n,m,sum,i,j;
      |             ^
main.c:1:20: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
    1 | a[100][100],b[100],n,m,sum,i,j;
      |                    ^
main.c:1:22: error: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
    1 | a[100][100],b[100],n,m,sum,i,j;
      |                      ^
main.c:1:24: error: type defaults to 'int' in declaration of 'sum' [-Wimplicit-int]
    1 | a[100][100],b[100],n,m,sum,i,j;
      |                        ^~~
main.c:1:28: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
    1 | a[100][100],b[100],n,m,sum,i,j;
      |                            ^
main.c:1:30: error: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
    1 | a[100][100],b[100],n,m,sum,i,j;
      |                              ^
main.c:3:9: error: expected declaration specifiers or '...' before string constant
    3 |   scanf("%d %d",&n,&m);
      |         ^~~~~~~
main.c:3:17: error: expected declaration specifiers or '...' before '&' token
    3 |   scanf("%d %d",&n,&m);
      |                 ^
main.c:3:20: error: expected declaration specifiers or '...' before '&' token
    3 |   scanf("%d %d",&n,&m);
      |                    ^
main.c:4:3: error: expected identifier or '(' before 'for'
    4 |   for(i=0;i<n;i++) for(j=0;j<m;j++) scanf("%d",&a[i][j]);
      |   ^~~
main.c:4:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    4 |   for(i=0;i<n;i++) for(j=0;j<m;j++) scanf("%d",&a[i][j]);
      |            ^
main.c:4:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    4 |   for(i=0;i<n;i++) for(j=0;j<m;j++) scanf("%d",&a[i][j]);
      |                ^~
main.c:4:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    4 |   for(i=0;i<n;i++) for(j=0;j<m;j++) scanf("%d",&a[i][j]);
      |                             ^
main.c:4:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    4 |   for(i=0;i<n;i++) for(j=0;j<m;j++) scanf("%d",&a[i][j]);
      |                                 ^~
main.c:6:3: error: expected identifier or '(' before 'for'
    6 |   for(i=0;i<m;i++) scanf("%d",&b[i]);
      |   ^~~
main.c:6:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    6 |   for(i=0;i<m;i++) scanf("%d",&b[i]);
      |            ^
main.c:6:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    6 |   for(i=0;i<m;i++) scanf("%d",&b[i]);
      |                ^~
main.c:7:3: error: expected identifier or '(' before 'for'
    7 |   for(i=0;i<n;i++){
      |   ^~~
main.c:7:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    7 |   for(i=0;i<n;i++){
      |            ^
main.c:7:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    7 |   for(i=0;i<n;i++){
      |                ^~