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

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


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

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


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

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


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

#include<iostream>
using namespace std;

int main(){
    int n,m,l;
    int A[101][101], B[101][101];
    
    cin>>n>>m>>l;
    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++){
        for(int j=1; j<=l; j++) {
            cin>>B[i][j];
        }
    }
    for(int i=1; i<=n; i++){
        for(int j=1; j<=l; j++){
            C[i][j]=0;
            long long sum=0;
            for(int k=1; k<=m; k++){
                sum+=A[i][k]*B[k][j];
            }
        }
    }
    
    for(int i=1; i<=n; i++){
        for(int j=1; j<=1; j++){
            if(j==1) cout<<C[i][j];
            else cout<<" "<<C[i][j];
        }
        cout<<endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: error: 'C' was not declared in this scope
   21 |             C[i][j]=0;
      |             ^
a.cc:31:28: error: 'C' was not declared in this scope
   31 |             if(j==1) cout<<C[i][j];
      |                            ^
a.cc:32:29: error: 'C' was not declared in this scope
   32 |             else cout<<" "<<C[i][j];
      |                             ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int n,m,l;
    int A[101][101], B[101][101];
    
    cin>>n>>m>>l;
    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++){
        for(int j=1; j<=l; j++) {
            cin>>B[i][j];
        }
    }
    for(int i=1; i<=n; i++){
        for(int j=1; j<=l; j++){
            C[i][j]=0;
            long long sum=0;
            for(int k=1; k<=m; k++){
                sum+=A[i][k]*B[k][j];
            }
        }
    }
    
    for(int i=1; i<=n; i++){
        for(int j=1; j<=1; j++){
            if(j==1) cout<<sum;
            else cout<<" "<<sum;
        }
        cout<<endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: error: 'C' was not declared in this scope
   21 |             C[i][j]=0;
      |             ^
a.cc:31:28: error: 'sum' was not declared in this scope
   31 |             if(j==1) cout<<sum;
      |                            ^~~
a.cc:32:29: error: 'sum' was not declared in this scope
   32 |             else cout<<" "<<sum;
      |                             ^~~
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: 'i' was not declared in this scope
   17 |             cin>>y[i][j];
      |                    ^
a.cc:25:24: error: 'j' was not declared in this scope
   25 |             cout<<z[i][j];
      |                        ^
Language: C++

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


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

#include<stdio.h>

int main(){
    int n,m,l;
    scanf("%d %d %d",&n,&m,&l);
    int mat1[n][m]={},mat2[m][l] = {},result[n][l] = {};
    for(int i = 0;i < n;i++){
        for(int j = 0;j < m;j++){
            scanf("%d",&mat1[i][j]):
        }
    }
    for(int i = 0;i < m;i++){
        for(int j = 0;j < l;j++){
            scanf("%d",&mat2[i][j]):
        }
    }
    for(int i = 0;i < m;i++){
        for(int j = 0;j < l;j++){
            scanf("%d",&mat2[i][j]):
        }
    }
    
    int x=0;
    for(int i = 0;i < n;i++){
        for(int j = 0;j < l;j++){
            for(int k = 0;k < m;k++){
                result[i][j] += mat1[i][k] * mat2[k][j];
            }
        }
    }
    
    for(int i = 0;i < n;i++){
        for(int j = 0;j < l;j++){
            if(j != l-1){
                printf("%d ",result[i][j]);
            } else{
                printf("%d\n",result[i][j]);
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: expected ';' before ':' token
    9 |             scanf("%d",&mat1[i][j]):
      |                                    ^
      |                                    ;
a.cc:14:36: error: expected ';' before ':' token
   14 |             scanf("%d",&mat2[i][j]):
      |                                    ^
      |                                    ;
a.cc:19:36: error: expected ';' before ':' token
   19 |             scanf("%d",&mat2[i][j]):
      |                                    ^
      |                                    ;
Language: C++

#include<iostream>
using namespace std;

int main(){
    int n,m,l;
    long long A[100][100],B[100][100],C[100][100];
    
    cin >> n >> m >> l;
    for (int i=0; i<n; i++)
        for (j=0; j<m; j++) cin >> A[i][j];
    for (int i=0; i<m; i++)
        for(int j=0; j<l; j++) cin >> B[i][j];
        
    for (int i=0; i<n; i++){
        for (int j=0; j<1; j++){
            C[i][j]=0;
            for (int k=0; k<m; k++){
                C[i][j] += A[i][k]*B[k][j];
            }
        }
    }
    
    for (int i=0; i<n; i++){
        for (int j=0; j<l; j++){
            if (j) cout << " ";
            cout << C[i][j];
        }
        cout << endl;
    }
    return 0;
        
    
}


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

#include<iostream>
using namespace std;
int main(){
    int n,m,l,i,j,k,a,b;
    cin>>n >>m >>l;
    int aik[n][m];
    for(i=1;i<=n;i++){
        for(j=1;j<=m;j++){
            aik[i-1][j-1]=0;
        }
        
    }
    for(i=1;i<=n;i++){
        for(j=1;j<=m;j++){
            cin>>a;
            aik[i-1][j-1]=a;
        }
        
    }
    int bkj[m][l];
    for(i=1;i<=m;i++){
        for(j=1;j<=l;j++){
            bkj[i-1][j-1]=0;
        }
    }
    for(i=1;i<=m;i++){
        for(j=1;j<=l;j++){
            cin>>b;
            bkj[i-1][j-1]=b;
        }
    }
    
    
    int cij[n][l];
    for(i=1;i<=n;i++){
        for(j=1;j<=l;j++){
            cij[i-1][j-1]=0;
        }
    }
    for(i=1;i<=n;i++){
        for(j=1;j<=l;j++){
            for(k=1;k=<=m;k++){
                cij[i][j]+=aik[i-1][k-1]+bkj[k-1][j-1]
            }
            if(j!=l){
                cout<<cij[i][j]<<" ";
            }
            else{
                cout<<cij[i][j]<<endl;
            }
        }
    }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:42:23: error: expected primary-expression before '<=' token
   42 |             for(k=1;k=<=m;k++){
      |                       ^~
a.cc:43:55: error: expected ';' before '}' token
   43 |                 cij[i][j]+=aik[i-1][k-1]+bkj[k-1][j-1]
      |                                                       ^
      |                                                       ;
   44 |             }
      |             ~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m,l,i,j,k,a,b;
    cin>>n >>m>>l;
    int aik[n][m];
    for(i=1;i<=n;i++){
        for(j=1;j<=m;j++){
            aik[i-1][j-1]=0;
            
        }
        
    }
    for(i=1;i<=n;i++){
        for(j=1;j<=m;j++){
            cin>>a;
            aik[i-1][j-1]=a;
            
        }
           
    }
    int bkj[m][l];
    for(i=1;i<=m;i++){
        for(j=1;j<=l;j++){
            bkj[i-1][j-1]=0;
        }
    }
    for(i=1;i<=m;i++){
        for(j=1;j<=l;j++){
            cin>>b;
            bkj[i-1][j-1]=b;
            
        }
    }
    
    
    
    int cij[n][l];
    for(i=1;i<=n;i++){
        for(j=1;j<=l;j++){
            cij[i-1][j-1]=0;
        }
    }
    for(i=1;i<=n;i++){
        for(j=1;j<=l;j++){
            for(k=1;k<=m;k++){
                cij[i-1][j-1]+=aik[i-1][k-1]*bkj[k-1][j-1];
            }
            
           
        }
    }
    for(int i = 0; i < n; i++){
	    for(int j = 0; j < l-1; j++){
			printf("%lld ",C[i][j]);
		}
		printf("%lld\n",C[i][l-1]);
	}
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:55:40: error: 'C' was not declared in this scope
   55 |                         printf("%lld ",C[i][j]);
      |                                        ^
a.cc:57:33: error: 'C' was not declared in this scope
   57 |                 printf("%lld\n",C[i][l-1]);
      |                                 ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int n,m,l,a,b;
    long c=0;
    cin >>n>>m>>l;
    int x[101][101];
    int y[101][101];
    for (int i=1;i<=n,i++){
        for (int j=1;j<=m,j++){
            cin>>a;
            a = x[i][j];
        }
    }
    for (int i=1;i<=m,i++){
        for (int j=1;j<=l,j++){
            cin>>b;
            b = x[i][j];
        }
    }
    for (int h=1;h<=n,h++){
        for(i=1;i<=l;i++){
            for(j=1;j<=m;j++){
                c += x[h][j]*y[h][i];
            }
        if(i==1){
            cout << c;
        }else{
            cout<<" "<<c;
        }
        }
        cout<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before ')' token
    9 |     for (int i=1;i<=n,i++){
      |                          ^
      |                          ;
a.cc:10:30: error: expected ';' before ')' token
   10 |         for (int j=1;j<=m,j++){
      |                              ^
      |                              ;
a.cc:15:26: error: expected ';' before ')' token
   15 |     for (int i=1;i<=m,i++){
      |                          ^
      |                          ;
a.cc:16:30: error: expected ';' before ')' token
   16 |         for (int j=1;j<=l,j++){
      |                              ^
      |                              ;
a.cc:21:26: error: expected ';' before ')' token
   21 |     for (int h=1;h<=n,h++){
      |                          ^
      |                          ;
a.cc:22:13: error: 'i' was not declared in this scope
   22 |         for(i=1;i<=l;i++){
      |             ^
a.cc:23:17: error: 'j' was not declared in this scope
   23 |             for(j=1;j<=m;j++){
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int n,m,l,a,b;
    long c=0;
    cin >>n>>m>>l;
    int x[101][101];
    int y[101][101];
    for (int i=1;i<=n,i++){
        for (int j=1;j<=m,j++){
            cin>>a;
            x[i][j]=a;
        }
    }
    for (int i=1;i<=m,i++){
        for (int j=1;j<=l,j++){
            cin>>b;
            y[i][j]=b;
        }
    }
    for (int h=1;h<=n,h++){
        for(i=1;i<=l;i++){
            for(j=1;j<=m;j++){
                c += x[h][j]*y[h][i];
            }
        if(i==1){
            cout << c;
        }else{
            cout<<" "<<c;
        }
        }
        cout<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before ')' token
    9 |     for (int i=1;i<=n,i++){
      |                          ^
      |                          ;
a.cc:10:30: error: expected ';' before ')' token
   10 |         for (int j=1;j<=m,j++){
      |                              ^
      |                              ;
a.cc:15:26: error: expected ';' before ')' token
   15 |     for (int i=1;i<=m,i++){
      |                          ^
      |                          ;
a.cc:16:30: error: expected ';' before ')' token
   16 |         for (int j=1;j<=l,j++){
      |                              ^
      |                              ;
a.cc:21:26: error: expected ';' before ')' token
   21 |     for (int h=1;h<=n,h++){
      |                          ^
      |                          ;
a.cc:22:13: error: 'i' was not declared in this scope
   22 |         for(i=1;i<=l;i++){
      |             ^
a.cc:23:17: error: 'j' was not declared in this scope
   23 |             for(j=1;j<=m;j++){
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int n,m,l,a,b;
    long c=0;
    cin >>n>>m>>l;
    int x[101][101];
    int y[101][101];
    for (int i=1;i<=n,i++){
        for (int j=1;j<=m,j++){
            cin>>a;
            x[i][j]=a;
        }
    }
    for (int i=1;i<=m,i++){
        for (int j=1;j<=l,j++){
            cin>>b;
            y[i][j]=b;
        }
    }
    for (int h=1;h<=n,h++){
        for(i=1;i<=l;i++){
            for(j=1;j<=m;j++){
                c += x[h][j]*y[j][i];
            }
        if(i==1){
            cout << c;
        }else{
            cout<<" "<<c;
        }
        }
        cout<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before ')' token
    9 |     for (int i=1;i<=n,i++){
      |                          ^
      |                          ;
a.cc:10:30: error: expected ';' before ')' token
   10 |         for (int j=1;j<=m,j++){
      |                              ^
      |                              ;
a.cc:15:26: error: expected ';' before ')' token
   15 |     for (int i=1;i<=m,i++){
      |                          ^
      |                          ;
a.cc:16:30: error: expected ';' before ')' token
   16 |         for (int j=1;j<=l,j++){
      |                              ^
      |                              ;
a.cc:21:26: error: expected ';' before ')' token
   21 |     for (int h=1;h<=n,h++){
      |                          ^
      |                          ;
a.cc:22:13: error: 'i' was not declared in this scope
   22 |         for(i=1;i<=l;i++){
      |             ^
a.cc:23:17: error: 'j' was not declared in this scope
   23 |             for(j=1;j<=m;j++){
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int n,m,l,a,b;
    long long c=0;
    cin >>n>>m>>l;
    int x[101][101];
    int y[101][101];
    for (int i=1;i<=n,i++){
        for (int j=1;j<=m,j++){
            cin>>a;
            x[i][j]=a;
        }
    }
    for (int i=1;i<=m,i++){
        for (int j=1;j<=l,j++){
            cin>>b;
            y[i][j]=b;
        }
    }
    for (int h=1;h<=n,h++){
        for(i=1;i<=l;i++){
            for(j=1;j<=m;j++){
                c += x[h][j]*y[j][i];
            }
        if(i==1){
            cout << c;
        }else{
            cout<<" "<<c;
        }
        }
        cout<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before ')' token
    9 |     for (int i=1;i<=n,i++){
      |                          ^
      |                          ;
a.cc:10:30: error: expected ';' before ')' token
   10 |         for (int j=1;j<=m,j++){
      |                              ^
      |                              ;
a.cc:15:26: error: expected ';' before ')' token
   15 |     for (int i=1;i<=m,i++){
      |                          ^
      |                          ;
a.cc:16:30: error: expected ';' before ')' token
   16 |         for (int j=1;j<=l,j++){
      |                              ^
      |                              ;
a.cc:21:26: error: expected ';' before ')' token
   21 |     for (int h=1;h<=n,h++){
      |                          ^
      |                          ;
a.cc:22:13: error: 'i' was not declared in this scope
   22 |         for(i=1;i<=l;i++){
      |             ^
a.cc:23:17: error: 'j' was not declared in this scope
   23 |             for(j=1;j<=m;j++){
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int n,m,l,a;
    long b=0;
    int x[101][101];
    int y[101][101];
    cin >>n>>m>>l;
    for(int i=1;i<=n;i++){
        for(int j=1;j<=m;j++){
            cin>>a;
            a=x[i][j];
        }
    }
    for(int i=1;i<=m;i++){
        for(int j=1;j<=l;j++){
            cin>>a;
            a=y[i][j];
        }
    }
    for(int h=1;h<=n;h++){
        for(int i=1;i<=l;i++){
            for(j=1;j<=m;j++){
                b += x[h][j]:y[j][i];
            }
        if(i==1){
            cout<<b;
        }else{
            cout<<" "<<b;
        }
        }
        cout<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:17: error: 'j' was not declared in this scope
   23 |             for(j=1;j<=m;j++){
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int n,m,l,a;
    
    int x[101][101];
    int y[101][101];
    cin >>n>>m>>l;
    for(int i=1;i<=n;i++){
        for(int j=1;j<=m;j++){
            cin>>a;
            x[i][j]=a;
        }
    }
    for(int i=1;i<=m;i++){
        for(int j=1;j<=l;j++){
            cin>>a;
            y[i][j]=a;
        }
    }
    for(int h=1;h<=n;h++){
        for(int i=1;i<=l;i++)
            long b=0; 
            for(int j=1;j<=m;j++){
                b+=x[h][j]*y[j][i];
            }
            if(i==1){
                cout<<b;
            }else{
                cout<<" "<<b;
        }
        }cout<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: error: 'b' was not declared in this scope
   25 |                 b+=x[h][j]*y[j][i];
      |                 ^
a.cc:25:33: error: 'i' was not declared in this scope
   25 |                 b+=x[h][j]*y[j][i];
      |                                 ^
a.cc:27:16: error: 'i' was not declared in this scope
   27 |             if(i==1){
      |                ^
a.cc:28:23: error: 'b' was not declared in this scope
   28 |                 cout<<b;
      |                       ^
a.cc:30:28: error: 'b' was not declared in this scope
   30 |                 cout<<" "<<b;
      |                            ^
a.cc: At global scope:
a.cc:34:5: error: expected unqualified-id before 'return'
   34 |     return 0;
      |     ^~~~~~
a.cc:35:1: error: expected declaration before '}' token
   35 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int n,m,l,a;
    
    int x[101][101];
    int y[101][101];
    cin >>n>>m>>l;
    for(int i=1;i<=n;i++){
        for(int j=1;j<=m;j++){
            cin>>a;
            x[i][j]=a;
        }
    }
    for(int i=1;i<=m;i++){
        for(int j=1;j<=l;j++){
            cin>>a;
            y[i][j]=a;
        }
    }
    for(int h=1;h<=n;h++){
        for(int i=1;i<=l;i++)
            long long b=0; 
            for(int j=1;j<=m;j++){
                b+=x[h][j]*y[j][i];
            }
            if(i==1){
                cout<<b;
            }else{
                cout<<" "<<b;
        }
        }cout<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: error: 'b' was not declared in this scope
   25 |                 b+=x[h][j]*y[j][i];
      |                 ^
a.cc:25:33: error: 'i' was not declared in this scope
   25 |                 b+=x[h][j]*y[j][i];
      |                                 ^
a.cc:27:16: error: 'i' was not declared in this scope
   27 |             if(i==1){
      |                ^
a.cc:28:23: error: 'b' was not declared in this scope
   28 |                 cout<<b;
      |                       ^
a.cc:30:28: error: 'b' was not declared in this scope
   30 |                 cout<<" "<<b;
      |                            ^
a.cc: At global scope:
a.cc:34:5: error: expected unqualified-id before 'return'
   34 |     return 0;
      |     ^~~~~~
a.cc:35:1: error: expected declaration before '}' token
   35 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int n,m,l,a;
    long b=0;
    int x[101][101];
    int y[101][101];
    cin >>n>>m>>l;
    for(int i=1;i<=n;i++){
        for(int j=1;j<=m;j++){
            cin>>a;
            x[i][j]=a;
        }
    }
    for(int i=1;i<=m;i++){
        for(int j=1;j<=l;j++){
            cin>>a;
            y[i][j]=a;
        }
    }
    for(int h=1;h<=n;h++){
        for(int i=1;i<=l;i++)
            for(int j=1;j<=m;j++){
                b+=x[h][j]*y[j][i];
            }
            if(i==1){
                cout<<b;
            }else{
                cout<<" "<<b;
        }
        }cout<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:16: error: 'i' was not declared in this scope
   26 |             if(i==1){
      |                ^
a.cc: At global scope:
a.cc:33:5: error: expected unqualified-id before 'return'
   33 |     return 0;
      |     ^~~~~~
a.cc:34:1: error: expected declaration before '}' token
   34 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin>>n>>m>>l;
      |     ^~~
a.cc:9:25: error: expected ';' before '}' token
    9 |             cin>>x[i][j]
      |                         ^
      |                         ;
   10 |         }
      |         ~                
a.cc:20:13: error: 'z' was not declared in this scope
   20 |             z[h][i]=0;
      |             ^
a.cc:29:19: error: 'z' was not declared in this scope
   29 |             cout<<z[i][j];
      |                   ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin>>n>>m>>l;
      |     ^~~
a.cc:9:25: error: expected ';' before '}' token
    9 |             cin>>x[i][j]
      |                         ^
      |                         ;
   10 |         }
      |         ~                
a.cc:20:13: error: 'z' was not declared in this scope
   20 |             z[i][j]=0;
      |             ^
a.cc:29:19: error: 'z' was not declared in this scope
   29 |             cout<<z[i][j];
      |                   ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int n,m,l;
    long long x[100][100],y[100][100],z[100][100];
    cin>>n>>m>>l;
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            cin>>x[i][j]
        }
    }
    for(int i=0;i<m;i++){
        for(int j=0;j<l;j++){
            
            cin>>y[i][j];
        }
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<l;j++){
            z[i][j]=0;
            for(int k=0;k<m;k++){
                z[i][j]+=x[i][k]*y[k][j];
            }
        }
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<1;j++){
            if(j)cout << " ";
            cout<<z[i][j];
        }
        cout<<endl;
    }
    return 0;
}


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

#include <iostream>
using namespace std;

int main(){
    int n,m,l;
    long long x[100][100],y[100][100],z[100][100];
    cin>>n>>m>>l;
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            cin>>x[i][j]
        }
    }
    for(int i=0;i<m;i++){
        for(int j=0;j<l;j++){
            
            cin>>y[i][j];
        }
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<l;j++){
            z[i][j]=0;
            for(int k=0;k<m;k++){
                z[i][j]+=x[i][k]*y[k][j];
            }
        }
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<l;j++){
            if(j)cout << " ";
            cout<<z[i][j];
        }
        cout<<endl;
    }
    return 0;
}


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

#include<iostream>
using namespace std;
int main() {
    
    int n,m,l;
    
    cin >> n >> m >> l;
    
    int A[100][100] = {{0}};
    int B[100][100] = {{0}};
    int C[100][100] = {{0}};
    
    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 ++) {
        
        for (int j = 0; j < l; j ++) {
            
            cin >> B[i][j];
            
        }
    }
    
    for (int i = 0; i < n; i ++) {
        
        for (int j = 0; j < m; j ++) {
            
            for (int k = 0; k < l; k ++) {
                
                C[i][k] += A[i][j] * B[j][k];
                
                
            }
            
        }
    }
    
    for (int i = 0; i < n; i ++) {
        
        for (int j = 0; j < l; j ++) {
            
            if (j == l-1) {
                
                cout << C[i][j] << endl;
                
            } else {
                
                cout << C[i][j] << ' '
            
            }
            
            
        }
    }
    
    
    
    return 0;
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:55:39: error: expected ';' before '}' token
   55 |                 cout << C[i][j] << ' '
      |                                       ^
      |                                       ;
   56 | 
   57 |             }
      |             ~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int n,m,l;
	cin >> n >> m >> l;
	
	long long int a[100][100], b[100][100];
	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++){
		for(int j=0; j<l; j++){
			cin >> b[i][j];
		}
	}
	for(int i=0; i<n; i++){
		for(int j=0; j<l; j++){
			long long int e=0;
			for(int f=0; f<m; f++){
				e += a[i][f]*b[f][j];
			}
			if(j==0) cout << e;
			else cout <<" " << e<<endl;
		}
	}
	return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:17: error: expected ';' before '}' token
   29 |         return 0
      |                 ^
      |                 ;
   30 | }
      | ~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int n,m,l;
	cin >> n >> m >> l;
	
	long long int a[100][100], b[100][100];
	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++){
		for(int j=0; j<l; j++){
			cin >> b[i][j];
		}
	}
	for(int i=0; i<n; i++){
		for(int j=0; j<l; j++){
			long long int e=0;
			for(int f=0; f<m; f++){
				e += a[i][f]*b[f][j];
			}
			if(j==0) cout << e;
			else cout <<" " << e<<;
			cout<<endl
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:47: error: expected primary-expression before ';' token
   26 |                         else cout <<" " << e<<;
      |                                               ^
a.cc:27:35: error: expected ';' before '}' token
   27 |                         cout<<endl
      |                                   ^
      |                                   ;
   28 |                 }
      |                 ~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int n,m,l;
	cin >> n >> m >> l;
	
	long long int a[100][100], b[100][100];
	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++){
		for(int j=0; j<l; j++){
			cin >> b[i][j];
		}
	}
	for(int i=0; i<n; i++){
		for(int j=0; j<l; j++){
			long long int e=0;
			for(int f=0; f<m; f++){
				e += a[i][f]*b[f][j];
			}
			if(j==0) cout << e;
			else cout <<" " << e<<;
			cout<<endl;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:47: error: expected primary-expression before ';' token
   26 |                         else cout <<" " << e<<;
      |                                               ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int n,m,l;
	cin >> n >> m >> l;
	
	long long int a[100][100], b[100][100];
	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++){
		for(int j=0; j<l; j++){
			cin >> b[i][j];
		}
	}
	for(int i=0; i<n; i++){
		for(int j=0; j<l; j++){
			long long int e=0;
			for(int f=0; f<m; f++){
				e += a[i][f]*b[f][j];
			}
			if(j==0) cout << e;
			else cout <<" " << e<<;
	
		}
		cout<<endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:47: error: expected primary-expression before ';' token
   26 |                         else cout <<" " << e<<;
      |                                               ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m,l,num;
    cin>>n>>m>>l;
    int A[n][m],B[m][l];
    for (int a=0;a<n;a++){
        for (int b=0;b<m;b++){
            cin>>num;
            A[a][b]=num;
        }
    }for (int a=0;a<m;a++){
        for (int b=0;b<l;b++){
            cin>>num;
            B[a][b]=num;
        }
    }long long sum=0;
    for (int a=0;a<n;a++){
        for (int c=0;c<l;c++){
            for(int b=0;b<m;b++){
                sum=sum+A[a][b]*B[b][c];
            }cout<<sum;
            sum=0;
            if(c!=l-1) cout<<" ";
        }cout<<endl;
    }return 0;



Compiler output:
a.cc: In function 'int main()':
a.cc:26:15: error: expected '}' at end of input
   26 |     }return 0;
      |               ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;


template <class T>
class Matrix {
    public:
        Matrix(int h,int w,T u = 1) : mHeight(h), mWidth(w), mUnit(u) {
            mData.assign(h,vector<T>(w));
        }

        Matrix GetIdentity(int n){
            Matrix identity(n,n);
            for(int i = 0; i < n; ++i){
                identity[i][i] = mUnit;
            }
            return identity;
        }

        // matrix multiplication
        Matrix &operator*=(Matrix &m){
            int h = m.GetHeight();
            int w = m.GetWidth();
            assert(h == mWidth);
            mRes.assign(mHeight,vector<T>(w));
            for(int i = 0; i < mHeight; ++i){
                for(int j = 0; j < w; ++j){
                    T x = 0;
                    for(int k = 0; k < mWidth; ++k){
                       x  += GetCell(i,k) * m.GetCell(k,j);
                    }
                    mRes[i][j] = x;
                }
            }
            mData.swap(mRes);
            return *this;
        }
        //

        // only square matrix
        Matrix operator^(int exp){
            Matrix res = GetIdentity(mHeight);
            while(exp > 0){
                if(exp & 1) res *= mData;
                mData *= mData;
                exp >>= 1;
            }
            return res;
        }
        //

        T& GetCell(int i, int j){ return mData[i][j];}
        int GetHeight() const { return mHeight;}
        int GetWidth() const { return mWidth;}

    private:
        vector<vector<T> > mData;
        vector<vector<T> > mRes;
        int mHeight;
        int mWidth;
        T mUnit;

};

int main(){
    int n,m,l;
    cin >> n >> m >> l;
    Matrix<int> a(n,m);
    Matrix<int> b(m,l);
    for(int i = 0;i < n;++i){
        for(int j = 0; j < m; ++j){
            cin >> a.GetCell(i,j);
        }
    }

    for(int i = 0; i < m; ++i){
        for(int j = 0; j < l; ++j){
            cin >> b.GetCell(i,j);
        }
    }
    a *= b;
    for(int i = 0; i < n; ++i){
        for(int j = 0; j < l; ++j){
            cout << a.GetCell(i,j) << (j==l-1 ? '\n' : ' ');
        }
    }
    return 0;
}


Compiler output:
a.cc: In member function 'Matrix<T>& Matrix<T>::operator*=(Matrix<T>&)':
a.cc:26:13: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available [-fpermissive]
   26 |             assert(h == mWidth);
      |             ^~~~~~
a.cc:26:13: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
a.cc: In instantiation of 'Matrix<T>& Matrix<T>::operator*=(Matrix<T>&) [with T = int]':
a.cc:83:10:   required from here
   83 |     a *= b;
      |          ^
a.cc:26:19: error: 'assert' was not declared in this scope
   26 |             assert(h == mWidth);
      |             ~~~~~~^~~~~~~~~~~~~
a.cc:3:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>'
    2 | #include <vector>
  +++ |+#include <cassert>
    3 |
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a[100][100],b[100][100],n,m,l,c[100][100]={};
  cin >> n >> m >> l;
  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++){
    for(int j=0;j<l;j++){
      cin >> a[i][j];
    }
  }

  for(int i=0;i<
    
  for(int i=0;i<n;i++){
    for(int j=0;j<l;j++){
      cout << " " << c[i][j];
    }
    cout << endl;
    }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: expected primary-expression before 'for'
   19 |   for(int i=0;i<n;i++){
      |   ^~~
a.cc:17:17: error: expected ';' before 'for'
   17 |   for(int i=0;i<
      |                 ^
      |                 ;
   18 | 
   19 |   for(int i=0;i<n;i++){
      |   ~~~            
a.cc:19:3: error: expected primary-expression before 'for'
   19 |   for(int i=0;i<n;i++){
      |   ^~~
a.cc:17:17: error: expected ')' before 'for'
   17 |   for(int i=0;i<
      |      ~          ^
      |                 )
   18 | 
   19 |   for(int i=0;i<n;i++){
      |   ~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N, M, L; cin >> N >> M >> L;
  int matA[N][M], matB[M][L], matC[N][L];
  memset(matC, 0, sizeof matC);
  for(int i=0; i<N; i++)
    for(int j=0; j<M; j++)
      cin >> matA[i][j];
  for(int i=0; i<M; i++)
    for(int j=0; j<L; j++)
      cin >> matA[i][j];
  for(int i=0; i<N; i++)
    for(int j=0; j<M; j++)
      for(int k=0; k<L; k++)
        matC[i][k] += matA[i][j]*matB[j][k];
  for(int i=0; i<N; i++) {
    for(int j=0; j<L; j++) {
      if(j) cout << " ";
      else cout << matC[i][j];
    }
    cout << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'memset' was not declared in this scope
    7 |   memset(matC, 0, sizeof matC);
      |   ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N, M, L; cin >> N >> M >> L;
  int matA[N][M], matB[M][L], matC[N][L];
  memset(matC, 0, sizeof matC);
  for(int i=0; i<N; i++)
    for(int j=0; j<M; j++)
      cin >> matA[i][j];
  for(int i=0; i<M; i++)
    for(int j=0; j<L; j++)
      cin >> matB[i][j];
  for(int i=0; i<N; i++)
    for(int j=0; j<M; j++)
      for(int k=0; k<L; k++)
        matC[i][k] += matA[i][j]*matB[j][k];
  for(int i=0; i<N; i++) {
    for(int j=0; j<L; j++) {
      if(j) cout << " ";
      cout << matC[i][j];
    }
    cout << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'memset' was not declared in this scope
    7 |   memset(matC, 0, sizeof matC);
      |   ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N, M, L; cin >> N >> M >> L;
  long long matA[N][M], matB[M][L], matC[N][L];
  memset(matC, 0, sizeof matC);
  for(int i=0; i<N; i++)
    for(int j=0; j<M; j++)
      cin >> matA[i][j];
  for(int i=0; i<M; i++)
    for(int j=0; j<L; j++)
      cin >> matB[i][j];
  for(int i=0; i<N; i++)
    for(int j=0; j<M; j++)
      for(int k=0; k<L; k++)
        matC[i][k] += matA[i][j]*matB[j][k];
  for(int i=0; i<N; i++) {
    for(int j=0; j<L; j++) {
      if(j) cout << " ";
      cout << matC[i][j];
    }
    cout << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'memset' was not declared in this scope
    7 |   memset(matC, 0, sizeof matC);
      |   ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include <iostream>

using namespace std;

int main() {
    int n,m,l,A[100],B[100],C[100];
    cin >> n >> m >> l;
    for (i=0;i<n;i++){
        for (j=0;j<m;j++)
            cin >> A[i][j];
    }
    for (i=0;i<m;i++){
        for (j=0;j<l;j++)
            cin >> B[i][j];
    }
    for (i=0;i<m;i++){
        for (j=0;j<l;j++) {
            for (k=0;k<m;k++) 
                C[i][j] += A[i][k] + B[k][l];
        }
    }
    for (i=0;i<m;i++){
        for (j=0;j<l;j++) {
            if(j<l=1) cout << C[i][j] << " ";
            else cout << C[i][j] <<endl;
        }    
    }
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'i' was not declared in this scope
    8 |     for (i=0;i<n;i++){
      |          ^
a.cc:9:14: error: 'j' was not declared in this scope
    9 |         for (j=0;j<m;j++)
      |              ^
a.cc:12:10: error: 'i' was not declared in this scope
   12 |     for (i=0;i<m;i++){
      |          ^
a.cc:13:14: error: 'j' was not declared in this scope
   13 |         for (j=0;j<l;j++)
      |              ^
a.cc:16:10: error: 'i' was not declared in this scope
   16 |     for (i=0;i<m;i++){
      |          ^
a.cc:17:14: error: 'j' was not declared in this scope
   17 |         for (j=0;j<l;j++) {
      |              ^
a.cc:18:18: error: 'k' was not declared in this scope
   18 |             for (k=0;k<m;k++)
      |                  ^
a.cc:22:10: error: 'i' was not declared in this scope
   22 |     for (i=0;i<m;i++){
      |          ^
a.cc:23:14: error: 'j' was not declared in this scope
   23 |         for (j=0;j<l;j++) {
      |              ^
Language: C++

#include <iostream>

using namespace std;

int main() {
    int n,m,l,A[100],B[100],C[100],i,j,k;
    cin >> n >> m >> l;
    for (i=0;i<n;i++){
        for (j=0;j<m;j++)
            cin >> A[i][j];
    }
    for (i=0;i<m;i++){
        for (j=0;j<l;j++)
            cin >> B[i][j];
    }
    for (i=0;i<m;i++){
        for (j=0;j<l;j++) {
            for (k=0;k<m;k++) 
                C[i][j] += A[i][k] + B[k][l];
        }
    }
    for (i=0;i<m;i++){
        for (j=0;j<l;j++) {
            if(j<l=1) cout << C[i][j] << " ";
            else cout << C[i][j] <<endl;
        }    
    }
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: invalid types 'int[int]' for array subscript
   10 |             cin >> A[i][j];
      |                        ^
a.cc:14:24: error: invalid types 'int[int]' for array subscript
   14 |             cin >> B[i][j];
      |                        ^
a.cc:19:21: error: invalid types 'int[int]' for array subscript
   19 |                 C[i][j] += A[i][k] + B[k][l];
      |                     ^
a.cc:19:32: error: invalid types 'int[int]' for array subscript
   19 |                 C[i][j] += A[i][k] + B[k][l];
      |                                ^
a.cc:19:42: error: invalid types 'int[int]' for array subscript
   19 |                 C[i][j] += A[i][k] + B[k][l];
      |                                          ^
a.cc:24:17: error: lvalue required as left operand of assignment
   24 |             if(j<l=1) cout << C[i][j] << " ";
      |                ~^~
a.cc:24:35: error: invalid types 'int[int]' for array subscript
   24 |             if(j<l=1) cout << C[i][j] << " ";
      |                                   ^
a.cc:25:30: error: invalid types 'int[int]' for array subscript
   25 |             else cout << C[i][j] <<endl;
      |                              ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	int n,m,l;
	int a[100][100],b[100][100];
	long long int c[100][100];
	cin >>n >> m>> l;

	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++){
        for(int j=0 ;j<l;j++){
            cin >>b[i][j];
        }
    }
	//input end
	for(int i = 0; i<n ;i++){
		for(int j = 0; j<l;j++){
			c[i][j] = 0;
				for(int k = 0; k<m;k++){
					c[i][j] += a[i][k]*b[k][j];
				}
		}
	}


}

	 for(int i = 0; i<n ;i++){
        for(int j = 0; j<l ;j++){
            cout<<c[i][j];
            if(j!=l-1){cout <<" ";}
            else{cout <<endl;}
        }
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:37:6: error: expected '}' at end of input
   37 |     }
      |      ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^