criyle/codenet-compile-errors huggingface dataset:
Language: C

#include <stdio.h> int main() { int n,m,i,j; int a,b; int A[100][100] = {0}; int B[100] = {0}; int c[100] = {0}; scanf("%d %d " ,&n,&m); for(j=0; j<n; j++) { for(i=0; i < m; i++) { scanf("%d",&a); A[j][i] = a; } } for(j=0; j<m; j++) { scanf("%d",&b); B[j] = b; } for(j=0;j<n ; j++){ for(i = 0; i<m; i++){ c[j] = c[j] + A[j][i]*B[i]; } } for(i=0;i<n;i++) { printf("%d\n",c[i]); } return 0; } 


Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main() { int n,m,i,j; int a,b; int A[100][100] = {0}; int B[100] = {0}; int c[100] = {0}; scanf("%d %d " ,&n,&m); for(j=0; j<n; j++) { for(i=0; i < m; i++) { scanf("%d",&a); A[j][i] = a; } } for(j=0; j<m; j++) { scanf("%d",&b); B[j] = b; } for(j=0;j<n ; j++){ for(i = 0; i<m; i++){ c[j] = c[j] + A[j][i]*B[i]; } } for(i=0;i<n;i++) { printf("%d\n",c[i]); } return 0; }
      |                    ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h> int main(){ int n,m; int a[110][110]; int b[110]; int i,j; int c; scanf("%d %d\n",&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++){ c=0; for(j=0;j<m;j++){ c+=a[i][j]*b[j]; } printf("%d\n",c); } return 0; } 


Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(){ int n,m; int a[110][110]; int b[110]; int i,j; int c; scanf("%d %d\n",&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++){ c=0; for(j=0;j<m;j++){ c+=a[i][j]*b[j]; } printf("%d\n",c); } return 0; }
      |                    ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include<stdio.h> main() { int n,m; scanf("%d %d",&n,&m); int a[n][m]; int b[m]; long c[n]; int i,j; 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++){ c[i] = 0; for(j=0;j<m;j++){ c[i] += a[i][j]*b[j]; } printf("%d\n",c[i]); } return 0; } 


Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> main() { int n,m; scanf("%d %d",&n,&m); int a[n][m]; int b[m]; long c[n]; int i,j; 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++){ c[i] = 0; for(j=0;j<m;j++){ c[i] += a[i][j]*b[j]; } printf("%d\n",c[i]); } return 0; }
      |                   ^~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h> int main(void) { int n, m; scanf("%d %d", &n, &m); int A[100][100]; int b[100]; int Ab[100] = {0}; int i, j; 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]); } //multiply for (i = 0; i < n; ++i) { for (j = 0; j < m; ++j) { Ab[i] += A[i][j] * b[j]; } } for (i = 0; i < n; ++i) { printf("%d\n", Ab[i]); } return 0; } 


Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(void) { int n, m; scanf("%d %d", &n, &m); int A[100][100]; int b[100]; int Ab[100] = {0}; int i, j; 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]); } //multiply for (i = 0; i < n; ++i) { for (j = 0; j < m; ++j) { Ab[i] += A[i][j] * b[j]; } } for (i = 0; i < n; ++i) { printf("%d\n", Ab[i]); } return 0; }
      |                    ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h> int main(void) { int n, m; scanf("%d %d", &n, &m); int A[100][100]; int b[100]; int Ab[100] = {0}; int i, j; 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]); } //multiply for (i = 0; i < n; ++i) { for (j = 0; j < m; ++j) { Ab[i] += A[i][j] * b[j]; } } for (i = 0; i < n; ++i) { printf("%d\n", Ab[i]); } return 0; } 



Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(void) { int n, m; scanf("%d %d", &n, &m); int A[100][100]; int b[100]; int Ab[100] = {0}; int i, j; 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]); } //multiply for (i = 0; i < n; ++i) { for (j = 0; j < m; ++j) { Ab[i] += A[i][j] * b[j]; } } for (i = 0; i < n; ++i) { printf("%d\n", Ab[i]); } return 0; }
      |                    ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>
int main(void){
    int i,j,n,m;
    int a[n][m];
    int b[m];
    int c[n] = {0};
    
    scanf("%d %d\n",&n,&m);
    
    for (i=1; i<=n; i++)
    {
        for (j=1; j<=m; j++)
        {
            scanf("%d ",&a[i][j]);
            printf("\n");
        }
    }
    
    for (j=1; j<=m; j++)
    scanf("%d\n",&b[j]);
    
    for (i=1; i<=n; i++)
    {
        for (j=1; j<=m; j++)
        {
            c[i] += a[i][j] * b[j];
            printf("%d\n",c[i]);
        }
    }
    
    return 0;
    
    }
    


Compiler output:
main.c: In function 'main':
main.c:6:16: error: variable-sized object may not be initialized except with an empty initializer
    6 |     int c[n] = {0};
      |                ^
Language: C

include<stdio.h>

int main(){
  int n, m;
  int arr1[100][100];
  int arr2[100];
  int i, j;
  int input;
  int res[100];
  int sum;
  
  // input
  scanf("%d %d", &n, &m);
  for(i = 0; i < n; i++){
    for(j = 0; j < m; j++){
      scanf("%d", &input);
      arr1[i][j] = input;
    }
  }

  for(i = 0; i < m; i++){
    scanf("%d", &input);
    arr2[i] = input;
  }

  // calculation
  for(i = 0; i < n; i++){
    sum = 0;
    for(j = 0; j < m; j++){
      sum += arr1[i][j] * arr2[j];
    }
    res[i] = sum;
  }

  // output result
  for(i = 0; i < n; i++){
    printf("%d\n", res[i]);
  }
  
  return 0;
}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include<iostream>
using namespace std;
int main(){
  int n,m;
  int i,j,k;
  int mat[100][100]={{}};
  int ve[100]={};
  cin >> n >> m;
  for(i=0;i<n;i++){
    for(j=0;j<m;j++){
      cin >> mat[i][j];
    }
  }
  for(j=0;j<m;j++) cin >> ve[j];
  for(i=0;i<n;i++){
    int x=0;
    for(j=0;j<m;j++) x+=mat[i][j]*ve[j];
    cout << x << endl;             
  }
   
  return 0;
}


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

