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

#include <iostream>
#define int long long
using namespace std;
signed main(void){
	int a[100][100]={0},b[100][100]={0},c[100][100]={0},i,j,k,l,m,n;
	cint>>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<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-1;j++){
			cout<<c[i][j]<<' ';
		}
		cout<<c[i][j]<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cint' was not declared in this scope; did you mean 'uint'?
    6 |         cint>>n>>m>>l;
      |         ^~~~
      |         uint
Language: C++

#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;

#define REP(i,n) for(int (i)=0; (i)<(n); (i)++)
#define For(i,a,b) for(int (i)=(a); (i)<(b); (i)++)

int main() {
    int n, m, l;
    cin >> n >> m >> l;
    vector<vector<int> > m1, m2;
    vector<vector<long> > ans;
    REP(i,n) {
        vector<int> mm;
        REP(j,m) {
            int k;
            cin >> k;
            mm.push_back(k);
        }
        m1.push_back(mm);
    }
    
    REP(i,m) {
        vector<int> mm;
        REP(j,l) {
            int k;
            cin >> k;
            mm.push_back(k);
        }
        m2.push_back(mm);
    }
    
    REP(i,n) {
        vector<int> mm;
        REP(j,l) {
            long s = 0;
            REP(k,m) {
                s += m1[i][k] * m2[k][j];
            }
            mm.push_back(s);
        }
        ans.push_back(mm);
    }
    
    REP(i,n) {
        REP(j,l-1) {
            cout << ans[i][j] << " ";
        }
        cout << ans[i][l-1] << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:22: error: no matching function for call to 'std::vector<std::vector<long int> >::push_back(std::vector<int>&)'
   45 |         ans.push_back(mm);
      |         ~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<long int>; _Alloc = std::allocator<std::vector<long int> >; value_type = std::vector<long int>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:35: note:   no known conversion for argument 1 from 'std::vector<int>' to 'const std::vector<std::vector<long int> >::value_type&' {aka 'const std::vector<long int>&'}
 1283 |       push_back(const value_type& __x)
      |                 ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::vector<long int>; _Alloc = std::allocator<std::vector<long int> >; value_type = std::vector<long int>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note:   no known conversion for argument 1 from 'std::vector<int>' to 'std::vector<std::vector<long int> >::value_type&&' {aka 'std::vector<long int>&&'}
 1300 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~
Language: C++

#include<iostream>

using namespace std;

int main(){
	int n, m, l, in;
	int a[100][100]={0}, b[100][100]={0};
	long c[100][100]={0};
	
	cin >> n >> m >> l;
	
	/*??????A??\???*/
	for (int i = 0; i < n; i++){
		for (int j = 0; j < m; j++){
			cin >> in;
			a[i][j] = in; 
		}
	}
	/*??????B??\???*/
	for (int i = 0; i < m; i++){
		for (int j = 0; j < l; j++){
			cin >> in;
			b[i][j] = in;
		}
	}
	
	/*??????C?¨????*/
	for (int i = 0; i < n; i++){
		for (int j = 0; j < l; j++){
			for (int k = 0; k < m; k++){
				c[i][j] += a[i][k] * b[k][j];
			}
		}
	}
	
	/*??????C??????*/
	for (int i = 0; i < n; i++){
		for (int j = 0; j < l-1; j++){
			cout << c[i][j] << " ";
		}
		cout << c[i][j-1] << endl;
	}
	
	return 0;
}

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

#include<iostream>
using namespace std;

int main(){
  int n,m,l;
  int a[100][100],b[100][100],c[100][100];

  for(int i=0;i<100;i++){
    for(int j=0;j<100;j++){
      a[i][j] = 0;
      b[i][j] = 0;
      c[i][j] = 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<l;j++){
      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 << endl;
      else cout << " ";
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: expected ';' before ')' token
   17 |     for(int j=0;j<m,j++){
      |                        ^
      |                        ;
Language: C++

#include<iostream>
using namespace std;

int main(){
  int n,m,l;
  int a[100][100],b[100][100],c[100][100];

  for(int i=0;i<100;i++){
    for(int j=0;j<100;j++){
      a[i][j] = 0;
      b[i][j] = 0;
      c[i][j] = 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<l;j++){
      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 << endl;
      else cout << " ";
    }
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: expected ';' before ')' token
   17 |     for(int j=0;j<m,j++){
      |                        ^
      |                        ;
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:36:44: error: expected ';' before '}' token
   36 |                                 cout << " "
      |                                            ^
      |                                            ;
   37 |                 }
      |                 ~                           
a.cc:42:2: error: expected '}' at end of input
   42 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:37:44: error: expected ';' before '}' token
   37 |                                 cout << " "
      |                                            ^
      |                                            ;
   38 |                 }
      |                 ~                           
a.cc:43:2: error: expected '}' at end of input
   43 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<iostream>
using namespace std;

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

 	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected initializer before '.' token
    6 |         int i, j. k;
      |                 ^
a.cc:13:29: error: 'j' was not declared in this scope
   13 |                         for(j = 0; j < m; j++){
      |                             ^
a.cc:19:29: error: 'j' was not declared in this scope
   19 |                         for(j = 0; j < i; j++){
      |                             ^
a.cc:25:29: error: 'j' was not declared in this scope
   25 |                         for(j = 0; j < l; j++){
      |                             ^
a.cc:26:37: error: 'k' was not declared in this scope
   26 |                                 for(k = 0; k < m; k++]{
      |                                     ^
a.cc:26:54: error: expected ')' before ']' token
   26 |                                 for(k = 0; k < m; k++]{
      |                                    ~                 ^
      |                                                      )
a.cc:26:54: error: expected primary-expression before ']' token
a.cc:33:29: error: 'j' was not declared in this scope
   33 |                         for(j = 0; j < l; j++){
      |                             ^
a.cc: At global scope:
a.cc:44:9: error: expected unqualified-id before 'return'
   44 |         return 0;
      |         ^~~~~~
a.cc:45:1: error: expected declaration before '}' token
   45 | }
      | ^
Language: C++

#include <iostream>
#include <fstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <cstring>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <algorithm>
using namespace std;
 
#define REP(i,n) for(int i=0; i<n; ++i)
#define FOR(i,a,b) for(int i=a; i<=b; ++i)
#define FORR(i,a,b) for (int i=a; i>=b; --i)
#define pi M_PI
 
typedef long long ll;
typedef vector<int> VI;
typedef vector<ll> VL;
typedef vector<VI> VVI;
typedef pair<int,int> P;
typedef pair<ll,ll> PL;

ll a[100][100], b[100][100], c[100][100];

int main() {
    int n, m, l;
    cin >> n >> m >> l;
    REP(i,n) REP(j,m) cin >> a[i][j];
    REP(i,m) REP(j,l) cin >> b[i][j];
    REP(i,n) REP(j,l) REP(k,m) c[i][j] += a[i][k] * b[k][j];
    REP(i,n){
        REP(j,l){
            cout << c[i][j]
            if (j < l-1) cout << " ";
        }
        cout << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:28: error: expected ';' before 'if'
   37 |             cout << c[i][j]
      |                            ^
      |                            ;
   38 |             if (j < l-1) cout << " ";
      |             ~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  double A[1000][1000], B[1000][1000], C[1000][1000];
  int n, m, l;

  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;
      for (int k = 1; k <= m; k++)
        C[i][j] += A[i][k]*B[k][j];

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: 'i' was not declared in this scope
   20 |         C[i][j] += A[i][k]*B[k][j];
      |           ^
a.cc:20:14: error: 'j' was not declared in this scope
   20 |         C[i][j] += A[i][k]*B[k][j];
      |              ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  double A[100][100], B[100][100], C[100][100];
  int n, m, l;

  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];


  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++){
      if(j != 0) cout << " ";
      cout << C[i][j];
    }
    cout << endl;
  }

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: 'i' was not declared in this scope
   20 |         C[i][j] += A[i][k]*B[k][j];
      |           ^
a.cc:20:14: error: 'j' was not declared in this scope
   20 |         C[i][j] += A[i][k]*B[k][j];
      |              ^
Language: C++

n, m, l = map(int, input().split())
A = [list(map(int, input().split())) for i in range(n)]
B = [list(map(int, input().split())) for i in range(m)]
C = [[0 for i in range(n)] for j in range(l)]
for i in range(n):
    for j in range(l):
        for k in range(m):
            C[i][j] += A[i][k]*B[k][j]
for i in range(n):
    print(" ".join(map(str, C[i])))

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n, m, l = map(int, input().split())
      | ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
	int n, m, l;

	int A[100][100], B[100][100], 
	long C[100][100];

	cin >> n >> m >> l;

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

	for (int i = 0; i < m; i++){
		for (int j = 0; j < l; j++){
			B[i][j] = 0;
		}
	}

	for (int i = 0; i < n; i++){
		for (int j = 0; j < l; j++){
			C[i][j] = 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 < l; j++){
			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 != 0)
				cout << " ";

			cout << C[i][j];
		}
		cout << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected unqualified-id before 'long'
    9 |         long C[100][100];
      |         ^~~~
a.cc:27:25: error: 'C' was not declared in this scope
   27 |                         C[i][j] = 0;
      |                         ^
a.cc:46:33: error: 'C' was not declared in this scope
   46 |                                 C[i][j] += A[i][k] * B[k][j];
      |                                 ^
a.cc:56:33: error: 'C' was not declared in this scope
   56 |                         cout << C[i][j];
      |                                 ^
Language: C++

#include <iostream>
#include <vector>


using namespace std;

int main()
{
    int a,b,c;
    cin >> a >> b >> c;

    vector<vector<int>> A(a,vector<int>(b,0));
    vector<vectior<int>> B(b,vector<int>(c,0));

    for (int d = 0; d < a; ++d) {
        for (int e = 0; e < b; ++e) {
            cin >> A.at(d).at(e);
        }
    }

    for (int f = 0; f < b; ++f) {
        for (int g = 0; g < c; ++g) {
            cin >> B.at(f).at(g);
        }
    }

    vector<vector<int>> Result(a,vector<int>(c,0));

    for (int i = 0; i < a; ++i) {
        for (int k = 0; k < b; ++k) {
            for (int j = 0; j < c; ++j) {
                Result.at(i).at(j) += A.at(i).at(k) * B.at(k).at(j);
            }
        }
    }

    for (int l = 0; l < a; ++l) {
        for (int m = 0; m < c; ++m) {
            cout << Result.at(l).at(m);

            if(m != c -1){
                cout << " ";
            }
        }
        cout << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'vectior' was not declared in this scope
   13 |     vector<vectior<int>> B(b,vector<int>(c,0));
      |            ^~~~~~~
a.cc:13:23: error: template argument 1 is invalid
   13 |     vector<vectior<int>> B(b,vector<int>(c,0));
      |                       ^~
a.cc:13:23: error: template argument 2 is invalid
a.cc:13:46: error: expression list treated as compound expression in initializer [-fpermissive]
   13 |     vector<vectior<int>> B(b,vector<int>(c,0));
      |                                              ^
a.cc:13:30: error: cannot convert 'std::vector<int>' to 'int' in initialization
   13 |     vector<vectior<int>> B(b,vector<int>(c,0));
      |                              ^~~~~~~~~~~~~~~~
      |                              |
      |                              std::vector<int>
a.cc:23:22: error: request for member 'at' in 'B', which is of non-class type 'int'
   23 |             cin >> B.at(f).at(g);
      |                      ^~
a.cc:32:57: error: request for member 'at' in 'B', which is of non-class type 'int'
   32 |                 Result.at(i).at(j) += A.at(i).at(k) * B.at(k).at(j);
      |                                                         ^~
Language: C++

#include<iostream>
using namespace std;

int main(){
 int n,m,l;
 cin >> n >> m >> l;
 int A[n][m]={};
 int B[m][l]={};
 int C[n][l]={};

 for(int i=1;i<=n;++i){
  for(int k=1;k<=m;++j){
   cin >> A[i][k];
  }
 }
 for(int k=1;k<=m;++i){
  for(int j=1;j<=l;++j){
   cin >> B[k][j];
  }
 }

 for(int i=1;i<=n;++i){
  for(int j=1;j<=l;++j){
   for(int k=1;k<=m;++k){
    C[i][j]+=A[i][k]*B[k][j];
   }
   cout << C[i][j] << " ";
  }
 }
 return 0;
}

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

#include<iostream>
using namespace std;

int main(){
 int n,m,l;
 cin >> n >> m >> l;
 int A[n][m]={};
 int B[m][l]={};
 longlong C[n][l]={};

 for(int i=1;i<=n;++i){
  for(int k=1;k<=m;++k){
   cin >> A[i][k];
  }
 }
 for(int k=1;k<=m;++k){
  for(int j=1;j<=l;++j){
   cin >> B[k][j];
  }
 }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:2: error: 'longlong' was not declared in this scope
    9 |  longlong C[n][l]={};
      |  ^~~~~~~~
a.cc:25:5: error: 'C' was not declared in this scope
   25 |     C[i][j]+=A[i][k]*B[k][j];
      |     ^
a.cc:27:12: error: 'C' was not declared in this scope
   27 |    cout << C[i][j] << " ";
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Here your code !
    int n,m,l;
    cin >> n >> m >> l;
    __int64 arrayA[n][m];
    __int64 arrayB[m][l];
    __int64 arrayC[n][l];
    for(int i=0;i<n;i++) {
        for(int j=0;j<m;j++) {
            cin >> arrayA[i][j];
        }
    }
    
    for(int i=0;i<m;i++) {
        for(int j=0;j<l;j++) {
            cin >> arrayB[i][j];
        }
    }
    
    for(int i=0;i<n;i++) {
        for(int j=0;j<l;j++) {
            arrayC[i][j] = 0;
        }
    }
    
    for(int i=0;i<n;i++) {
        for(int j=0;j<l;j++) {
            for(int k=0;k<m;k++) {
                arrayC[i][j] = arrayC[i][j] + arrayA[i][k] * arrayB[k][j];
            }
        }
    }
    
    for(int i=0;i<n;i++) {
        for(int j=0;j<l;j++) {
            cout << arrayC[i][j];
            if(j != l-1)
            cout << " ";
        }
        cout << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
    7 |     __int64 arrayA[n][m];
      |     ^~~~~~~
      |     __int64_t
a.cc:8:12: error: expected ';' before 'arrayB'
    8 |     __int64 arrayB[m][l];
      |            ^~~~~~~
      |            ;
a.cc:9:12: error: expected ';' before 'arrayC'
    9 |     __int64 arrayC[n][l];
      |            ^~~~~~~
      |            ;
a.cc:12:20: error: 'arrayA' was not declared in this scope
   12 |             cin >> arrayA[i][j];
      |                    ^~~~~~
a.cc:18:20: error: 'arrayB' was not declared in this scope
   18 |             cin >> arrayB[i][j];
      |                    ^~~~~~
a.cc:24:13: error: 'arrayC' was not declared in this scope
   24 |             arrayC[i][j] = 0;
      |             ^~~~~~
a.cc:31:17: error: 'arrayC' was not declared in this scope
   31 |                 arrayC[i][j] = arrayC[i][j] + arrayA[i][k] * arrayB[k][j];
      |                 ^~~~~~
a.cc:31:47: error: 'arrayA' was not declared in this scope
   31 |                 arrayC[i][j] = arrayC[i][j] + arrayA[i][k] * arrayB[k][j];
      |                                               ^~~~~~
a.cc:31:62: error: 'arrayB' was not declared in this scope
   31 |                 arrayC[i][j] = arrayC[i][j] + arrayA[i][k] * arrayB[k][j];
      |                                                              ^~~~~~
a.cc:38:21: error: 'arrayC' was not declared in this scope
   38 |             cout << arrayC[i][j];
      |                     ^~~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:15:4: error: expected unqualified-id before 'for'
   15 |    for(int j = 0;j < m; j++)
      |    ^~~
a.cc:15:18: error: 'j' does not name a type
   15 |    for(int j = 0;j < m; j++)
      |                  ^
a.cc:15:25: error: 'j' does not name a type
   15 |    for(int j = 0;j < m; j++)
      |                         ^
a.cc:16:20: error: 'i' does not name a type
   16 |      for(int i = 0;i < n; i++) {
      |                    ^
a.cc:16:27: error: 'i' does not name a type
   16 |      for(int i = 0;i < n; i++) {
      |                           ^
a.cc:19:4: error: expected declaration before '}' token
   19 |    }
      |    ^
a.cc:20:4: error: expected unqualified-id before 'for'
   20 |    for(int j = 0; j < l; j++)
      |    ^~~
a.cc:20:19: error: 'j' does not name a type
   20 |    for(int j = 0; j < l; j++)
      |                   ^
a.cc:20:26: error: 'j' does not name a type
   20 |    for(int j = 0; j < l; j++)
      |                          ^
a.cc:21:21: error: 'i' does not name a type
   21 |      for(int i = 0; i < n; i++) {
      |                     ^
a.cc:21:28: error: 'i' does not name a type
   21 |      for(int i = 0; i < n; i++) {
      |                            ^
a.cc:26:4: error: expected declaration before '}' token
   26 |    }
      |    ^
a.cc:27:4: error: expected unqualified-id before 'for'
   27 |    for(int j = 0; j < l; j++) {
      |    ^~~
a.cc:27:19: error: 'j' does not name a type
   27 |    for(int j = 0; j < l; j++) {
      |                   ^
a.cc:27:26: error: 'j' does not name a type
   27 |    for(int j = 0; j < l; j++) {
      |                          ^
a.cc:33:4: error: expected unqualified-id before 'return'
   33 |    return 0;
      |    ^~~~~~
a.cc:34:1: error: expected declaration before '}' token
   34 | }
      | ^
Language: C++

#include <iostream>
 
int main() {
	int n,m,l,t;
    int ta=0;
    std::cin >> n >> m >> l;
    int lista[n][m]={0};
    int listb[m][l]={0};
    for(int a=0;a<n;a++){
     for(int b=0;b<m;b++){
      std::cin >> lista[a][b];
     }
    }
    for(int c=0;c<m;c++){
     for(int d=0;d<l;d++){
      std::cin >> listb[c][d];
     }
    }
 
    for(int e=0;e<n;e++){
     for(int f=0;f<l;f++){
      for(int g=0;g<m;g++){
      ta=ta+lista[e][g]*listb[g][f];
      }
      if(g!=m-1)std::cout << ta << " ";
      ta=0;
     }
 
     std::cout << std::endl;
    }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:10: error: 'g' was not declared in this scope
   25 |       if(g!=m-1)std::cout << ta << " ";
      |          ^
Language: C++

#include <iostream>
 
int main() {
	int n,m,l,t;
    int ta=0;
    std::cin >> n >> m >> l;
    int lista[n][m]={0};
    int listb[m][l]={0};
    for(int a=0;a<n;a++){
     for(int b=0;b<m;b++){
      std::cin >> lista[a][b];
     }
    }
    for(int c=0;c<m;c++){
     for(int d=0;d<l;d++){
      std::cin >> listb[c][d];
     }
    }
 
    for(int e=0;e<n;e++){
     for(int f=0;f<l;f++){
      for(int g=0;g<m;g++){
      ta=ta+lista[e][g]*listb[g][f];
      }
      std::cout << ta;
      if(g!=m-1)std::cout << " ";
      ta=0;
     }
 
     std::cout << std::endl;
    }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:10: error: 'g' was not declared in this scope
   26 |       if(g!=m-1)std::cout << " ";
      |          ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int i,j,k,n,m,l;
	cin >> n >> m >> l;
	int a[n][m],b[m][l],c[n][l];
	for(i=0;i<n;i++){
		for(k=0;k<l;k++){
			c[i][k] =0;
		}
	}
	for(i=0;i<n;i++){
		for(j=0;j<m;j++){
			cin >> a[i][j];
		}
	}
	for(j=0;j<m;j++){
		for(k=0;k<l;k++){
			cin >> b[j][k];
		}
	}
	for(i=0;i<n;i++){
		for(k=0;k<l;k++){
			for(j=0;j<m;j++){
				c[i][k] += a[i][j]*b[j][k];
			}
			cout << c[i][k];
			if(j != m)
				cout << " ";
		}
		cout << endl;
	}
	return 0;
}
0;
}

Compiler output:
a.cc:36:1: error: expected unqualified-id before numeric constant
   36 | 0;
      | ^
a.cc:37:1: error: expected declaration before '}' token
   37 | }
      | ^
Language: C++

#include <stdio.h>
#include <iostream>

using namespace std;

int main() {
	int n, m, l;
	int A[100][100], B[100][100];

	scanf("%d %d %d", &n, &m, &l);

	int i, j;
	for(i = 0; i < n; i++) {
		j = 0;
		while(cin >> v) {
			A[i][j] = v;
			j++;
			if(j >= m) break;
		}
	}

	for(i = 0; i < m; i++) {
		j = 0;
		while(cin >> v) {
			B[i][j] = v;
			j++;
			if(j >= l) break;
		}
	}

	int c;
	for(i = 0; i < n; i++) {
		for(j = 0; j < l; j++) {
			c = 0;
			for(k = 0; k < m; k++) {
				c += A[n][k] * B[k][j];
			}
			printf("%d", c);
			if(j < l - 1) printf(" ");
			else printf("\n");
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:30: error: 'v' was not declared in this scope
   15 |                 while(cin >> v) {
      |                              ^
a.cc:24:30: error: 'v' was not declared in this scope
   24 |                 while(cin >> v) {
      |                              ^
a.cc:35:29: error: 'k' was not declared in this scope
   35 |                         for(k = 0; k < m; k++) {
      |                             ^
Language: C++

#include <stdio.h>
#include <iostream>

using namespace std;

int main() {
	int n, m, l;
	int A[100][100], B[100][100];

	scanf("%d %d %d", &n, &m, &l);

	int i, j;
	for(i = 0; i < n; i++) {
		j = 0;
		while(cin >> v) {
			A[i][j] = v;
			j++;
			if(j >= m) break;
		}
	}

	int v;
	for(i = 0; i < m; i++) {
		j = 0;
		while(cin >> v) {
			B[i][j] = v;
			j++;
			if(j >= l) break;
		}
	}

	int c;
	for(i = 0; i < n; i++) {
		for(j = 0; j < l; j++) {
			c = 0;
			for(k = 0; k < m; k++) {
				c += A[n][k] * B[k][j];
			}
			printf("%d", c);
			if(j < l - 1) printf(" ");
			else printf("\n");
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:30: error: 'v' was not declared in this scope
   15 |                 while(cin >> v) {
      |                              ^
a.cc:36:29: error: 'k' was not declared in this scope
   36 |                         for(k = 0; k < m; k++) {
      |                             ^
Language: C++

#include <stdio.h>
#include <iostream>

using namespace std;

int main() {
	int n, m, l;
	int A[100][100], B[100][100];

	scanf("%d %d %d", &n, &m, &l);

	int v;
	int i, j;
	for(i = 0; i < n; i++) {
		j = 0;
		while(cin >> v) {
			A[i][j] = v;
			j++;
			if(j >= m) break;
		}
	}

	for(i = 0; i < m; i++) {
		j = 0;
		while(cin >> v) {
			B[i][j] = v;
			j++;
			if(j >= l) break;
		}
	}

	int c;
	for(i = 0; i < n; i++) {
		for(j = 0; j < l; j++) {
			c = 0;
			for(k = 0; k < m; k++) {
				c += A[n][k] * B[k][j];
			}
			printf("%d", c);
			if(j < l - 1) printf(" ");
			else printf("\n");
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:29: error: 'k' was not declared in this scope
   36 |                         for(k = 0; k < m; k++) {
      |                             ^
Language: C++

#include <stdio.h>
#include <iostream>

using namespace std;

int main() {
	int n, m, l;
	int A[100][100], B[100][100];

	scanf("%d %d %d", &n, &m, &l);

	int v;
	int i, j;

	for(i = 0; i < 100; i++) {
		for(j = 0; j < 100; j++) {
			A[i][j] = 0;
			B[i][j] = 0;
		}
	}

	for(i = 0; i < n; i++) {
		j = 0;
		while(cin >> v) {
			A[i][j] = v;
			j++;
			if(j >= m) break;
		}
	}

	for(i = 0; i < m; i++) {
		j = 0;
		while(cin >> v) {
			B[i][j] = v;
			j++;
			if(j >= l) break;
		}
	}

	int c;
	for(i = 0; i < n; i++) {
		for(j = 0; j < l; j++) {
			c = 0;
			for(k = 0; k < m; k++) {
				c += A[n][k] * B[k][j];
			}
			printf("%d", c);
			if(j < l - 1) printf(" ");
			else printf("\n");
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:44:29: error: 'k' was not declared in this scope
   44 |                         for(k = 0; k < m; k++) {
      |                             ^
Language: C++

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

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

#include <iostream>
#include <vector>


using namespace std;

int main()
{
    int a,b,c;
    cin >> a >> b >> c;

    vector<vector<int>> A(a,vector<int>(b,0));
    vector<vector<int>> B(b,vector<int>(c,0));

    for (int d = 0; d < a; ++d) {
        for (int e = 0; e < b; ++e) {
            cin >> A.at(d).at(e);
        }
    }

    for (int f = 0; f < b; ++f) {
        for (int g = 0; g < c; ++g) {
            cin >> B.at(f).at(g);
        }
    }

    vector<vector<int>> Result(a,vector<int>(c,0));

    for (int i = 0; i < a; ++i) {
        for (int k = 0; k < b; ++k) {
            for (int j = 0; j < c; ++j) {
                Result.at(i).at(j) += A.at(i).at(k) * B.at(k).at(j);
            }
        }
    }

    for (int l = 0; l < a; ++l) {
        for (int m = 0; m < c; ++m) {
            cout << Result.at(l).at(m);

            if(m != c -1){
                cout << " ";
            }
        }
        cout << endl;
    }

    return 0;
???

Compiler output:
a.cc: In function 'int main()':
a.cc:49:1: error: expected primary-expression before '?' token
   49 | ???
      | ^
a.cc:49:2: error: expected primary-expression before '?' token
   49 | ???
      |  ^
a.cc:49:3: error: expected primary-expression before '?' token
   49 | ???
      |   ^
a.cc:49:4: error: expected primary-expression at end of input
   49 | ???
      |    ^
a.cc:49:4: error: expected ':' at end of input
   49 | ???
      |    ^
      |    :
a.cc:49:4: error: expected primary-expression at end of input
a.cc:49:4: error: expected ':' at end of input
   49 | ???
      |    ^
      |    :
a.cc:49:4: error: expected primary-expression at end of input
a.cc:49:4: error: expected ':' at end of input
   49 | ???
      |    ^
      |    :
a.cc:49:4: error: expected primary-expression at end of input
a.cc:49:4: error: expected '}' at end of input
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
Language: C++

#include <cstdio>

using namespace std;

int main(){
	int n,m,l,i,j,k,a[101][101],b[101][101];
long long int c;

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

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:37: error: 'llc' was not declared in this scope
   23 |                         printf("%d",llc);
      |                                     ^~~
Language: C++

#include <iostream>

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

  int a[n][m];
  int b[m][l];
  int c[n][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];
    }
  }

  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];
      }
    }
  }
  

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> n;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include<stdio.h>
int main(void)
{
	int n,m,l,array1[100][100],array2[100][100],i,j,k,a=0;
	scanf("%d %d %d",&n,&m,&l);
	for(i=0;i<n;i++){
		for(k=0;k<m;k++){
			scanf("%d",&array1[k][i]);
		}
	}
	for(k=0;k<m;k++){
		for(j=0;j<l;j++){
			scanf("%d",&array2[j][k]);
		}
	}
	for(i=0;i<n;i++){
		for(j=0;j<l;j++){
			for(k=0;k<m;k++){
				a+=array1[k][i]*array2[j][k];
			}
			if(j!=2){
				printf("%d ",a);
				a=0;
			}else{
				printf("%d",a);
				a=0;
		}
		printf("\n");
	}
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:30:18: error: expected '}' at end of input
   30 |         return 0;
      |                  ^
a.cc:16:25: note: to match this '{'
   16 |         for(i=0;i<n;i++){
      |                         ^
a.cc:30:18: error: expected '}' at end of input
   30 |         return 0;
      |                  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'i' was not declared in this scope
    4 |          i,t,r,n,m,j;
      |          ^
a.cc:4:12: error: 't' was not declared in this scope
    4 |          i,t,r,n,m,j;
      |            ^
a.cc:4:14: error: 'r' was not declared in this scope
    4 |          i,t,r,n,m,j;
      |              ^
a.cc:4:16: error: 'n' was not declared in this scope
    4 |          i,t,r,n,m,j;
      |                ^
a.cc:4:18: error: 'm' was not declared in this scope
    4 |          i,t,r,n,m,j;
      |                  ^
a.cc:4:20: error: 'j' was not declared in this scope
    4 |          i,t,r,n,m,j;
      |                    ^
Language: C++

def main():
    N, M, L = map(int, input().split())
    A = tuple(tuple(map(int, input().split())) for _ in range(N))
    B = tuple(tuple(map(int, input().split())) for _ in range(M))

    cell = 0
    row = []
    for n in range(N):
        for l in range(L):
            for m in range(M):
                cell += A[n][m] * B[m][l]
            row.append(cell)
            cell = 0
        print(*row, sep=' ')
        row = []

main()

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def main():
      | ^~~
Language: C++

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

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

	b = new long long*[m];
	for(int i=0; i<m; ++i)
	{
		b[i] = new long long[l];
		for(int j=0; j<l;++j)
			cin >> b[i][j];
	}
		
	c = new long long*[n];
	for (int i = 0; i < n; ++i)
	{
		c[i] = new long long[l];
		for (int j = 0; j < l; ++j)
		{
			s = 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 << " ";
		}
		cout << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:25: error: 's' was not declared in this scope
   31 |                         s = 0;
      |                         ^
Language: C++

#include<iostream>

int main(){
    int a[500][500], b[500][500], c[500][500];
    int n;

    n = readint();

    for(int i=0; i<n; i++)
        for(int j=0; j<n; j++)
            a[i][j] = readint();

    for(int i=0; i<n; i++)
        for(int j=0; j<n; j++)
            b[i][j] = readint();

    for(int i=0; i<n; i++)
        for(int j=0; j<n; j++)
            c[i][j] = readint();

    for(int i=0; i<n; i++)
        for(int k=0; k<n; k++)
            for(int j=0; j<n; j++)
                c[i][j] -= a[i][k]*b[k][j];

    for(int i=0; i<n; i++)
        for(int j=0; j<n; j++)
            if(c[i][j]){
                printf("NO\n");
                return 0;
            }

    printf("YES\n");

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'readint' was not declared in this scope
    7 |     n = readint();
      |         ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
int n,m,l,A[101][101],B[101][101],C[101][101];

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];
}
}
for(int i=0;i<n;i++){
for(int j=0;j<l;j++){
C[i][j]=0;
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++){
if(j) cout <<" ";
cout <<C[i][j];
}
cout <<endl;
}
return 0;
}

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

#include<iostream>
using namespace std;

int main(){
int n,m,l,A[101][101],B[101][101],C[101][101];

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];
}
}
for(int i=0;i<n;i++){
for(int j=0;j<l;j++){
C[i][j]=0;
for(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:21:5: error: 'k' was not declared in this scope
   21 | for(k=0;k<m;k++){
      |     ^
Language: C++

#include<stdio.h>
int main(){
	int n,m,l,x,y,z,a[100][100],b[100][100],c[100][100]={0};
	long long int c[100][100]={0};
	scanf("%d %d %d",&n,&m,&l);
	for(y=0;y<n;y++){
		for(x=0;x<m;x++){
			scanf("%d",&a[y][x]);
		}
	}
	for(y=0;y<m;y++){
		for(x=0;x<l;x++){
			scanf("%d",&b[y][x]);
		}
	}
	for(y=0;y<n;y++){
		for(x=0;x<l;x++){
			for(z=0;z<m;z++){
				c[y][x]=c[y][x]+(a[y][z]*b[z][x]);
			}
		}
	}
	for(y=0;y<n;y++){
		for(x=0;x<l;x++){
			if(x!=(l-1)){
				printf("%lld ",c[y][x]);
			}
			else{
				printf("%lld",c[y][x]);
			}
		}
		printf("\n");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:23: error: conflicting declaration 'long long int c [100][100]'
    4 |         long long int c[100][100]={0};
      |                       ^
a.cc:3:49: note: previous declaration as 'int c [100][100]'
    3 |         int n,m,l,x,y,z,a[100][100],b[100][100],c[100][100]={0};
      |                                                 ^
Language: C++

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

Compiler output:
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

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

Compiler output:
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

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

Compiler output:
a.cc:2:21: error: expected unqualified-id before '?' token
    2 | using namespace std;??
      |                     ^
Language: C++

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

Compiler output:
a.cc:2:21: error: expected unqualified-id before '?' token
    2 | using namespace std;??
      |                     ^
Language: C++

#include <iostream>

using namespace std;

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

	int **A = new int*[n];
	int **B = new int*[m];
	long **C = new long*[n];

	for (int i = 0; i < n; i++)
		A[i] = new int[m];
	for (int i = 0; i <m; i++)
		B[i] = new int[l];
	for (int i = 0; i < n; i++)
		C[i] = new int[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];

	for (int i = 0; i < n; i++)
		for (int j = 0; j < l; j++)
			C[i][j] = 0;


	for (int i = 0; i < n; i++) {
		for (int j = 0; j < l; j++) {
			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 << " ";
		}
		cout << endl;
	}


	for (int i = 0; i < n; i++)
		delete[] A[i];
	for (int i = 0; i < m; i++)
		delete[] B[i];
	for (int i = 0; i < n; i++)
		delete[] C[i];


	delete[] A;
	delete[] B;
	delete[] C;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:24: error: cannot convert 'int*' to 'long int*' in assignment
   18 |                 C[i] = new int[l];
      |                        ^~~~~~~~~~
      |                        |
      |                        int*
Language: C++

#include <iostream>

int main(void)
{
	using namespace std;

	int n,m,l;

	cin >> n;
	cin >> m;
	cin >> l;

	int MatA[n][m], MatB[m][l], MatC[n][l];

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

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

	for(int i=0; i<n; i++){
		for(int j=0; j<l; j++){
			MatC[i][j] = 0;
			for(int k=0; k<m; k++){
				MatC[i][j] += MatA[i][k] * MatB[k][j];
			}
			cout << MatC[i][k] << " ";
		}
		cout << endl;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:32: error: 'Mat' was not declared in this scope; did you mean 'MatC'?
   17 |                         cin >> Mat[i][j];
      |                                ^~~
      |                                MatC
a.cc:23:32: error: 'Mat' was not declared in this scope; did you mean 'MatC'?
   23 |                         cin >> Mat[m][l];
      |                                ^~~
      |                                MatC
a.cc:33:41: error: 'k' was not declared in this scope
   33 |                         cout << MatC[i][k] << " ";
      |                                         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: 'J' was not declared in this scope
   18 |     for(j=0;j<l;J++){
      |                 ^