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

include <stdio.h>
int main(){
    int n,m,l,i,j,k,a[100][100],b[100][100];
    long long c[100][100]={0};
    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];
            }
            if(j!=0) printf(" "\n);
            printf("%ld",c[i][j]);
        }
        printf("");
    }
    return 0;
}



Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c:21:32: error: stray '\' in program
   21 |             if(j!=0) printf(" "\n);
      |                                ^
Language: C

#include<stdio.h>
int main()
{
    int n,m,l,i,j,k;
    scanf("%d %d %d",&n,&m,&l);
    int x[n][m],y[m][l]
    long long s=0,z[n][l];
    for(i=0;i<n;i++)
    {
        for(j=0;j<m;j++)
        {
            scanf("%d",&x[i][j]);
        }
    }
    for(i=0;i<m;i++)
    {
        for(j=0;j<l;j++)
        {
            scanf("%d",&y[i][j]);
        }
    }
    for(i=0;i<n;i++)
    {
        for(j=0;j<l;j++)
        {
            for(k=0;k<m;k++)
            {
                s=s+x[i][k]*y[k][j];
            }
            z[i][j]=s;
            s=0;
        }
    }
    for(i=0;i<n;i++)
    {
        for(j=0;j<l-1;j++)
        {
            printf("%lld ",z[i][j]);
        }
        for(j=l-1;j<l;j++)
        {
            printf("%lld\n",z[i][j]);
        }
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'
    7 |     long long s=0,z[n][l];
      |     ^~~~
main.c:19:25: error: 'y' undeclared (first use in this function)
   19 |             scanf("%d",&y[i][j]);
      |                         ^
main.c:19:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:28:17: error: 's' undeclared (first use in this function)
   28 |                 s=s+x[i][k]*y[k][j];
      |                 ^
main.c:30:13: error: 'z' undeclared (first use in this function)
   30 |             z[i][j]=s;
      |             ^
Language: C

#include <stdio.h>

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

int main(void){
  long i,j,k,n,m,l;
  long A[101][101],B[101][101],C[101][101]={0};
  scanf(" %d %d %d",&n,&m,&l);
  for(i=0;i<n;i++){
    for(j=0;j<m;j++){
      A[i][j]=0;
    }
  }
  for(i=0;i<m;i++){
    for(j=0;j<l;j++){
      B[i][j]=0;
    }
  }
  for(i=0;i<n;i++){
    for(j=0;j<l;j++){
      C[i][j]=0;
    }
  }
  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=1;k<=m;k++){
        C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
      }
    }
  }
  for(i=0;i<n;i++){
    for(j=0;j<l;j++){
      printf("%ld",C[i][j]);
      if(i!=n-1){
        printf(" ");
      }
    }
    printf("\n");
  }
  return 0;
}