include <stdio.h>
int main(void){
int i,j,k;
int n,m,l;
double a[100][100],b[100][100];
double c[100][100]={0};

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

for(i = 0;i < n;i++){
for(j = 0;j < l;j++){
for(k = 0;k < m;k++){
c[i][j]+=a[i][k]*b[k][j];
}
}
}
for(i = 0;i < n;i++){
for(j = 0;j < l;j++){
printf("%.0f",c[i][j]);
if(j != l-1) printf(" ");
else printf("\n");
}
}
return 0;
}


Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>
int main(void){
    
    int n,m;
    scanf("%d",&n);
    scanf("%d",&m);
    int a[100][100];
    int b[100];
    int c[100];
    
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            scanf("%d",&A[i][j]);
        }
    }
    for(int i=0;i<m;i++){
        scanf("%d",&B[i]);
    }
    for(int i=0;i<n;i++){
        C[i]=0;
        for(int j=0;j<m;j++){
            C[i]+=A[i][j]*B[j];
        }
        printf("%d\n",c[i]);
    }
}



Compiler output:
main.c: In function 'main':
main.c:13:25: error: 'A' undeclared (first use in this function)
   13 |             scanf("%d",&A[i][j]);
      |                         ^
main.c:13:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:21: error: 'B' undeclared (first use in this function)
   17 |         scanf("%d",&B[i]);
      |                     ^
main.c:20:9: error: 'C' undeclared (first use in this function)
   20 |         C[i]=0;
      |         ^
Language: C

#include <stdio.h>
int main(void){
    
    int n,m;
    scanf("%d",&n);
    scanf("%d",&m);
    int a[100][100];
    int b[100];
    int c[100];
    
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            scanf("%d",&A[i][j]);
        }
    }
    for(int i=0;i<m;i++){
        scanf("%d",&B[i]);
    }
    for(int i=0;i<n;i++){
        C[i]=0;
        for(int j=0;j<m;j++){
            C[i]+=A[i][j]*B[j];
        }
        printf("%d\n",C[i]);
    }
}



Compiler output:
main.c: In function 'main':
main.c:13:25: error: 'A' undeclared (first use in this function)
   13 |             scanf("%d",&A[i][j]);
      |                         ^
main.c:13:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:21: error: 'B' undeclared (first use in this function)
   17 |         scanf("%d",&B[i]);
      |                     ^
main.c:20:9: error: 'C' undeclared (first use in this function)
   20 |         C[i]=0;
      |         ^
Language: C

#include <stdio.h>
int main(void){
    
    int n,m;
    scanf("%d",&n);
    scanf("%d",&m);
    int a[100][100];
    int b[100];
    int c[100] = {0};
    
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            scanf("%d",&A[i][j]);
        }
    }
    for(int i=0;i<m;i++){
        scanf("%d",&B[i]);
    }
    for(int i=0;i<n;i++){
        C[i]=0;
        for(int j=0;j<m;j++){
            C[i]+=A[i][j]*B[j];
        }
        printf("%d\n",C[i]);
    }
}




Compiler output:
main.c: In function 'main':
main.c:13:25: error: 'A' undeclared (first use in this function)
   13 |             scanf("%d",&A[i][j]);
      |                         ^
main.c:13:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:21: error: 'B' undeclared (first use in this function)
   17 |         scanf("%d",&B[i]);
      |                     ^
main.c:20:9: error: 'C' undeclared (first use in this function)
   20 |         C[i]=0;
      |         ^
Language: C++

using namespace std;
 
int main(){
    int n,m,tmp;
    scanf("%d %d",&n,&m);
    int** A = new int*[n];
    for(int i = 0; i < n; i++) A[i] = new int[m];
    int b[m];
 
    for(int i = 0; i < n; i++){
        for(int j = 0; j < m; j++){
            scanf("%d",&tmp);
            A[i][j] = tmp;
        }
    }
    for(int i = 0; i < m; i++){
        scanf("%d",&tmp);
        b[i] = tmp;
    }
    long long int sum;
    for(int i = 0; i < n; i++){
        sum = 0;
        for(int j = 0; j < m; j++){
            sum += A[i][j] * b[j];
        }
        printf("%lld\n",sum);
    }
 
    for(int i = 0; i < n; i++){
        delete[] A[i];
    }
    delete A;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%d %d",&n,&m);
      |     ^~~~~
a.cc:26:9: error: 'printf' was not declared in this scope
   26 |         printf("%lld\n",sum);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | using namespace std;
Language: C++

#include<iostream>
using namespace std;

int main(){
    int gyou, retsu;
    int array1[100][100], array2[100][1], array3[100][1] = {{}};
    
    cin >> gyou >> retsu;
    for(int i = 0; i < gyou; i++){
        for(int j = 0; j < retsu; j++){
            cin >> array[i][j];
            if(gyou == 0) cin >> array[j][0];
        }
    }
    
     for(int i = 0; i < gyou; i++){
        for(int j = 0; j < retsu; j++){
            for(int k = 0; k < 1; k++){
               cout << array3[i][0] += array1[i][k] * array2[k][j];
            }
           cout << endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: missing template arguments before '[' token
   11 |             cin >> array[i][j];
      |                         ^
a.cc:12:39: error: missing template arguments before '[' token
   12 |             if(gyou == 0) cin >> array[j][0];
      |                                       ^
a.cc:19:37: error: no match for 'operator+=' (operand types are 'std::basic_ostream<char>' and 'int')
   19 |                cout << array3[i][0] += array1[i][k] * array2[k][j];
      |                ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int gyou, retsu;
    int array1[100][100], array2[100][1], array3[100][1] = {{}};
    
    cin >> gyou >> retsu;
    for(int i = 0; i < gyou; i++){
        for(int j = 0; j < retsu; j++){
            cin >> array[i][j];
            if(gyou == 0) cin >> array[j][0];
        }
    }
    
     for(int i = 0; i < gyou; i++){
        for(int j = 0; j < retsu; j++){
            for(int k = 0; k < 1; k++){
               array3[i][0] += array1[i][k] * array2[k][j];
               cout << array3[i][0];
            }
           cout << endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: missing template arguments before '[' token
   11 |             cin >> array[i][j];
      |                         ^
a.cc:12:39: error: missing template arguments before '[' token
   12 |             if(gyou == 0) cin >> array[j][0];
      |                                       ^
Language: C++

#include <cstdio>
#include <iostream>
using namespace std;


int main(){
    int a[101][101], b[101], n,m;
    cin >> n >> m;
    for(int i = 0; i < n; i++)
        for(int j = 0; j < m; j++)
            cin >> a[i][j];
    
    for(int i=0;i<m;i++)
        cin >> b[i]);
    
    for(int i=0;i<n;i++){
        int ans = 0;
        for(int j = 0;j < m;j++)
            ans += a[i][j] * b[j];
        cout << ans << endl;
    }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: expected ';' before ')' token
   14 |         cin >> b[i]);
      |                    ^
      |                    ;
Language: C++

int main(){
    int A[100][100]={},B[100]={},C[100]={};
    int n,m;
    cin>>n>>m;
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++)cin>>A[i][j];
    }
    for(int i=0;i<m;i++)cin>>B[i];
    
    for(int x=0;x<n;x++){
        for(int y=0;y<m;y++){
            C[x]+=A[x][y]*B[y];
        }
    }
    
    for(int i=0;i<n;i++)cout<<C[i]<<endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>n>>m;
      |     ^~~
a.cc:16:25: error: 'cout' was not declared in this scope
   16 |     for(int i=0;i<n;i++)cout<<C[i]<<endl;
      |                         ^~~~
a.cc:16:37: error: 'endl' was not declared in this scope
   16 |     for(int i=0;i<n;i++)cout<<C[i]<<endl;
      |                                     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int matrix[100][100] = {{}};
    int vector[100]={};
    int n, m, i, j, total;
    cin >> n >> m;
    for(i=0;i<n;i++){
        for(j=0;j<m;j++){
            cin >> matrix[i][j]
        }
    }
    for(i=0;i<m;i++) cin >> vector[m];
    for(i=0;i<n;i++){
        total = 0;
        for(j=0;j<m;j++) total += matrix[i][j]*vector[i];
        cout << total << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected ';' before '}' token
   10 |             cin >> matrix[i][j]
      |                                ^
      |                                ;
   11 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;

int main() {
    int n, m;
    int x, y, a[n][m], b[m];
    int c[100];
    cin >> n >> m;
    
    for (int i = 0; i < n; i++){
        for (int j = 0; j < m; j++) {
            cin >> x;
            a[i][j] = x;
        }
    }
    for (int j = 0; j < m; j++) {
        cin >> y;
        b[j] = y;
    }
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            c[i] += a[i][j] * b[j];
        }
    }
    cout << c[i] << endl;
    return 0;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:25:15: error: 'i' was not declared in this scope
   25 |     cout << c[i] << endl;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
    int a,b;
    cin>>a>>b;
    int A[a][b],B[b],C[b];
    for(int i=0;i<a;i++){
        for(int j=0;j<b;j++){
            cin>>A[i][j];
        }
    }
    for(int k=0;k<b;k++){
        cin>>B[k];
    }
    for(int p=0;p<b;p++){
        C[p]=0;
    }
    for(int m=0;m<a;m++){
        for(int n=0;n<b;n++){
            C+=A[m][n]*B[n];
        }
    }
    for(int o=0;o<a;o++){
        cout<<C[o]<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:14: error: incompatible types in assignment of 'int' to 'int [b]'
   21 |             C+=A[m][n]*B[n];
      |             ~^~~~~~~~~~~~~~
Language: C++

#includ<iostream>
using namespace std;
int main(){
    int n,m,A[100][100],b[100],c[100];
    cin>>n>>m;
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            cin>>A[i][j];
        }
    }
    for(int i=0;i<m;i++){
        cin>>b[i];
    }
    for(int i=0;i<n;i++){
        c[i]=0;
        for(int j=0;j<m;j++){
            c[i]+=A[i][j]*b[j];
        }
    }
    for(int i=0;i<n;i++){
        cout<<c[i]<<endl;
    }
    return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin>>n>>m;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includ<iostream>
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout<<c[i]<<endl;
      |         ^~~~
a.cc:21:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:21: error: 'endl' was not declared in this scope
   21 |         cout<<c[i]<<endl;
      |                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #includ<iostream>
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m,A[100][100],b[100],c[100];
    cin>>n>>m;
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            cim>>A[i][j];
        }
    }
    for(int i=0;i<m;i++){
        cin>>b[i];
    }
    for(int i=0;i<n;i++){
        c[i]=0;
        for(int j=0;j<m;j++){
            c[i]+=A[i][j]*b[j];
        }
    }
    for(int i=0;i<n;i++){
        cour<<c[i]<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'cim' was not declared in this scope
    8 |             cim>>A[i][j];
      |             ^~~
a.cc:21:9: error: 'cour' was not declared in this scope
   21 |         cour<<c[i]<<endl;
      |         ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m,A[100][100],b[100],c[100];
    cin>>n>>m;
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            cin>>A[i][j];
        }
    }
    for(int i=0;i<m;i++){
        cin>>b[i];
    }
    for(int i=0;i<n;i++){
        c[i]=0;
        for(int j=0;j<m;j++){
            c[i]+=A[i][j]*b[j];
        }
    }
    for(int i=0;i<n;i++){
        cour<<c[i]<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'cour' was not declared in this scope
   21 |         cour<<c[i]<<endl;
      |         ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x,y,s,t,u;
    int A[x][y],B[s][t],c[u];
    
    int n,m;
    cin>>n>>m;
    for(int i=1; i<=n; i++){
        for(int j=1; j<=m; j++){
            A[i][j]=0;
            B[i]=0;
        }
    }
    
    for(int i=1; i<=n; i++){
        c[i]=0;
        for(int j=0; j<=0; j++){
            c[i]+=A[i][j]*B[i]
        }
    }
    
    for(int i=1; i<=n; i++){
        cout<<c[i]<<endl;
    }
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: incompatible types in assignment of 'int' to 'int [t]'
   13 |             B[i]=0;
      |             ~~~~^~
a.cc:20:26: error: invalid operands of types 'int' and 'int [t]' to binary 'operator*'
   20 |             c[i]+=A[i][j]*B[i]
      |                   ~~~~~~~^~~~~
      |                         |    |
      |                         int  int [t]
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x,y,s,t,u;
    int A[x][y],B[s][t],c[u];
    
    int n,m;
    cin>>n>>m;
    for(int i=1; i<=n; i++){
        for(int j=1; j<=m; j++){
            A[i][j]=0;
            B[i]=0;
        }
    }
    
    for(int i=1; i<=n; i++){
        c[i]=0;
        for(int j=0; j<=0; j++){
            c[i]+=A[i][j]*B[i];
        }
    }
    
    for(int i=1; i<=n; i++){
        cout<<c[i]<<endl;
    }
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: incompatible types in assignment of 'int' to 'int [t]'
   13 |             B[i]=0;
      |             ~~~~^~
a.cc:20:26: error: invalid operands of types 'int' and 'int [t]' to binary 'operator*'
   20 |             c[i]+=A[i][j]*B[i];
      |                   ~~~~~~~^~~~~
      |                         |    |
      |                         int  int [t]
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x,y,s,t,u;
    int A[x][y],B[s][t],c[u];
    
    int n,m;
    cin>>n>>m;
    for(int i=1; i<=n; i++){
        for(int j=1; j<=m; j++){
            A[i][j]=0;
            B[j]=0;
        }
    }
    
    for(int i=1; i<=n; i++){
        c[i]=0;
        for(int j=0; j<=m; j++){
            c[i]+=A[i][j]*B[j];
        }
    }
    
    for(int i=1; i<=n; i++){
        cout<<c[i]<<endl;
    }
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: incompatible types in assignment of 'int' to 'int [t]'
   13 |             B[j]=0;
      |             ~~~~^~
a.cc:20:26: error: invalid operands of types 'int' and 'int [t]' to binary 'operator*'
   20 |             c[i]+=A[i][j]*B[j];
      |                   ~~~~~~~^~~~~
      |                         |    |
      |                         int  int [t]
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x,y,s,t,u;
    int A[x][y],B[s][t],c[u];
    
    int n,m;
    cin>>n>>m;
    for(int i=1; i<=n; i++){
        for(int j=1; j<=m; j++){
            A[i][j]=0;
            B[i]=0;
        }
    }
    
    for(int i=1; i<=n; i++){
        c[i]=0;
        for(int j=0; j<=m; j++){
            c[i]+=A[i][j]*B[j];
        }
    }
    
    for(int i=1; i<=n; i++){
        cout<<c[i]<<endl;
    }
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: incompatible types in assignment of 'int' to 'int [t]'
   13 |             B[i]=0;
      |             ~~~~^~
a.cc:20:26: error: invalid operands of types 'int' and 'int [t]' to binary 'operator*'
   20 |             c[i]+=A[i][j]*B[j];
      |                   ~~~~~~~^~~~~
      |                         |    |
      |                         int  int [t]
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x,y,s,t;
    int A[x][y],B[s],c[t];
    
    int n,m;
    cin>>n>>m;
    for(int i=0; i<n; i++){
        for(int j=0; j<m; j++){
            cin>>A[i][j];
        }
    }
    for(int j=0; j<m;j++){
        con>>B[j];
    }
    
    for(int i=0; i<n; i++){
        c[i]=0;
        for(int j=0; j<m; j++){
            c[i]+=A[i][j]*B[j];
        }
    }
    
    for(int i=0; i<n; i++){
        cout<<c[i]<<endl;
    }
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'con' was not declared in this scope
   16 |         con>>B[j];
      |         ^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    
    int n,m,i,j;
    cin >> n >> m;//縦横
    
    int A[n][m];
    for(int i=0; i<n; i+=1){
        for(int j=0; j<m; j+=1){
            cin >> int x;
            A[i][j] = x;
        }
    }
    
    int b[m];
    for(int j=0; j<m; j+=1){
        cin >> int y;
        b[j] = y;
    }
    
    int c[n];
    for(int i=0; i<n; i+=1){
        c[i] = 0;
        for(int j=0; j<m; j+=1){
            c[i] = (c[i] + A[i][j] * b[j]);
        }
        cout << c[i] << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected primary-expression before 'int'
   12 |             cin >> int x;
      |                    ^~~
a.cc:13:23: error: 'x' was not declared in this scope
   13 |             A[i][j] = x;
      |                       ^
a.cc:19:16: error: expected primary-expression before 'int'
   19 |         cin >> int y;
      |                ^~~
a.cc:20:16: error: 'y' was not declared in this scope
   20 |         b[j] = y;
      |                ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m;
    cin>>n>>m;
    int x[100][100]={{}};
    int y[100]={{}};
    for(int j=0;j<m;j++){
        for(int i=0;i<n;i++){
            cin>>x[i][j]>>y[j];
        }
    }
    for(int i=0;i<n;i++){
        for(int j=0;i<m<i++){
            cout<<x[i][j]*y[j]<<endl
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:28: error: expected ';' before ')' token
   14 |         for(int j=0;i<m<i++){
      |                            ^
      |                            ;
a.cc:15:37: error: expected ';' before '}' token
   15 |             cout<<x[i][j]*y[j]<<endl
      |                                     ^
      |                                     ;
   16 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m;
    cin>>n>>m;
    int x[100][100]={{}};
    int y[100]={};
    for(int j=0;j<m;j++){
        for(int i=0;i<n;i++){
            cin>>x[i][j]>>y[j];
        }
    }
    for(int i=0;i<n;i++){
        for(int j=0;i<m<i++){
            cout<<x[i][j]*y[j]<<endl
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:28: error: expected ';' before ')' token
   14 |         for(int j=0;i<m<i++){
      |                            ^
      |                            ;
a.cc:15:37: error: expected ';' before '}' token
   15 |             cout<<x[i][j]*y[j]<<endl
      |                                     ^
      |                                     ;
   16 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m;
    cin>>n>>m;
    int x[100][100]={{}};
    int y[100]={};
    for(int j=0;j<m;j++){
        for(int i=0;i<n;i++){
            cin>>x[i][j]>>y[j];
        }
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<m<i++){
            cout<<x[i][j]*y[j]<<endl
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:28: error: expected ';' before ')' token
   14 |         for(int j=0;j<m<i++){
      |                            ^
      |                            ;
a.cc:15:37: error: expected ';' before '}' token
   15 |             cout<<x[i][j]*y[j]<<endl
      |                                     ^
      |                                     ;
   16 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m;
    cin>>n>>m;
    int x[100][100]={{}};
    int y[100]={};
    for(int j=0;j<m;j++){
        for(int i=0;i<n;i++){
            cin>>x[i][j]>>y[j];
        }
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<m;<i++){
            cout<<x[i][j]*y[j]<<endl
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: expected primary-expression before '<' token
   14 |         for(int j=0;j<m;<i++){
      |                         ^
a.cc:15:37: error: expected ';' before '}' token
   15 |             cout<<x[i][j]*y[j]<<endl
      |                                     ^
      |                                     ;
   16 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m;
    cin>>n>>m;
    int x[100][100]={{}};
    int y[100]={};
    for(int j=0;j<m;j++){
        for(int i=0;i<n;i++){
            cin>>x[i][j]>>y[j];
        }
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<m;i++){
            cout<<x[i][j]*y[j]<<endl
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:37: error: expected ';' before '}' token
   15 |             cout<<x[i][j]*y[j]<<endl
      |                                     ^
      |                                     ;
   16 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m;
    cin>>n>>m;
    int x[100][100]={{}};
    int y[100]={};
    for(int i=0;i<n;j++){
        for(int j=0;j<n;i++){
            cin>>x[i][j];
        }
    for(int j=0;j<m;j++){
        cin>>y[j];
    }
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<m;i++){
            cout<<x[i][j]*y[j]<<endl;
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'j' was not declared in this scope
    8 |     for(int i=0;i<n;j++){
      |                     ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m;
    cin>>n>>m;
    int x[100][100]={{}};
    int y[100]={};
    for(int i=0;i<n;i++){
        for(int j=0;j<n;i++){
            cin>>x[i][j];
        }
    for(int j=0;j<m;j++){
        cin>>y[j];
    }
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            int z=0;
            z+=x[i][j]*y[j]
            cout<<z<<endl;
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:28: error: expected ';' before 'cout'
   19 |             z+=x[i][j]*y[j]
      |                            ^
      |                            ;
   20 |             cout<<z<<endl;
      |             ~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m,i,j,a,k,b,l,p,q;
    cin>>n >>m;
    int A[n][m]={};
    for(i=1;i<=n;i++){
        for(j=1;j<=m;j++){
            cin>>a;
            A[i-1][j-1]=a;
        }
        
    }
    int B[m]={};
    for(k=1;k<=m;k++){
        cin>>b;
        B[k-1]=b;
    }
    int C[n]={};
    for(l=1;l<=n;l++){
        for (p=1;p<=m;p++){
            C[l-1]+=A[l-1][p-1]*B[p-1]
        }
    }
    for(q=1;q<=m;q++){
        cout<<C[q]<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:39: error: expected ';' before '}' token
   22 |             C[l-1]+=A[l-1][p-1]*B[p-1]
      |                                       ^
      |                                       ;
   23 |         }
      |         ~
Language: C++

#include <iostream>
using namespace std;
int main(void){

    int n,m;
    
    cin >> n >> m;
    
    int A[n][m];
    int b[m];
    int c[m];
    
    int d;
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            cin >> d;
            A[i][j]=d;
        }
    }
    for(int j=0;j<m;j++){
        cin >> d;
        b[j]=d;
    }

    for(int i=0;i<n;i++){
        c=0;
        for(int j=0;j<m;j++){
            c += (A[i][j] * b[j]);
        }
        cout << c << endl;
    }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:26:10: error: incompatible types in assignment of 'int' to 'int [m]'
   26 |         c=0;
      |         ~^~
a.cc:28:15: error: incompatible types in assignment of 'int' to 'int [m]'
   28 |             c += (A[i][j] * b[j]);
      |             ~~^~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>

using namespace std;

int main() {
    int n,m;
    cin >> n >> m;
    int A[n][m], b[m], c[n];
    for(int i = 0;i < n; i++) {
        for(int j = 0; j < m; j++) {
            cin >> A[n][m];
        }
    }
    for(j = 0; j < m; j++)
        cin >> b[j];
    for(int i = 0;i < n; i++) {
        for(int j = 0; j < m; j++) {
            c[i] += A[i][j] + b[j];
        }
    }
    for (i = 0; i < n; i++)
        cout << c[i] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'j' was not declared in this scope
   14 |     for(j = 0; j < m; j++)
      |         ^
a.cc:21:10: error: 'i' was not declared in this scope
   21 |     for (i = 0; i < n; i++)
      |          ^
Language: C++

#include<stdio.h>
int main()
{
int m,n,x;
int p[100][100];
intpp[100];

scanf("%d",&n);scanf("%d",&m);
for(int i=0;i<n;i++){
for(int j=0;j<m;j++)
{
scanf("%d",&x);
p[i][j]=x;
}
}
for(int i=0;i<n;i++){
scanf("%d",&x);
for(int k=0;k<m;k++)
{
pp[k]+=p[i][k]*x;
}
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'intpp' was not declared in this scope; did you mean 'int'?
    6 | intpp[100];
      | ^~~~~
      | int
a.cc:20:1: error: 'pp' was not declared in this scope; did you mean 'p'?
   20 | pp[k]+=p[i][k]*x;
      | ^~
      | p
Language: C++

#include <iostream>

int main(){
	int n;
	int m;
	int A[100][100];
	int b[100];
	int c[100];
	for(int i=0;i<n;i++){
		for(int j=0;j<m;j++){
			std::cin>>A[i][j];
		}
	}
	for(int i=0;i<m;i++){
		std::cin>>b[i];
	}
	for(int i=0;i<n;i++){
		for(int j=0;j<m;j++){
			c[i]+=A[i][j]*b[j];
		}
		std::cout<<c[i]<<std::endl;
	}
	std::cout<<c[i]<<std::endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:22: error: 'i' was not declared in this scope
   23 |         std::cout<<c[i]<<std::endl;
      |                      ^
Language: C++

#include <iostream>
#include <bits/stdc++.h>
#include <string>
#include <ctype.h>
#include <algorithm>
#include <cmath>
#include <vector>

#define REP(i, n) for(int i=0;i<(int)(n);i++)
#define ALL(x) (x).begin(),(x).end()
#define square(x) (x) * (x)

const int INF = 1e9;

using namespace std;

int main() {
    int n, m;
    cin >> n >> m;
    int a[n][m];
    int b[m];
    int res[n];
    REP(i, n)
        REP(j, m)
            cin >> a[i][j];
    REP(i, m)
        cin >> b[i];
    REP(i, n)
        res[i] = 0;
        REP(j, m)
            res[i] += (a[i][j] * b[j]);

    REP(i, n)
        cout << res[i] << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:17: error: 'i' was not declared in this scope
   31 |             res[i] += (a[i][j] * b[j]);
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int i,j,n,m,a;
cin>>n>>m;
int num[n][m]={0};
int num2[m]={0};
for(i=0;i<n;i++){
for(j=0;j<m;j++){
 cin>>a;
 num[i][j]=a;
}
}
for(i=0;i<m;i++){
 cin>>a;
 num2[i]=a;
}
for(i=0;i<n;i++){
 num[i][0]*=num[0];
}
for(i=1;i<m;i++){
 for(j=0;j<n;j++){
   num[j][i]=num[j][i]*num2[i]+num[j][i-1];
   }
 }
 for(i=0;i<n;i++){
cout<<num[i][m-1];
}
return 0;
}

 
 

Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: invalid operands of types 'int' and 'int*' to binary 'operator*'
   19 |  num[i][0]*=num[0];
      |  ~~~~~~~~~^~~~~~~~
a.cc:19:11: note:   in evaluation of 'operator*=(int, int*)'
Language: C++

#include<cstdio>
#include<cmath>
#include<algorithm>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<cstdlib>
#include<iomanip>
#include<queue>
#include<set>
#include <valarray>
#include<stack>
#include<sstream>
#include<math.h>
  
using namespace std;
   
void Solution(int n)
{
    int n, m;
    int a[100][100] = {{0}};
    int b[100] = {0};
    int sum = 0;
    
    cin>>n>>m;
    
    for(int i = 0; i < n; i++)
    {
        for(int j = 0; j < m; j++)
        {
            cin>>a[i][j];
        }

    }
    
    for(int i = 0; i < m; i++)
    {
        cin>>b[i];
    }
    
    for(int i = 0; i < n; i++)
    {
        for(int j = 0; j < m; j++)
        {
             sum += b[j] * a[i][j];
        }
        
        cout<<sum<<endl;
        sum = 0;
        
    }
        
}
  
int main()
{
    Solution(n);
    return 0;
}

Compiler output:
a.cc: In function 'void Solution(int)':
a.cc:21:9: error: declaration of 'int n' shadows a parameter
   21 |     int n, m;
      |         ^
a.cc:19:19: note: 'int n' previously declared here
   19 | void Solution(int n)
      |               ~~~~^
a.cc: In function 'int main()':
a.cc:58:14: error: 'n' was not declared in this scope; did you mean 'yn'?
   58 |     Solution(n);
      |              ^
      |              yn
Language: C++

#include<iostream>
using namespace std;
int n,m,zyo1[100][100],zyo2[100],sum[100];
int in(){
cin>>n>>m;
for(int a=0;a<n;a++){
for(int b=0;b<m;b++){
cin>>zyo1[a][b];
}
}
for(int a=0;a<m;a++)[
cin>>zyo2[a];
}
}
int com(){
for(int a=0;a<n;a++){
for(int b=0;b<m;b++){
sum[b]=zyo1[a][b]*zyo2[b];
}
}
}
int out(){
for(int b=0;b<m;b++){
cout<<sum[b]<<endl;
}
}
int main(){
in();
com();
out();
return 0;
}

Compiler output:
a.cc: In function 'int in()':
a.cc:12:1: warning: capture of variable 'std::cin' with non-automatic storage duration
   12 | cin>>zyo2[a];
      | ^~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::istream std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:4: error: expected ',' before '>>' token
   12 | cin>>zyo2[a];
      |    ^~
      |    ,
a.cc:12:4: error: expected identifier before '>>' token
   12 | cin>>zyo2[a];
      |    ^~
a.cc:12:13: error: expected ']' before ';' token
   12 | cin>>zyo2[a];
      |             ^
      |             ]
a.cc: In lambda function:
a.cc:12:13: error: expected '{' before ';' token
a.cc: In function 'int in()':
a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | }
      | ^
a.cc: At global scope:
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
a.cc: In function 'int com()':
a.cc:21:1: warning: no return statement in function returning non-void [-Wreturn-type]
   21 | }
      | ^
a.cc: In function 'int out()':
a.cc:26:1: warning: no return statement in function returning non-void [-Wreturn-type]
   26 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){

int n,m,b[1000],a[1000][1000],SUM[1000];
SUM=0;

cin>>n>>m;

for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){

cin>>a[i][j];

}
}

for(int i=1;i<=m;i++){
cin>>b[i];
}

for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
SUM[i] += a[i][j]*b[j];
}
cout<<SUM[i]<<endl;
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: incompatible types in assignment of 'int' to 'int [1000]'
    7 | SUM=0;
      | ~~~^~
Language: C++

#include<iostream>
using namespace std;

int main(){

int n,m,b[1000],a[1000][1000],SUM[1000];

for(int i=1;i<1000;i++){
SUM=0;
}

cin>>n>>m;

for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){

cin>>a[i][j];

}
}

for(int i=1;i<=m;i++){
cin>>b[i];
}

for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
SUM[i] += a[i][j]*b[j];
}
cout<<SUM[i]<<endl;
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: incompatible types in assignment of 'int' to 'int [1000]'
    9 | SUM=0;
      | ~~~^~
Language: C++

#define _USE_MATH_DEFINES 
#include <cmath>
#include<iostream>
#include<iomanip>
#include<cstdio>
#include<string>
#include<vector>
#define rep(i,start,n) for(int i=start;i<n;i++)
#define And &&
#define Or ||
#define Lb cout<<endl
using namespace std;

int main(void) {
	int n, m; cin >> n >> m;
	vector<vector<int>???> a(n, vector<int>(m));
	vector<int> b(m);
	vector<int> c(m);
	//????????????
	rep(i, 0, n) {
		rep(j, 0, m) {
			cin >> a[i][j];
		}
	}
	
	rep(i, 0, m) {
		cin >> b[i];
	}

	rep(i, 0, n) {
		c[i] = 0;
		rep(j, 0, m) {
			c[i] += a[i][j] * b[j];
		}
	}

	rep(i, 0, n) {
		cout << c[i] << endl;
	}
	return 0;
}

Compiler output:
a.cc:16:28: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
   16 |         vector<vector<int>???> a(n, vector<int>(m));
a.cc: In function 'int main()':
a.cc:16:30: error: template argument 1 is invalid
   16 |         vector<vector<int>???> a(n, vector<int>(m));
      |                              ^
a.cc:16:30: error: template argument 2 is invalid
a.cc:16:51: error: expression list treated as compound expression in initializer [-fpermissive]
   16 |         vector<vector<int>???> a(n, vector<int>(m));
      |                                                   ^
a.cc:16:37: error: cannot convert 'std::vector<int>' to 'int' in initialization
   16 |         vector<vector<int>???> a(n, vector<int>(m));
      |                                     ^~~~~~~~~~~~~~
      |                                     |
      |                                     std::vector<int>
a.cc:22:33: error: invalid types 'int[int]' for array subscript
   22 |                         cin >> a[i][j];
      |                                 ^
a.cc:33:34: error: invalid types 'int[int]' for array subscript
   33 |                         c[i] += a[i][j] * b[j];
      |                                  ^
Language: C++

#include<iostream>
using namespace std;

int main(){
	int A[100][100];
	int B[100];
	int C[100];
	int n=0,m=0;

	cin >> n >> m;
	for(int i=0;i<n;i++){
		for(int j=0;j<m;j++){
			cin >> A[i][j];
			}
		}
	for(int j=0;j<m;j++){
		cin >> B[j];
		}
	for(int i=0;i<m;i++){
		C[i]=0;
		for(int j=0;j<n;j++){
			C[i]+=A[i][j] * B[j][0];
			}
		}
	for(int i=0;i<n;i++){cout<<C[i]<<endl;}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:45: error: invalid types 'int[int]' for array subscript
   22 |                         C[i]+=A[i][j] * B[j][0];
      |                                             ^
Language: C++

#include<iostream>
using namespace std;

int main(){
 int n,m,ab = 0;
 int a[100][100],b[100];

 cin >> n >> m:

 for(int i = 0; i < n; i++){
  for(int j = 0; j < m; j++){
   cin >> a[i][j];
  }
 }

 for(int i = 0; i < m; i++){
  cin >> b[i];
 }

 for(int i = 0; i < n; i++){
  for(int j = 0; j < m; j++){
   ab += a[i][j] * b[j];
  }
  cout << ab << endl;
 }

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before ':' token
    8 |  cin >> n >> m:
      |               ^
      |               ;
a.cc:10:17: error: 'i' was not declared in this scope
   10 |  for(int i = 0; i < n; i++){
      |                 ^
Language: C++

#include<iostream>
#include<iomanip>
using namespace std;

int main(){
	int m,n;
	cin >> n >> m;

	int A[n][m],b[m],c[n];

	for(int i=0;i<n;i++){
		for(int j=0,j<m,j++){
			cin >> a[i][j];
		}
	}
	for(int i=0;i<m;i++){
		cin >> b[i];
	}

	for(int i=0;i<n;i++){
		c[i]=0
		for(int j=0;j<m;j++){
			c[i]=c[i]+a[i][j]*b[j];
		}
		cout << c[i] << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: expected ';' before '<' token
   12 |                 for(int j=0,j<m,j++){
      |                              ^
      |                              ;
a.cc:12:30: error: expected primary-expression before '<' token
a.cc:12:36: error: expected ';' before ')' token
   12 |                 for(int j=0,j<m,j++){
      |                                    ^
      |                                    ;
a.cc:13:32: error: 'a' was not declared in this scope
   13 |                         cin >> a[i][j];
      |                                ^
a.cc:21:23: error: expected ';' before 'for'
   21 |                 c[i]=0
      |                       ^
      |                       ;
   22 |                 for(int j=0;j<m;j++){
      |                 ~~~    
a.cc:22:29: error: 'j' was not declared in this scope
   22 |                 for(int j=0;j<m;j++){
      |                             ^
Language: C++

#include<iostream>
#include<iomanip>
using namespace std;

int main(){
	int m,n;
	cin >> n >> m;

	int A[n][m],b[m],c[n];

	for(int i=0;i<n;i++){
		for(int j=0;j<m;j++){
			cin >> a[i][j];
		}
	}
	for(int i=0;i<m;i++){
		cin >> b[i];
	}

	for(int i=0;i<n;i++){
		c[i]=0;
		for(int j=0;j<m;j++){
			c[i]=c[i]+a[i][j]*b[j];
		}
		cout << c[i] << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:32: error: 'a' was not declared in this scope
   13 |                         cin >> a[i][j];
      |                                ^
a.cc:23:35: error: 'a' was not declared in this scope
   23 |                         c[i]=c[i]+a[i][j]*b[j];
      |                                   ^
Language: C++

#include <iostream>
using namespace std;

int main() {
int n,m;
int a[101][101]; int b[101];

cin>>n>>m;
for(int i=0;i<n;i++){
for(int j=1; j<=m; j++){
cin>>a[i][j];
}
}	

for(int i=0;i<m;i++){

cin>>b[i];}

for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {


int ans=0; 
ans+=(a[i][j]*b[j]);}

cout<<ans<<endl;


// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   26 | cout<<ans<<endl;
      |       ^~~
      |       abs
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <stdio.h>
int n, m, a[100][100], b[100];
int main() {
	scafn("%d%d", &n, &m);
	for(int i = 0; i < n; i++) {
		for(int j = 0; j < m; j++) {
			scanf("%d", &a[i][j]);
		}
	}
	for(int i = 0; i < m; i++) scanf("%d", &b[i]);
	for(int i = 0; i < n; i++) {
		int ret = 0;
		for(int j = 0; j < m; j++) ret += a[i][j] * b[j];
		printf("%d\n", ret);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scafn' was not declared in this scope; did you mean 'scanf'?
    4 |         scafn("%d%d", &n, &m);
      |         ^~~~~
      |         scanf
Language: C++

#include <iostream>

const int N = 100;
const int M = 100;

int main(void) {
  int A[N][M] = {0};
  int b[M] = {0};
  int c[M] = {0}

  int n = 0;
  int m = 0;

  std::cin >> n >> m;

  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      std::cin >> A[i][j];
    }
  }

  for (int i = 0; i < m; i++) {
    std::cin >> b[i];
  }

  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      c[i] = c[i] +  A[i][j] * b[j];
    }
  }

  for (int i = 0; i < n; i++) {
    std::cout << c[i] << std::endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'int'
   11 |   int n = 0;
      |   ^~~
a.cc:14:15: error: 'n' was not declared in this scope
   14 |   std::cin >> n >> m;
      |               ^
Language: C++

#include <stdio.h>

void	int	zikkou(const	int	n,const	int	m)
{
	int	i,j;
	
	int	A[n][m];
	int	b[m];
	int	c[n] = {0};
	
	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(j=0;	j<m;	j++)
			c[i] = c[i] + A[i][j] +b[j];
		printf("%d\n",c[i]);
	}
	
	
}


int main(void)
{
	int	n,m;

	scanf("%d%d",&n,&m);
	
	zikkou(n,m);
	
	return(0);
}

Compiler output:
a.cc:3:1: error: two or more data types in declaration of 'zikkou'
    3 | void    int     zikkou(const    int     n,const int     m)
      | ^~~~
a.cc: In function 'int main()':
a.cc:35:9: error: 'zikkou' was not declared in this scope
   35 |         zikkou(n,m);
      |         ^~~~~~