Compiler output:
main.c:33:5: error: redefinition of 'main'
   33 | int main(void){
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int()'
    3 | int main()
      |     ^~~~
Language: C

#include<stdio.h>



int main() {
    //変数の宣言
    int n, m, l;
    int A[101][101], B[101][101], C[101][101];
    int i, j, k, total; //処理用
    
//    //初期化
//    for (i=0; i<101; i++) {
//        for (j=0; j<101; j++) {
//            A[i][j] = 0;
//            B[i][j] = 0;
//            C[i][j] = 0;
//        }
//    }
    
    
    
    //入力
    scanf("%d %d %d", &n, &m, &l);
    //A n*m
    for (i=0; i<n; i++) {
        for (j=0; j<m; j++) {
            scanf("%d", &A[i][j]);
        }
    }
    //B m*l
    for (i=0; i<m; i++) {
        for (j=0; j<l; j++) {
            scanf("%d", &B[i][j]);
        }
    }
    
    //Cは n * l
    for (i=0; i<n; i++) {
        for (j=0; j<l; j++) {
            total = 0; //初期化
            for (k=0; k<m; k++) { //こんなけぶん回数totalに突っ込む
                total += A[i][k] * B[k][j];
            }
            //終わったらCに回収
            C[i][j] = total;
        }
    }
    
    //Cを出力
    for (i=0; i<n; i++) {
        for (j=0; j<l; j++) {
            if (j != 0) {
                prinf(" ");
            }
            printf("%d", C[i][j]);
        }
        printf("\n"); //改行
    }
    
    
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:53:17: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   53 |                 prinf(" ");
      |                 ^~~~~
      |                 printf
Language: C

#include<stdio.h>
int main(){
int a[100][100],b[100][100],i,j,k,n,m,l,x;
long long int c[100][100]={0};
scanf("%d%d%d",&n,&m,&l);

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


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

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

for(i=0;i<n;i++){
for(k=0;k<l;k++){
printf("%lld",c[i][k]);
if(k!=l-1)printf(" ");
}
printf("\n");
}

return 0


Compiler output:
main.c: In function 'main':
main.c:38:9: error: expected ';' at end of input
   38 | return 0
      |         ^
      |         ;
main.c:38:1: error: expected declaration or statement at end of input
   38 | return 0
      | ^~~~~~
Language: C

#include<stdio.h>

const int SIZE=500005;
int heap_size;
int A[SIZE];
void maxHeapify(int *A,int i){
	int l=2*i;
 	int r=2*i+1;
	int largest;
	if(l<=heap_size && A[l]>A[i]){
		largest=l;
	}else{
 		largest=i;
	}
	if(r<=heap_size&&A[r]>A[largest]){
		largest=r;
	}
	if(largest!=i){
		int t=A[i];
		A[i]=A[largest];
		A[largest]=t;
		maxHeapify(A,largest);
	}
} 

void buildMaxHeap(int *A){
	for(int i=heap_size/2;i>0;i--)maxHeapify(A,i);
}

int main(){
	int num;
 	scanf("%d",&heap_size);
	for(int i=1;i<=heap_size;i++){
		scanf("%d",&A[i]);
	}
	buildMaxHeap(A);
	for(int i=1;i<=heap_size;i++){
 		printf(" %d",A[i]);
	}
	printf("\n");
}


Compiler output:
main.c:5:5: error: variably modified 'A' at file scope
    5 | int A[SIZE];
      |     ^
Language: C

#include <stdio.h>

int main(void) {
  int a,b,c,r,x[100][100],y[100][100];
  scanf("%d %d %d",&a,&b,&c);
  for(int d=0;d<a;d++)
    for(int e=0;e<b;e++)
     scanf("%d",&x[d][e]);
  
  for(d=0;d<b;d++)
   for(e=0;e<c;e++)
    scanf("%d",&y[d][e]);

  for(d=0;d<a;d++)
   for(e=0;e<c;e++){
    for(int g=0;g<b;;g++)
    r+=x[a][r]*y[r][b];
    printf("%d",r);
    if(b+1==1)
    printf("\n");
    else
    printf(" ");
   }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:7: error: 'd' undeclared (first use in this function)
   10 |   for(d=0;d<b;d++)
      |       ^
main.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:8: error: 'e' undeclared (first use in this function)
   11 |    for(e=0;e<c;e++)
      |        ^
main.c:16:21: error: expected expression before ';' token
   16 |     for(int g=0;g<b;;g++)
      |                     ^
Language: C

#include <stdio.h>

int main(void){
    int n, m, l;
    scanf("%d %d %d", &n, &m, &l);
    int A[n][m], B[m][l];
    long long int C[n][l];
    
    int i, j;
    for(i=0; i<n; i++){
        for(j=0; j<m; j++){
            scanf("%d", &A[n][m]);
        }
    }
    
    int i, j;
    for(i=0; i<m; i++){
        for(j=0; j<l; j++){
            scanf("%d", &B[m][l]);
        }
    }
    
    int i, j, k;
    for(i=0; i<n; i++){
        for(k=0; k<m; k++){
            for(j=0; j<l; j++){
                C[i][k]+=A[i][j]*B[j][k];
            }
        }
    }
    
    int i, j;
    for(i=0; i<n; i++){
        for(j=0; j<l-1; j++){
            printf("%lld ", C[i][j]);
        }
        printf("%lld\n", C[i][l-1]);
    }
    
    
    return 0;
}
    


Compiler output:
main.c: In function 'main':
main.c:16:9: error: redeclaration of 'i' with no linkage
   16 |     int i, j;
      |         ^
main.c:9:9: note: previous declaration of 'i' with type 'int'
    9 |     int i, j;
      |         ^
main.c:16:12: error: redeclaration of 'j' with no linkage
   16 |     int i, j;
      |            ^
main.c:9:12: note: previous declaration of 'j' with type 'int'
    9 |     int i, j;
      |            ^
main.c:23:9: error: redeclaration of 'i' with no linkage
   23 |     int i, j, k;
      |         ^
main.c:16:9: note: previous declaration of 'i' with type 'int'
   16 |     int i, j;
      |         ^
main.c:23:12: error: redeclaration of 'j' with no linkage
   23 |     int i, j, k;
      |            ^
main.c:16:12: note: previous declaration of 'j' with type 'int'
   16 |     int i, j;
      |            ^
main.c:32:9: error: redeclaration of 'i' with no linkage
   32 |     int i, j;
      |         ^
main.c:23:9: note: previous declaration of 'i' with type 'int'
   23 |     int i, j, k;
      |         ^
main.c:32:12: error: redeclaration of 'j' with no linkage
   32 |     int i, j;
      |            ^
main.c:23:12: note: previous declaration of 'j' with type 'int'
   23 |     int i, j, k;
      |            ^
Language: C

#include <stdio.h>

int main(void){
    int n, m, l;
    scanf("%d %d %d", &n, &m, &l);
    int A[n][m], B[m][l];
    long long int C[n][l];
    
    for(int i = 0; i < n; i++){
        for(int j = 0; j < l; j++){
            C[i][j] = 0;
        }
    }
    
    int i, j;
    for(i=0; i<n; i++){
        for(j=0; j<m; j++){
            scanf("%d", &A[n][m]);
        }
    }
    
    int i, j;
    for(i=0; i<m; i++){
        for(j=0; j<l; j++){
            scanf("%d", &B[m][l]);
        }
    }
    
    int i, j, k;
    for(i=0; i<n; i++){
        for(k=0; k<m; k++){
            for(j=0; j<l; j++){
                C[i][k]+=A[i][j]*B[j][k];
            }
        }
    }
    
    int i, j;
    for(i=0; i<n; i++){
        for(j=0; j<l-1; j++){
            printf("%lld ", C[i][j]);
        }
        printf("%lld\n", C[i][l-1]);
    }
    
    
    return 0;
}
    


Compiler output:
main.c: In function 'main':
main.c:22:9: error: redeclaration of 'i' with no linkage
   22 |     int i, j;
      |         ^
main.c:15:9: note: previous declaration of 'i' with type 'int'
   15 |     int i, j;
      |         ^
main.c:22:12: error: redeclaration of 'j' with no linkage
   22 |     int i, j;
      |            ^
main.c:15:12: note: previous declaration of 'j' with type 'int'
   15 |     int i, j;
      |            ^
main.c:29:9: error: redeclaration of 'i' with no linkage
   29 |     int i, j, k;
      |         ^
main.c:22:9: note: previous declaration of 'i' with type 'int'
   22 |     int i, j;
      |         ^
main.c:29:12: error: redeclaration of 'j' with no linkage
   29 |     int i, j, k;
      |            ^
main.c:22:12: note: previous declaration of 'j' with type 'int'
   22 |     int i, j;
      |            ^
main.c:38:9: error: redeclaration of 'i' with no linkage
   38 |     int i, j;
      |         ^
main.c:29:9: note: previous declaration of 'i' with type 'int'
   29 |     int i, j, k;
      |         ^
main.c:38:12: error: redeclaration of 'j' with no linkage
   38 |     int i, j;
      |            ^
main.c:29:12: note: previous declaration of 'j' with type 'int'
   29 |     int i, j, k;
      |            ^
Language: C

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


Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
Language: C

#include <stdio.h>

using namespace std;

int main(){
	int n,m,l;
	scanf("%d %d %d",&n,&m,&l);
	int A[n][m],B[m][l];
	long long int C[n][l];
	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++){
			scanf("%d",&A[i][j]);
		}
	}
	for(int i = 0; i < m; i++){
		for(int j = 0; j < l; j++){
			scanf("%d",&B[i][j]);
		}
	}

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

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


Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
Language: C

#include <stdio.h>

int main(void){
    int n, m, l;
    scanf("%d %d %d", &n, &m, &l);
    int A[n][m], B[m][l];
    long long int C[n][l];
    
    for(int i = 0; i < n; i++){
        for(int j = 0; j < l; j++){
            C[i][j] = 0;
        }
    }
    
    int i, j;
    for(i=0; i<n; i++){
        for(j=0; j<m; j++){
            scanf("%d", &A[i][j]);
        }
    }
    
    int i, j;
    for(i=0; i<m; i++){
        for(j=0; j<l; j++){
            scanf("%d", &B[i][j]);
        }
    }
    
    int i, j, k;
    for(i=0; i<n; i++){
        for(k=0; k<m; k++){
            for(j=0; j<l; j++){
                C[i][k]+=A[i][j]*B[j][k];
            }
        }
    }
    
    int i, j;
    for(i=0; i<n; i++){
        for(j=0; j<l-1; j++){
            printf("%lld ", C[i][j]);
        }
        printf("%lld\n", C[i][l-1]);
    }
    
    
    return 0;
}
    


Compiler output:
main.c: In function 'main':
main.c:22:9: error: redeclaration of 'i' with no linkage
   22 |     int i, j;
      |         ^
main.c:15:9: note: previous declaration of 'i' with type 'int'
   15 |     int i, j;
      |         ^
main.c:22:12: error: redeclaration of 'j' with no linkage
   22 |     int i, j;
      |            ^
main.c:15:12: note: previous declaration of 'j' with type 'int'
   15 |     int i, j;
      |            ^
main.c:29:9: error: redeclaration of 'i' with no linkage
   29 |     int i, j, k;
      |         ^
main.c:22:9: note: previous declaration of 'i' with type 'int'
   22 |     int i, j;
      |         ^
main.c:29:12: error: redeclaration of 'j' with no linkage
   29 |     int i, j, k;
      |            ^
main.c:22:12: note: previous declaration of 'j' with type 'int'
   22 |     int i, j;
      |            ^
main.c:38:9: error: redeclaration of 'i' with no linkage
   38 |     int i, j;
      |         ^
main.c:29:9: note: previous declaration of 'i' with type 'int'
   29 |     int i, j, k;
      |         ^
main.c:38:12: error: redeclaration of 'j' with no linkage
   38 |     int i, j;
      |            ^
main.c:29:12: note: previous declaration of 'j' with type 'int'
   29 |     int i, j, k;
      |            ^
Language: C

import java.util.Scanner;
public class LinearSearch {
	public static int search(int[] a,int key,int n){
		int i = 0;
		a[n]=key;
		while(a[i]!=key){
			i++;
		}
		if(i==n){
			return 0;
		}
		return i;
	}
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int result=0;
		int n = scan.nextInt();
		int[] S = new int[n+1];
		for(int i = 0 ; i < n ; i ++){
			S[i]=scan.nextInt();
		}
		int q = scan.nextInt();
		int[] T = new int[q];
		for(int i = 0 ; i < q ; i ++){
			T[i]=scan.nextInt();
		}
		for(int i = 0; i < q ; i ++){
			result = search(S,T[i],n);
			if(result !=0){
				System.out.println(result+1);
				System.exit(0);
			}
		}
		System.out.println("0");
		scan.close();
	}

}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:2:1: error: unknown type name 'public'
    2 | public class LinearSearch {
      | ^~~~~~
main.c:2:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'LinearSearch'
    2 | public class LinearSearch {
      |              ^~~~~~~~~~~~
Language: C++

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

int main(){
  int n,m,l,i,j,k;
  int A[100][100],B[100][100],C[100][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<n;i++){
    for(k=0;k<l;k++){
      for(j=0;j<m;j++){
	C[i][k]+=A[i][j]*B[j][k];
      }
    }
  }

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


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

#include<iostream>
using namespace std;

int main(){
    int array1[100][100], array2[100][100], array3[100][100] = {{}};
    int n, m, l;
    int i, j, k;
    
    cin >> n >> m >> l;
    for(i = 0; i < n; i++){
        for(j = 0; j < m; j++){
            cin >> array1[i][j];
        }
    }
    for(i = 0; i < m; i++){
        for(j = 0; j < l; j++){
            cin >> array2[i][j];
        }
    }
    for(i = 0; i < l; l++){
        for(j = 0; j < n; j++){
            for(k = 0; k < m; k++){
                array3[n][l] += array1[n][m] * array[m][l];
            }
        }
    }
    for(i = 0; i < n; i++){
        for(j = 0; j < l; j++){
            cout << array3[i][j] << " ";
        }
        cout << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:53: error: missing template arguments before '[' token
   23 |                 array3[n][l] += array1[n][m] * array[m][l];
      |                                                     ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int array1[100][100], array2[100][100], array3[100][100] = {{}};
    int n, m, l;
    int i, j, k;
    
    cin >> n >> m >> l;
    for(i = 0; i < n; i++){
        for(j = 0; j < m; j++){
            cin >> array1[i][j];
        }
    }
    for(i = 0; i < m; i++){
        for(j = 0; j < l; j++){
            cin >> array2[i][j];
        }
    }
    for(i = 0; i < n; i++){
        for(j = 0; j < l; j++){
            for(k = 0; k < m; k++){
                array3[n][l] += array1[n][m] * array[m][l];
            }
        }
    }
    for(i = 0; i < n; i++){
        for(j = 0; j < l; j++){
            cout << array3[i][j] << " ";
        }
        cout << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:53: error: missing template arguments before '[' token
   23 |                 array3[n][l] += array1[n][m] * array[m][l];
      |                                                     ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int array1[100][100], array2[100][100], array3[100][100] = {{}};
    int n, m, l;
    int i, j, k;
    
    cin >> n >> m >> l;
    for(i = 0; i < n; i++){
        for(j = 0; j < m; j++){
            cin >> array1[i][j];
        }
    }
    for(i = 0; i < m; i++){
        for(j = 0; j < l; j++){
            cin >> array2[i][j];
        }
    }
    for(i = 0; i < n; i++){
        for(j = 0; j < l; j++){
            for(k = 0; k < m; k++){
                array3[i][j] += array1[i][k] * array[k][j];
            }
        }
    }
    for(i = 0; i < n; i++){
        for(j = 0; j < l; j++){
            cout << array3[i][j] << " ";
        }
        cout << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:53: error: missing template arguments before '[' token
   23 |                 array3[i][j] += array1[i][k] * array[k][j];
      |                                                     ^
Language: C++

#include<stdio.h>
using namespace std;

int main(){
    int n,m,l;
    scanf("%d%d%d",&n,&m,&l);
    int a[n][m],b[m][l],c[n][l];
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            scanf("%d",a[i][j]);
        }
    }
    for(int i=0;i<m;i++){
        for(int j=0;j<l;j++){
            scanf("%d",b[m][l]);
        }
    }
    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<l-2){
                printf("%d ",c[i][j])
            }else{
                printf("%d",c[i][j])
            }
        }printf("\n")
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:38: error: expected ';' before '}' token
   28 |                 printf("%d ",c[i][j])
      |                                      ^
      |                                      ;
   29 |             }else{
      |             ~                         
a.cc:30:37: error: expected ';' before '}' token
   30 |                 printf("%d",c[i][j])
      |                                     ^
      |                                     ;
   31 |             }
      |             ~                        
a.cc:32:22: error: expected ';' before '}' token
   32 |         }printf("\n")
      |                      ^
      |                      ;
   33 |     }
      |     ~
Language: C++

#include<stdio.h>
using namespace std;

int main(){
    int n,m,l;
    scanf("%d%d%d",&n,&m,&l);
    long longint a[100][100],b[100][100];
    long long int c[100][100]={};
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            scanf("%d",&a[i][j]);
        }
    }
    for(int i=0;i<m;i++){
        for(int j=0;j<l;j++){
            scanf("%d",&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<l-1){
                printf("%lld ",c[i][j]);
            }else{
                printf("%lld",c[i][j]);
            }
        }printf("\n");
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected initializer before 'a'
    7 |     long longint a[100][100],b[100][100];
      |                  ^
a.cc:11:25: error: 'a' was not declared in this scope
   11 |             scanf("%d",&a[i][j]);
      |                         ^
a.cc:16:25: error: 'b' was not declared in this scope
   16 |             scanf("%d",&b[i][j]);
      |                         ^
a.cc:22:28: error: 'a' was not declared in this scope
   22 |                 c[i][j] += a[i][k]*b[k][j];
      |                            ^
a.cc:22:36: error: 'b' was not declared in this scope
   22 |                 c[i][j] += a[i][k]*b[k][j];
      |                                    ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
using ll = long long; using ull = unsigned long long;
#define int ll
using vb = vector<bool>; using vvb = vector<vb>;
using vi = vector<int>; using vvi = vector<vi>;
using vl = vector<ll>; using vvl = vector<vl>;
using pii = pair<int,int>; using pll = pair<ll,ll>;
#define FOR(i,a,b) for(ll i = (a); i < (ll)(b); ++i)
#define REP(i,n) FOR(i,0,n)
#define RFOR(i,a,b) for(ll i = (ll)(b)-1;i >= a;--i)
#define RREP(i,n) RFOR(i,0,n)
#define ALL(obj) (obj).begin(), (obj).end()
#define rALL(obj) (obj).rbegin(), (obj).rend()
#define eb(val) emplace_back(val)
const double PI = acos(-1);
const double EPS = 1e-10;
const ll MOD = 1e9+7;
void cioacc(){//accelerate cin/cout
  cin.tie(0);
  ios::sync_with_stdio(false);
}
int main(){
  int n,m,l;
  cin >> n >> m >> l;
  vvi a(n,vi(m)),b(m,vi(l)),c(n,vi(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];
  for(auto i:c){
    REP(j,i.size()-1) cout << i[j] << " ";
    cout << i.back() << endl;
  }
}


Compiler output:
a.cc:4:13: error: '::main' must return 'int'
    4 | #define int ll
      |             ^~
a.cc:23:1: note: in expansion of macro 'int'
   23 | int main(){
      | ^~~
Language: C++

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

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

//行列Aの読み込み
vector< vector<int> > matrix_A(n, vector<int>(m));
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      cin >> data.at(i).at(j);
    }
  }

//行列Bの読み込み
vector< vector<int> > matrix_B(m, vector<int>(l));
  for (int i = 0; i < m; i++) {
    for (int j = 0; j < l; j++) {
      cin >> data.at(i).at(j);
    }
  }


//結果(積AB)の出力
 for( int i = 0; i < n; i++){
   for(int k = 0; k < l; k++){
    int a[k] = 0;
   }
  for(int j = 0; j < m; j++){
     a[k] += matrix_A.at(i).at(j) * matrix_B.at(j).at(k);
    }
  for(int k = 0; k < l; k++){ 
    cout << a[k] << " " << endl;
  }
 }
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: overloaded function with no contextual type information
   13 |       cin >> data.at(i).at(j);
      |                   ^~
a.cc:21:19: error: overloaded function with no contextual type information
   21 |       cin >> data.at(i).at(j);
      |                   ^~
a.cc:29:16: error: array must be initialized with a brace-enclosed initializer
   29 |     int a[k] = 0;
      |                ^
a.cc:32:6: error: 'a' was not declared in this scope
   32 |      a[k] += matrix_A.at(i).at(j) * matrix_B.at(j).at(k);
      |      ^
a.cc:32:8: error: 'k' was not declared in this scope
   32 |      a[k] += matrix_A.at(i).at(j) * matrix_B.at(j).at(k);
      |        ^
a.cc:35:13: error: 'a' was not declared in this scope
   35 |     cout << a[k] << " " << endl;
      |             ^
Language: C++

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

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

//行列Aの読み込み
vector< vector<int> > matrix_A(n, vector<int>(m));
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      cin >> matrix_A.at(i).at(j);
    }
  }

//行列Bの読み込み
vector< vector<int> > matrix_B(m, vector<int>(l));
  for (int i = 0; i < m; i++) {
    for (int j = 0; j < l; j++) {
      cin >> matrix_B.at(i).at(j);
    }
  }


//結果(積AB)の出力
 for( int i = 0; i < n; i++){
   for(int k = 0; k < l; k++){
    int a[k] = 0;
 
     for(int j = 0; j < m; j++){
         a[k] += matrix_A.at(i).at(j) * matrix_B.at(j).at(k);
       }
     cout << a[k] << " " << endl;
  }
 }
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:16: error: array must be initialized with a brace-enclosed initializer
   29 |     int a[k] = 0;
      |                ^
Language: C++

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

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

//行列Aの読み込み
vector< vector<int> > matrix_A(n, vector<int>(m));
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      cin >> matrix_A.at(i).at(j);
    }
  }

//行列Bの読み込み
vector< vector<int> > matrix_B(m, vector<int>(l));
  for (int i = 0; i < m; i++) {
    for (int j = 0; j < l; j++) {
      cin >> matrix_B.at(i).at(j);
    }
  }


//結果(積AB)の出力
 for( int i = 0; i < n; i++){
   int a[l];
   for(int k = 0; k < l; k++){
   int a[k] = 0;
 
     for(int j = 0; j < m; j++){
         a[k] += matrix_A.at(i).at(j) * matrix_B.at(j).at(k);
       }
     cout << a[k] << " " << endl;
  }
 }
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:30:15: error: array must be initialized with a brace-enclosed initializer
   30 |    int a[k] = 0;
      |               ^
Language: C++

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

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

//行列Aの読み込み
vector< vector<int> > matrix_A(n, vector<int>(m));
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      cin >> matrix_A.at(i).at(j);
    }
  }

//行列Bの読み込み
vector< vector<int> > matrix_B(m, vector<int>(l));
  for (int i = 0; i < m; i++) {
    for (int j = 0; j < l; j++) {
      cin >> matrix_B.at(i).at(j);
    }
  }


//結果(積AB)の出力
 for( int i = 0; i < n; i++){
   int a[l] = {}
   for(int k = 0; k < l; k++){

     for(int j = 0; j < m; j++){
         a[k] += matrix_A.at(i).at(j) * matrix_B.at(j).at(k);
       }
     cout << a[k] << " " << endl;
  }
 }
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:29:4: error: expected ',' or ';' before 'for'
   29 |    for(int k = 0; k < l; k++){
      |    ^~~
a.cc:29:19: error: 'k' was not declared in this scope
   29 |    for(int k = 0; k < l; k++){
      |                   ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int r,c,t;
    cin>>r>>c>>t;
    int R[r][c]={{}};
    int S[c][r]={{}};
    for (int i=0;i<r;i++){
        for(int x=0;x<c;x++){
            cin>>R[i][x];
        }
    }
    for (int i=0;i<c;i++){
        for(int x=0;x<t;x++){
            cin>>S[c][t];
        }
    }
    for(int s=0;s<r;s++){
        for (int i=0;i<t;i++){
            for(int x=0;x<c;x++){
                t+=R[s][x]*S[x][i];
            }
            cout<<t<<" ";
            t=0
        }
        cout<<endl;
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:24:16: error: expected ';' before '}' token
   24 |             t=0
      |                ^
      |                ;
   25 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int r,c,k,t;
    cin>>r>>c>>t;
    int R[r][c]={};
    int S[c][r]={};
    for (int i=0;i<r;i++){
        for(int x=0;x<c;x++){
            cin>>R[i][x];
        }
    }
    for (int i=0;i<c;i++){
        for(int x=0;x<t;x++){
            cin>>S[i][x];
        }
    }
    for(int s=0;s<r;s++){
        for (int i=0;i<t;i++){
            for(int x=0;x<c;x++){
                k+=R[s][x]*S[x][i];
            }
            if (x==0) cout<<" ";
            cout<<" "<<k;
            k=0;
        }
        cout<<endl;
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:23:17: error: 'x' was not declared in this scope
   23 |             if (x==0) cout<<" ";
      |                 ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int r,c,t;
    long long k=0;
    cin>>r>>c>>t;
    long long R[r][c]={};
    long long SA[c][r]={};
    for (int i=0;i<r;i++){
        for(int x=0;x<c;x++){
            cin>>R[i][x];
        }
    }
    for (int i=0;i<c;i++){
        for(int x=0;x<t;x++){
            cin>>SA[i][x];
        }
    }
    for(int s=0;s<r;s++){
        for (int i=0;i<t;i++){
            for(int x=0;x<c;x++){
                k+=R[s][x]*SA[x][i];
                cout<<R[s][x];
                cout<<SA[x][i];
            }
            if (i==t-1) cout<<k;
            else cout<<k<<" ";
            k=0;
        }
        cout<<endl;
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:31:6: error: expected '}' at end of input
   31 |     }
      |      ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
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;
        }
    }int sum=0;
    for (int a=0;a<n;a++){
        for (int c=0;c<m;c++){
            for(int b=0;b<n;b++){
                sum=sum+A[a][b]*B[b][c]
            }cout<<sum;
            sum=0;
            if(c!=m-1) cout<<" ";
        }cout<<endl;
    }return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:40: error: expected ';' before '}' token
   21 |                 sum=sum+A[a][b]*B[b][c]
      |                                        ^
      |                                        ;
   22 |             }cout<<sum;
      |             ~
Language: C++

#include<iostrem>
using namespace std;
int main(){
    int n, m, l, p;
    
    cin >> n >> m >> l;
    
    int dimA[n][m];
    int dimB[m][l];
    int dimC[n][l];
    
    for(int i = 0; i < n; i++){
        for(int j = 0; j < m; j++){
            cin >> dimA[i][j];
        }
    }
    
    for(int i = 0; i < m; i++){
        for(int j = 0; j < l; j++){
            cin >> dimB[i][j];
        }
    }
    
    for(int i = 0; i < n; i++){
        dimC[i][k] = 0;
        
        for(int j = 0; j < m; j++){
            for(int k = 0; k < l; k++){
                p = dimA[i][j] * dimB[j][k];
                dimC[i][k] += p;
                p = 0;
            }
        }
    }
    
    for(int i = 0; i < n; i++){
        for(int j = 0; j < l; j++){
            cout << dimC[i][j] << " ";
        }
        
        cout << endl;
    }
}


Compiler output:
a.cc:1:9: fatal error: iostrem: No such file or directory
    1 | #include<iostrem>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n, m, l, p;
    
    cin >> n >> m >> l;
    
    int dimA[n][m];
    int dimB[m][l];
    int dimC[n][l];
    
    for(int i = 0; i < n; i++){
        for(int j = 0; j < m; j++){
            cin >> dimA[i][j];
        }
    }
    
    for(int i = 0; i < m; i++){
        for(int j = 0; j < l; j++){
            cin >> dimB[i][j];
        }
    }
    
    for(int i = 0; i < n; i++){
        dimC[i][k] = 0;
        
        for(int j = 0; j < m; j++){
            for(int k = 0; k < l; k++){
                p = dimA[i][j] * dimB[j][k];
                dimC[i][k] += p;
                p = 0;
            }
        }
    }
    
    for(int i = 0; i < n; i++){
        for(int j = 0; j < l; j++){
            cout << dimC[i][j] << " ";
        }
        
        cout << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: error: 'k' was not declared in this scope
   25 |         dimC[i][k] = 0;
      |                 ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n, m, l, p;
    
    cin >> n >> m >> l;
    
    int dimA[n][m];
    int dimB[m][l];
    int dimC[n][l];
    
    for(int i = 0; i < n; i++){
        for(int j = 0; j < l; j++){
            dimC[i][j] = 0;
        }
    
    for(int i = 0; i < n; i++){
        for(int j = 0; j < m; j++){
            cin >> dimA[i][j];
        }
    }
    
    for(int i = 0; i < m; i++){
        for(int j = 0; j < l; j++){
            cin >> dimB[i][j];
        }
    }
    
    for(int i = 0; i < n; i++){
        for(int j = 0; j < m; j++){
            for(int k = 0; k < l; k++){
                p = dimA[i][j] * dimB[j][k];
                dimC[i][k] += p;
                p = 0;
            }
        }
    }
    
    for(int i = 0; i < n; i++){
        for(int j = 0; j < l; j++){
            cout << dimC[i][j] << " ";
        }
        
        cout << endl;
    }
}


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

#include<iostream>
using namespace std;
typedef long long ll;
int main(){
  ll a[105][105]={{}};
  ll b[105][105]={{}};
  int n,m,l;
  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++){
      ll o=0;
      for(k=0;k<m;k++){
	o+=a[i][k]*b[k][j];
      }
      if(j==0) cout << o;
      else cout << " " << o; 
    }
    cout << endl;
  }
  return 0;
}



Compiler output:
a.cc:31:3: error: expected unqualified-id before 'return'
   31 |   return 0;
      |   ^~~~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
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(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] += A[i][j] * B[i][j];
        }
    }
    
    for(int i=0; i<n; i++){
        cout << C[i][j] << endl;
    }
    
    return 0;
}


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

#nclude<iostream>
using namespace std;

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #nclude; did you mean #include?
    1 | #nclude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin>>n>>m>>l;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #nclude<iostream>
a.cc:22:22: error: expected ';' before 'for'
   22 |             C[i][j]=0
      |                      ^
      |                      ;
   23 |             for(int k=0; k<m; k++){
      |             ~~~       
a.cc:23:26: error: 'k' was not declared in this scope
   23 |             for(int k=0; k<m; k++){
      |                          ^
a.cc:31:19: error: 'cout' was not declared in this scope
   31 |             if(j) cout<<" ";
      |                   ^~~~
a.cc:31:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:32:13: error: 'cout' was not declared in this scope
   32 |             cout<<C[i][j];
      |             ^~~~
a.cc:32:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:9: error: 'cout' was not declared in this scope
   35 |         cout<<endl;
      |         ^~~~
a.cc:35:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:15: error: 'endl' was not declared in this scope
   35 |         cout<<endl;
      |               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #nclude<iostream>
Language: C++

#nclude<iostream>
using namespace std;

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #nclude; did you mean #include?
    1 | #nclude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin>>n>>m>>l;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #nclude<iostream>
a.cc:22:22: error: expected ';' before 'for'
   22 |             C[i][j]=0
      |                      ^
      |                      ;
   23 |             for(int k=0; k<m; k++){
      |             ~~~       
a.cc:23:26: error: 'k' was not declared in this scope
   23 |             for(int k=0; k<m; k++){
      |                          ^
a.cc:31:19: error: 'cout' was not declared in this scope
   31 |             if(j) cout<<" ";
      |                   ^~~~
a.cc:31:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:32:13: error: 'cout' was not declared in this scope
   32 |             cout<<C[i][j];
      |             ^~~~
a.cc:32:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:9: error: 'cout' was not declared in this scope
   35 |         cout<<endl;
      |         ^~~~
a.cc:35:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:15: error: 'endl' was not declared in this scope
   35 |         cout<<endl;
      |               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #nclude<iostream>
Language: C++

#nclude<iostream>
using namespace std;

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #nclude; did you mean #include?
    1 | #nclude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin>>n>>m>>l;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #nclude<iostream>
a.cc:24:17: error: 'c' was not declared in this scope
   24 |                 c[i][j]+=A[i][k]*B[k][j];
      |                 ^
a.cc:31:19: error: 'cout' was not declared in this scope
   31 |             if(j) cout<<" ";
      |                   ^~~~
a.cc:31:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:32:13: error: 'cout' was not declared in this scope
   32 |             cout<<C[i][j];
      |             ^~~~
a.cc:32:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:9: error: 'cout' was not declared in this scope
   35 |         cout<<endl;
      |         ^~~~
a.cc:35:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:15: error: 'endl' was not declared in this scope
   35 |         cout<<endl;
      |               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #nclude<iostream>
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:24:17: error: 'c' was not declared in this scope
   24 |                 c[i][j]+=A[i][k]*B[k][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 j=0;j<m;j++){
            for(int k=0;k<l;k++){
                z[i][k]=x[i][j]*y[j][k];
                cout<<z[i][k];
                if(k==l-1){
                    cout<<endl;
                }
                else{
                    cout<<" "<<;
                }
                
            }
            
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:32: error: expected primary-expression before ';' token
   29 |                     cout<<" "<<;
      |                                ^
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 j=0;j<m;j++){
            for(int k=0;k<l;k++){
                z[i][k]=x[i][j]*y[j][k];
                }
                cout<<z[i][k];
                if(k==l-1){
                    cout<<endl;
                }
                else{
                    cout<<" ";
                }
                
            
            
        }
    }
    return 0;
}


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