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

#include<stdio.h>
#include<stdlib.h>

/**********
 n, m, l
      m 
 A= * * *
    * * *  n
       l           m   
 B= * * * *      * * *
    * * * * m -> * * * l
    * * * *      * * *
       l         * * *
 C= * * * *
    * * * * n
**********/

int
main(int argc, char *argv[])
{
        int n, m, l;
        int *A, *B;
        int *itr, *itrA, *itrB;
        int i, j, k;
        long int tmp;

        scanf("%d %d %d", &n, &m, &l);
        A = (int *)malloc(n * m * sizeof(int));
        B = (int *)malloc(m * l * sizeof(int));
        C = (int *)malloc(n * l * sizeof(int));

        itr = A;
        for (i = 0; i < n * m; i++)
                scanf("%d", itr++);
        itr = B;
        for (i = 0; i < m; i++)
                for (j = 0; j < l; j++) {
                        scanf("%d", itr);
                        itr += m;
                }
                itr -= m * l - 1;

        for (i = 0; i < n; i++)
                for (j = 0; j < l; j++) {
                        itrA = A + m * i;
                        itrB = B + m * j;
                        tmp = 0
                        for (k = 0; k < m; k++)
                                tmp += *itrA++ * *itrB++;
                        printf("%d%c", *itr++, (j == l - 1)? '\n': ' ');
                }

        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:9: error: 'C' undeclared (first use in this function)
   30 |         C = (int *)malloc(n * l * sizeof(int));
      |         ^
main.c:30:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:47:32: error: expected ';' before 'for'
   47 |                         tmp = 0
      |                                ^
      |                                ;
   48 |                         for (k = 0; k < m; k++)
      |                         ~~~
Language: C

#include <stdio.h>
#include <string.h>



int main()
{
	int  n,m,l;
	char buff[128];
	char *wk_p;
	int  dt_a[100][100];
	int  dt_b[100][100];
	int  kekka[100][100];
    int  k,i,p,u,a,b,index_x,index_y;
	char *ptr;

	memset(buff,'\0',sizeof(buff));
	memset(dt_a,'\0',sizeof(dt_a));
	memset(dt_b,'\0',sizeof(dt_b));
	memset(kekka,-1,sizeof(kekka));
	gets(buff);
	sscanf(buff,"%d %d %d",&n,&m,&l);

	for(i=0 ; i<n ; i++) {
		gets(buff);
    	wk_p = strtok(buff," ");
		for(k=0 ; k<m ; k++) {
			sscanf(wk_p,"%d",&(dt_a[i][k]));
			wk_p = strtok(NULL," ");
			if (wk_p == NULL) {
				break;
			}
		}

	}

	for(i=0 ; i<m ; i++) {
		gets(buff);
    	wk_p = strtok(buff," ",&ptr);
		for(k=0 ; k<l ; k++) {
			sscanf(wk_p,"%d",&(dt_b[i][k]));
			wk_p = strtok(NULL," ");
			if (wk_p == NULL) {
				break;
			}
		}

	}

	for(index_y=0,p=0 ; p<n ; p++,index_y++) {
		for(;;) {
//			u=0;
			index_x=0;
//			a = dt_a[p][u];
			for (k=0 ; k<l ; k++,index_x++) {
				u = 0;
				for (i=0 ; i<m ; i++) {
					if (kekka[index_y][index_x] == -1) {
						kekka[index_y][index_x] = 0;
					}
					a = dt_a[p][u]; u++;
					b = dt_b[i][k];
					kekka[index_y][index_x] += b * a;
				}
			}
			break;
		}
	}

	for(i=0 ;; i++) {
		for(k=0 ;; k++) {
			printf("%d",kekka[i][k]);
			if (kekka[i][k+1] == -1) {
				break;
			}
			else {
				printf(" ");
			}
		}
		printf("\n");
		if (kekka[i+1][k] == -1) {
			break;
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   21 |         gets(buff);
      |         ^~~~
      |         fgets
main.c:39:16: error: too many arguments to function 'strtok'
   39 |         wk_p = strtok(buff," ",&ptr);
      |                ^~~~~~
In file included from main.c:2:
/usr/include/string.h:356:14: note: declared here
  356 | extern char *strtok (char *__restrict __s, const char *__restrict __delim)
      |              ^~~~~~
Language: C

#include <stdio.h>
#include <string.h>

int main()
{
	int  n,m,l;
	char buff[128];
	char *wk_p;
	int  dt_a[200][200];
	int  dt_b[200][200];
	int  kekka[200]200];
    int  k,i,p,u,a,b,index_x,index_y;
	char *ptr;
	int  *dta_p,*dtb_p,*kekka_p;

	memset(kekka,-1,sizeof(kekka));
	gets(buff);
	sscanf(buff,"%d %d %d",&n,&m,&l);

	for(i=0 ; i<n ; i++) {
		gets(buff);
    	wk_p = strtok(buff," ");
		dta_p = &(dt_a[i][0]);
		for(k=0 ; k<m ; k++,dta_p++) {
			sscanf(wk_p,"%d",dta_p/*&(dt_a[i][k])*/);
			wk_p = strtok(NULL," ");
			if (wk_p == NULL) {
				break;
			}
		}

	}

	for(i=0 ; i<m ; i++) {
		gets(buff);
    	wk_p = strtok(buff," ");
		dtb_p = &(dt_b[i][0]);
		for(k=0 ; k<l ; k++,dtb_p++) {
			sscanf(wk_p,"%d",dtb_p/*&(dt_b[i][k])*/);
			wk_p = strtok(NULL," ");
			if (wk_p == NULL) {
				break;
			}
		}

	}

	for(index_y=0,p=0 ; p<n ; p++,index_y++) {
		for(;;) {
			index_x=0;
			kekka_p=&(kekka[index_y][index_x]);
			for (k=0 ; k<l ; k++,index_x++,kekka_p++) {
				dta_p = &(dt_a[p][0]);
				for (i=0 ; i<m ; i++,dta_p++) {
					if (*kekka_p == -1) {
						*kekka_p = 0;
					}
					a = *dta_p;
					b = dt_b[i][k];
					*kekka_p += b * a;
				}
			}
			kekka_p = &(kekka[index_y][0]);
			for (k=0 ;; k++,kekka_p++) {
				if (*kekka_p!=-1) {

					printf("%d",*kekka_p);
					if (*(kekka_p+1) != -1) {
						printf(" ");
					}
				}
				else {
					printf("\n"); break;
				}
			}
			break;
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
   11 |         int  kekka[200]200];
      |                        ^~~
main.c:11:27: error: expected ';' before ']' token
   11 |         int  kekka[200]200];
      |                           ^
      |                           ;
main.c:11:27: error: expected statement before ']' token
main.c:16:16: error: 'kekka' undeclared (first use in this function); did you mean 'kekka_p'?
   16 |         memset(kekka,-1,sizeof(kekka));
      |                ^~~~~
      |                kekka_p
main.c:16:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   17 |         gets(buff);
      |         ^~~~
      |         fgets
Language: C

#include<stdio.h>
int main(void){
int n,m,l,i,r,t;
insigned sum=0;
int iti[100][100];
int ni[100][100];
scanf("%d %d %d",&n,&m,&l);
for(i=0;i<n;i++){
for(r=0;r<m;r++){
scanf("%d",&iti[i][r]);
}
}
for(i=0;i<m;i++){
for(r=0;r<l;r++){
scanf("%d",&ni[i][r]);
}
}
for(i=0;i<n;i++){
for(r=0;r<l;r++){
for(t=0;t<m;t++){
sum+=iti[i][t]*ni[t][r];
}
if(r!=l-1){
printf("%ld ",sum);
}else{
printf("%ld\n",sum);
}
sum=0;
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: unknown type name 'insigned'; did you mean 'unsigned'?
    4 | insigned sum=0;
      | ^~~~~~~~
      | unsigned
Language: C

#include<stdio.h>
int main(void){
int n,m,l,i,r,t;
insigned int sum=0;
int iti[100][100];
int ni[100][100];
scanf("%d %d %d",&n,&m,&l);
for(i=0;i<n;i++){
for(r=0;r<m;r++){
scanf("%d",&iti[i][r]);
}
}
for(i=0;i<m;i++){
for(r=0;r<l;r++){
scanf("%d",&ni[i][r]);
}
}
for(i=0;i<n;i++){
for(r=0;r<l;r++){
for(t=0;t<m;t++){
sum+=iti[i][t]*ni[t][r];
}
if(r!=l-1){
printf("%ld ",sum);
}else{
printf("%ld\n",sum);
}
sum=0;
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: 'insigned' undeclared (first use in this function)
    4 | insigned int sum=0;
      | ^~~~~~~~
main.c:4:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:9: error: expected ';' before 'int'
    4 | insigned int sum=0;
      |         ^~~~
      |         ;
main.c:21:1: error: 'sum' undeclared (first use in this function)
   21 | sum+=iti[i][t]*ni[t][r];
      | ^~~
Language: C

#include<stdio.h>
int main(void){
int n,m,l,i,r,t;
unsigned sum2=0;sum=0;
int iti[100][100];
int ni[100][100];
scanf("%d %d %d",&n,&m,&l);
for(i=0;i<n;i++){
for(r=0;r<m;r++){
scanf("%d",&iti[i][r]);
}
}
for(i=0;i<m;i++){
for(r=0;r<l;r++){
scanf("%d",&ni[i][r]);
}
}
for(i=0;i<n;i++){
for(r=0;r<l;r++){
for(t=0;t<m;t++){
if(t%2==0){
sum+=iti[i][t]*ni[t][r];
}else{sum2+=iti[i][t]*ni[t][r];}
if(r!=l-1){
printf("%ld ",sum2+sum);
}else{
printf("%ld\n",sum2+sum);
}
sum=0;
sum2=0;
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: 'sum' undeclared (first use in this function); did you mean 'sum2'?
    4 | unsigned sum2=0;sum=0;
      |                 ^~~
      |                 sum2
main.c:4:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:34:1: error: expected declaration or statement at end of input
   34 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
int n,m,l,i,r,t;
unsigned sum2=0;sum=0;
int iti[100][100];
int ni[100][100];
scanf("%d %d %d",&n,&m,&l);
for(i=0;i<n;i++){
for(r=0;r<m;r++){
scanf("%d",&iti[i][r]);
}
}
for(i=0;i<m;i++){
for(r=0;r<l;r++){
scanf("%d",&ni[i][r]);
}
}
for(i=0;i<n;i++){
for(r=0;r<l;r++){
for(t=0;t<m;t++){
if(t%2==0){
sum+=iti[i][t]*ni[t][r];
}else{sum2+=iti[i][t]*ni[t][r];}
}
if(r!=l-1){
printf("%ld ",sum2+sum);
}else{
printf("%ld\n",sum2+sum);
}
sum=0;
sum2=0;
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: 'sum' undeclared (first use in this function); did you mean 'sum2'?
    4 | unsigned sum2=0;sum=0;
      |                 ^~~
      |                 sum2
main.c:4:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
int n,m,l,i,r,t;
unsigned sun=0;sum=0;
int iti[100][100];
int ni[100][100];
scanf("%d %d %d",&n,&m,&l);
for(i=0;i<n;i++){
for(r=0;r<m;r++){
scanf("%d",&iti[i][r]);
}
}
for(i=0;i<m;i++){
for(r=0;r<l;r++){
scanf("%d",&ni[i][r]);
}
}
for(i=0;i<n;i++){
for(r=0;r<l;r++){
for(t=0;t<m;t++){
if(t%2==0){
sum+=iti[i][t]*ni[t][r];
}else{sun+=iti[i][t]*ni[t][r];}
}
if(r!=l-1){
printf("%ld ",sun+sum);
}else{
printf("%ld\n",sun+sum);
}
sum=0;
sun=0;
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:16: error: 'sum' undeclared (first use in this function); did you mean 'sun'?
    4 | unsigned sun=0;sum=0;
      |                ^~~
      |                sun
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
int n,m,l,i,r,t;
unsigned sun=0,sum=0,sum2;
int iti[100][100];
int ni[100][100];
scanf("%d %d %d",&n,&m,&l);
for(i=0;i<n;i++){
for(r=0;r<m;r++){
scanf("%d",&iti[i][r]);
}
}
for(i=0;i<m;i++){
for(r=0;r<l;r++){
scanf("%d",&ni[i][r]);
}
}
for(i=0;i<n;i++){
for(r=0;r<l;r++){
for(t=0;t<m;t++){
if(t%3==0){
sum+=iti[i][t]*ni[t][r];
}else if(t%3==1){sun+=iti[i][t]*ni[t][r];}
else1{sum2+=iti[i][t]*ni[t][r];}
}
if(r!=l-1){
printf("%lu ",sun+sum);
}else{
printf("%lu\n",sun+sum);
}
sum=0;
sun=0;
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:1: error: 'else1' undeclared (first use in this function)
   24 | else1{sum2+=iti[i][t]*ni[t][r];}
      | ^~~~~
main.c:24:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:6: error: expected ';' before '{' token
   24 | else1{sum2+=iti[i][t]*ni[t][r];}
      |      ^
      |      ;
Language: C

#include<stdio.h>
int main(void){
int n,m,l,i,r,t;
unsigned sum=0;
int iti[100][100];
int ni[100][100];
scanf("%d %d %d",&n,&m,&l);
for(i=0;i<n;i++){
for(r=0;r<m;r++){
scanf("%d",&iti[i][r]);
}
}
for(i=0;i<m;i++){
for(r=0;r<l;r++){
scanf("%d",&ni[i][r]);
}
}
for(i=0;i<n;i++){
for(r=0;r<l;r++){
for(t=0;t<m;t++){
if(t%2==0){
sum+=iti[i][t]*ni[t][r];
}else{sum2+=iti[i][t]*ni[t][r];}
if(r!=l-1){
printf("%ld ",sum);
}else{
printf("%ld\n",sum);
}
sum=0;
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:7: error: 'sum2' undeclared (first use in this function); did you mean 'sum'?
   23 | }else{sum2+=iti[i][t]*ni[t][r];}
      |       ^~~~
      |       sum
main.c:23:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:33:1: error: expected declaration or statement at end of input
   33 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
int n,m,l,i,r,t;
unsigned sum=0;
int iti[100][100];
int ni[100][100];
scanf("%d %d %d",&n,&m,&l);
for(i=0;i<n;i++){
for(r=0;r<m;r++){
scanf("%d",&iti[i][r]);
}
}
for(i=0;i<m;i++){
for(r=0;r<l;r++){
scanf("%d",&ni[i][r]);
}
}
for(i=0;i<n;i++){
for(r=0;r<l;r++){
for(t=0;t<m;t++){
if(t%2==0){
sum+=iti[i][t]*ni[t][r];
}else{sum2+=iti[i][t]*ni[t][r];}
}
if(r!=l-1){
printf("%ld ",sum);
}else{
printf("%ld\n",sum);
}
sum=0;
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:7: error: 'sum2' undeclared (first use in this function); did you mean 'sum'?
   23 | }else{sum2+=iti[i][t]*ni[t][r];}
      |       ^~~~
      |       sum
main.c:23:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
int n,m,l,i,r,t;
unsigned int sum=0;
int iti[100][100];
int ni[100][100];
scanf("%d %d %d",&n,&m,&l);
for(i=0;i<n;i++){
for(r=0;r<m;r++){
scanf("%d",&iti[i][r]);
}
}
for(i=0;i<m;i++){
for(r=0;r<l;r++){
scanf("%d",&ni[i][r]);
}
}
for(i=0;i<n;i++){
for(r=0;r<l;r++){
for(t=0;t<m;t++){
if(t%2==0){
sum+=iti[i][t]*ni[t][r];
}else{sum2+=iti[i][t]*ni[t][r];}
}
if(r!=l-1){
printf("%ld ",sum);
}else{
printf("%ld\n",sum);
}
sum=0;
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:7: error: 'sum2' undeclared (first use in this function); did you mean 'sum'?
   23 | }else{sum2+=iti[i][t]*ni[t][r];}
      |       ^~~~
      |       sum
main.c:23:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

//int load(int row,int colum,int mx[][])


int main(void)
{
	int n,m,l,i,j,k;
	
	scanf("%d %d %d",&n,&m,&l);
	
	int a[n][m],b[m][l];
	long long intc[n][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[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!=l-1)
				printf("%d ",c[i][j]);
			else
				printf("%d",c[i][j]);
		}
		printf("\n");
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:36:25: error: 'c' undeclared (first use in this function)
   36 |                         c[i][j] = 0;
      |                         ^
main.c:36:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int calc();

#define N 101
#define M 101
#define L 101

int calc(int a[][M], int b[][L], int n, int m, int maxWidth);

int main(){
	
	int a[N][M];
	int b[M][L];
	long long c[N][L];
	
	int n, m, l;
	int i, i2;
	
	scanf("%d %d %d", &n, &m, &l);
	for(i = 0; i < n; i++){
		for(i2 = 0; i2 < m; i2++){
			scanf("%d", &a[i][i2]);
		}
	}
	for(i = 0; i < m; i++){
		for(i2 = 0; i2 < l; i2++){
			scanf("%d", &b[i][i2]);
		}
	}
	for(i = 0; i < n; i++){
		for(i2 = 0; i2 < l; i2++){
			c[i][i2] = calc(a, b, i, i2, m, l);
			
			if(i2 > 0){
				printf(" ");
			}
			printf("%lld", c[i][i2]);
		}
		puts("");
	}
	
	return 0;
	
}

int calc(int a[][M], int b[][L], int n, int m, int maxWidth){
	
	int i, i2;
	long long ret = 0;
	
	for(i = 0; i < maxWidth; i++){
		ret += (a[n][i] * b[i][m]);
	}
	
	return ret;
}

Compiler output:
main.c: In function 'main':
main.c:33:36: error: too many arguments to function 'calc'
   33 |                         c[i][i2] = calc(a, b, i, i2, m, l);
      |                                    ^~~~
main.c:9:5: note: declared here
    9 | int calc(int a[][M], int b[][L], int n, int m, int maxWidth);
      |     ^~~~
Language: C

#include <stdio.h>

#define N 101
#define M 101
#define L 101

int calc(int a[][M], int b[][L], int n, int m, int maxWidth);

int main(){
	
	int a[N][M];
	int b[M][L];
	long long c[N][L];
	
	int n, m, l;
	int i, i2;
	
	scanf("%d %d %d", &n, &m, &l);
	for(i = 0; i < n; i++){
		for(i2 = 0; i2 < m; i2++){
			scanf("%d", &a[i][i2]);
		}
	}
	for(i = 0; i < m; i++){
		for(i2 = 0; i2 < l; i2++){
			scanf("%d", &b[i][i2]);
		}
	}
	for(i = 0; i < n; i++){
		for(i2 = 0; i2 < l; i2++){
			c[i][i2] = calc(a, b, i, i2, m, l);
			
			if(i2 > 0){
				printf(" ");
			}
			printf("%lld", c[i][i2]);
		}
		puts("");
	}
	
	return 0;
	
}

int calc(int a[][M], int b[][L], int n, int m, int maxWidth){
	
	int i, i2;
	long long ret = 0;
	
	for(i = 0; i < maxWidth; i++){
		ret += (a[n][i] * b[i][m]);
	}
	
	return ret;
}

Compiler output:
main.c: In function 'main':
main.c:31:36: error: too many arguments to function 'calc'
   31 |                         c[i][i2] = calc(a, b, i, i2, m, l);
      |                                    ^~~~
main.c:7:5: note: declared here
    7 | int calc(int a[][M], int b[][L], int n, int m, int maxWidth);
      |     ^~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:13: error: array type has incomplete element type 'int[]'
    6 |         int A[][] = {{0}};
      |             ^
main.c:6:13: note: declaration of 'A' as multidimensional array must have bounds for all dimensions except the first
main.c:7:13: error: array type has incomplete element type 'int[]'
    7 |         int B[][] = {{0}};
      |             ^
main.c:7:13: note: declaration of 'B' as multidimensional array must have bounds for all dimensions except the first
main.c:8:13: error: array type has incomplete element type 'int[]'
    8 |         int C[][] = {{0}};
      |             ^
main.c:8:13: note: declaration of 'C' as multidimensional array must have bounds for all dimensions except the first
Language: C

#include <stdio.h>

int main(){
	int i, j, k;
    int n, m, l;
    int a[10000][10000]={}, b[10000][10000]={}, c[10000][10000]={};

    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("%d%s", c[i][j], (j == l) ? "\n" : " ");
        }
    }
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:31: error: expected ';' before ')' token
   11 |         for (j = 0; j < m, j++){
      |                               ^
      |                               ;
Language: C

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'
    4 |         long long c[100][100]
      |         ^~~~
main.c:9:37: error: 'x' undeclared (first use in this function)
    9 |                         scanf("%d",&x);
      |                                     ^
main.c:9:37: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'
    4 |         long long c[100][100];
      |         ^~~~
main.c:9:37: error: 'x' undeclared (first use in this function)
    9 |                         scanf("%d",&x);
      |                                     ^
main.c:9:37: note: each undeclared identifier is reported only once for each function it appears in
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]);
		}
	printf("\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'
    4 |         long long int c[100][100]={0};
      |         ^~~~
main.c:9:37: error: 'x' undeclared (first use in this function)
    9 |                         scanf("%d",&x);
      |                                     ^
main.c:9:37: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:33: error: 'c' undeclared (first use in this function)
   25 |                                 c[i][k]+=a[i][j]*b[j][k];
      |                                 ^
Language: C

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

    printf("\n");
  }
  return 0;

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

#include<stdio.h>

int main(void) {
int n,m,l;
int i,j,k;

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

int matA[n][m];
int matB[m][l];

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

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

for (i = 0; i < l; i++) {
for (j = 0; j < m; j++)
for (k = 0; k < m; k++) {
ans += matA[j][k] * matB[k}[j];
}
printf("%d ", ans);
}
printf("%d\n"ans);
}

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:27:1: error: 'ans' undeclared (first use in this function)
   27 | ans += matA[j][k] * matB[k}[j];
      | ^~~
main.c:27:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:27:27: error: expected ']' before '}' token
   27 | ans += matA[j][k] * matB[k}[j];
      |                           ^
      |                           ]
main.c:27:19: error: invalid operands to binary * (have 'int' and 'int *')
   27 | ans += matA[j][k] * matB[k}[j];
      |        ~~~~~~~~~~ ^
      |               |   |
      |               int int *
main.c:27:27: error: expected ';' before '}' token
   27 | ans += matA[j][k] * matB[k}[j];
      |                           ^
      |                           ;
main.c:27:28: error: expected expression before '[' token
   27 | ans += matA[j][k] * matB[k}[j];
      |                            ^
main.c: At top level:
main.c:31:8: error: expected declaration specifiers or '...' before string constant
   31 | printf("%d\n"ans);
      |        ^~~~~~
main.c:32:1: error: expected identifier or '(' before '}' token
   32 | }
      | ^
main.c:34:1: error: expected identifier or '(' before 'return'
   34 | return (0);
      | ^~~~~~
main.c:35:1: error: expected identifier or '(' before '}' token
   35 | }
      | ^
Language: C

#include<stdio.h>

int main(void) {
int n,m,l;
int i,j,k;

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

int matA[n][m];
int matB[m][l];

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

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

for (i = 0; i < l; i++) {
for (j = 0; j < m; j++) {
for (k = 0; k < m; k++) {
ans += matA[j][k] * matB[k}[j];
}
printf("%d ", ans);
}
printf("%d\n"ans);
}

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: 'ans' undeclared (first use in this function)
   23 | ans += matA[j][k] * matB[k}[j];
      | ^~~
main.c:23:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:27: error: expected ']' before '}' token
   23 | ans += matA[j][k] * matB[k}[j];
      |                           ^
      |                           ]
main.c:23:19: error: invalid operands to binary * (have 'int' and 'int *')
   23 | ans += matA[j][k] * matB[k}[j];
      |        ~~~~~~~~~~ ^
      |               |   |
      |               int int *
main.c:23:27: error: expected ';' before '}' token
   23 | ans += matA[j][k] * matB[k}[j];
      |                           ^
      |                           ;
main.c:23:28: error: expected expression before '[' token
   23 | ans += matA[j][k] * matB[k}[j];
      |                            ^
main.c:27:14: error: expected ')' before 'ans'
   27 | printf("%d\n"ans);
      |       ~      ^~~
      |              )
main.c: At top level:
main.c:30:1: error: expected identifier or '(' before 'return'
   30 | return (0);
      | ^~~~~~
main.c:31:1: error: expected identifier or '(' before '}' token
   31 | }
      | ^
Language: C

#include<stdio.h>

int main(void) {
int n,m,l;
int i,j,k;

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

int matA[n][m];
int matB[m][l];

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

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

for (i = 0; i < l; i++) {
for (j = 0; j < m; j++) {
for (k = 0; k < m; k++) {
ans += matA[j][k] * matB[k][j];
}
printf("%d ", ans);
}
printf("%d\n"ans);
}

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: 'ans' undeclared (first use in this function)
   23 | ans += matA[j][k] * matB[k][j];
      | ^~~
main.c:23:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:27:14: error: expected ')' before 'ans'
   27 | printf("%d\n"ans);
      |       ~      ^~~
      |              )
Language: C

#include<stdio.h>

int main(void) {
int n,m,l;
int i,j,k;

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

int matA[n][m];
int matB[m][l];

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

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

for (i = 0; i < l; i++) {
for (j = 0; j < m; j++) {
for (k = 0; k < m; k++) {
ans += matA[j][k] * matB[k][j];
}
printf("%d ", ans);
}
printf("%d\n", ans);
}

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: 'ans' undeclared (first use in this function)
   23 | ans += matA[j][k] * matB[k][j];
      | ^~~
main.c:23:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void) {
int n,m,l;
int i,j,k;
int ans = 0;

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

int matA[n][m];
int matB[m][l];

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

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

for (i = 0; i < n; i++) {
for (j = 0; j < l; j++) {
for (k = 0; k < m; k++) {
ans[n][j] += matA[j][k] * matB[k][j];
}
}
}

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:24:4: error: subscripted value is neither array nor pointer nor vector
   24 | ans[n][j] += matA[j][k] * matB[k][j];
      |    ^
Language: C

#include<stdio.h>

int main(void) {
int n,m,l;
int i,j,k;

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

int matA[n][m];
int matB[m][l];
int ans[n][l]

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

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

for (i = 0; i < n; i++) {
for (j = 0; j < l; j++) {
for (k = 0; k < m; k++) {
ans[n][j] += matA[j][k] * matB[k][j];
}
}
}

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:13:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
   13 | for (i = 0; i < n; i++)
      | ^~~
main.c:24:1: error: 'ans' undeclared (first use in this function)
   24 | ans[n][j] += matA[j][k] * matB[k][j];
      | ^~~
main.c:24:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void) {
int n,m,l;
int i,j,k;

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

int matA[n][m];
int matB[m][l];
int ans[n][l] = {0};

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

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

for (i = 0; i < n; i++) {
for (j = 0; j < l; j++) {
for (k = 0; k < m; k++) {
ans[n][j] += matA[i][k] * matB[k][j];
}
}
}

for (i = 0; i < n; i++) {
for (j = 0; j < l; j++) {
printf("%d ", ans[i][j]);
}
puts("");
}

return (0);
}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'lon' undeclared (first use in this function)
    9 |         lon long int sum;
      |         ^~~
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:12: error: expected ';' before 'long'
    9 |         lon long int sum;
      |            ^~~~~
      |            ;
main.c:26:25: error: 'sum' undeclared (first use in this function)
   26 |                         sum = 0;
      |                         ^~~
Language: C

#include <stdio.h>    int main(void){   int n,m,l,i,j,k;   int amat[100][100],bmat[100][100];   unsigned long cmat[100][100];      for(i=0;i<100;i++){     for(j=0;j<100;j++){       amat[i][j]=0;  bmat[i][j]=0;  cmat[i][j]=0;     }   }   scanf("%d%d%d",&n,&m,&l);   for(i=0;i<n;i++){     for(j=0;j<m;j++)  scanf("%d",&amat[i][j]);   }   for(i=0;i<m;i++){     for(j=0;j<l;j++)  scanf("%d",&bmat[i][j]);   }      for(i=0;i<n;i++){     for(j=0;j<l;j++){       for(k=0;k<m;k++)  cmat[i][j]+=(amat[i][k]*bmat[k][j]);     }   }      for(i=0;i<n;i++){     for(j=0;j<l-1;j++)  printf("%lu ",cmat[i][j]);     printf("%lu\n",cmat[i][l-1]);   }      return 0; }

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

#include <stdio.h>
int main(void)
{
	int i,j,k,o,A[100][100],B[100][100],C[100][100],n,m,l, ;
	
	scnf("%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[i][j] = 0;

			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("%d",C[i][j]);
		}

	}

	return 0;


}

Compiler output:
main.c: In function 'main':
main.c:4:64: error: expected identifier or '(' before ';' token
    4 |         int i,j,k,o,A[100][100],B[100][100],C[100][100],n,m,l, ;
      |                                                                ^
main.c:6:9: error: implicit declaration of function 'scnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scnf("%d %d %d",n,m,l);
      |         ^~~~
      |         scanf
main.c:36:48: error: expected expression before '[' token
   36 |                                 C[i][j] = C[i][[j]+A[i][k]*B[k][j];
      |                                                ^
main.c:36:68: error: expected ';' before '}' token
   36 |                                 C[i][j] = C[i][[j]+A[i][k]*B[k][j];
      |                                                                    ^
      |                                                                    ;
   37 |                         }
      |                         ~
Language: C

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

	return 0;


}

Compiler output:
main.c: In function 'main':
main.c:37:42: error: expected expression before '=' token
   37 |                                 C[i][j]+ =  ( A[i][k] * B[k][j]);
      |                                          ^
Language: C

#include <stdio.h>
#define int long long
#define %d %lld
signed main(void){
	int a[100][100]={0},b[100][100]={0},c[100][100]={0},i,j,k,l,m,n;
	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-1;j++){
			printf("%d ",c[i][j]);
		}
		printf("%d\n",c[i][j]);
	}
	return 0;
}

Compiler output:
main.c:3:9: error: macro names must be identifiers
    3 | #define %d %lld
      |         ^
Language: C

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

	//hyouji
	for(i=0;i<n;i++){
		for(j=0;j<l;j++){
			printf("%d",C[i][j]);
			if(j!=(l-1)) printf(" ");
			else printf("\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d %d %d",&n,&m,&l);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>
int main(void){
	int n,m,l;
	int i,j,k;

	//C99kikaku deha hairetutyou ni hensuu siyo kanou
	scanf("%d %d %d",&n,&m,&l);
	int A[n][m],B[m][l],C[n][l]={0};
	
	//torikomi
	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]);
		}
	}
	
	//keisan
	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];
			}
		}
	}

	//hyouji
	for(i=0;i<n;i++){
		for(j=0;j<l;j++){
			printf("%d",C[i][j]);
			if(j!=(l-1)) printf(" ");
			else printf("\n");
		}
	}
	return 0;
}

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

#include<stdio.h>
int main(void){
	int n,m,l;
	int i,j,k;

	scanf("%d %d %d",&n,&m,&l);
	/*C99kikaku deha hairetutyou ni hensuu siyo kanou
	  {0}syokika ha fuyo rasii..*/
	int A[n][m],B[m][l],C[n][l]={0};
	
	//torikomi
	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]);
		}
	}
	
	//keisan
	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];
			}
		}
	}

	//hyouji
	for(i=0;i<n;i++){
		for(j=0;j<l;j++){
			printf("%d",C[i][j]);
			if(j!=(l-1)) printf(" ");
			else printf("\n");
		}
	}
	return 0;
}

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

#include <stdio.h>


int main(void) {

	// 1_7-D Matrix Multiplication

	int i,j,k;
	int n,m,l,wk;
	int ma[100][100];
	int mb[100][100];
	int mc[100][100];

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

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

	for(i=0; i<n; i++){
		wk = 0;
		for(j=0; j<l; j++){
			for(k=0; k<m; k++){
				wk += (ma[i][k] * mb[k][j]);
			}
			mc[i][j] = wk;
		}
	}

	for(i=0; i<n; i++){
		for(j=0; j<l; j++){
			printf("%d",vc[i][j]);
		}
		if(j<l){
			putchar(' ');
		}else{
			putchar('\n');
		}
	}
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:41:37: error: 'vc' undeclared (first use in this function); did you mean 'mc'?
   41 |                         printf("%d",vc[i][j]);
      |                                     ^~
      |                                     mc
main.c:41:37: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)
{
	int n,m,l;
	int a[10000][10000]={0};
	int b[10000][10000]={0};	
	int c[10000][10000]={0};
	int i,j,k,l,q,s;

	scanf("%d %d %d",n,m,p);	

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

	for(q=0;q<n;q++){
		for(s=0;s<p;s++){
			for(r=0;r<m;r++){
				c[q][s]=c[q][r]+a[q][r]*b[r][s];
			}
			printf("%d ",c[q][s]);
		}
		printf("\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:19: error: redeclaration of 'l' with no linkage
    9 |         int i,j,k,l,q,s;
      |                   ^
main.c:5:17: note: previous declaration of 'l' with type 'int'
    5 |         int n,m,l;
      |                 ^
main.c:11:30: error: 'p' undeclared (first use in this function)
   11 |         scanf("%d %d %d",n,m,p);
      |                              ^
main.c:11:30: note: each undeclared identifier is reported only once for each function it appears in
main.c:27:29: error: 'r' undeclared (first use in this function)
   27 |                         for(r=0;r<m;r++){
      |                             ^
Language: C

#include<stdio.h>

int main(void)
{
	int n,m;
	int a[10000][10000]={0};
	int b[10000][10000]={0};	
	int c[10000][10000]={0};
	int i,j,k,l,q,s;

	scanf("%d %d %d",n,m,p);	

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

	for(q=0;q<n;q++){
		for(s=0;s<p;s++){
			for(r=0;r<m;r++){
				c[q][s]=c[q][r]+a[q][r]*b[r][s];
			}
			printf("%d ",c[q][s]);
		}
		printf("\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:30: error: 'p' undeclared (first use in this function)
   11 |         scanf("%d %d %d",n,m,p);
      |                              ^
main.c:11:30: note: each undeclared identifier is reported only once for each function it appears in
main.c:27:29: error: 'r' undeclared (first use in this function)
   27 |                         for(r=0;r<m;r++){
      |                             ^
Language: C

#include<stdio.h>

int main(void)
{
	int n,m,p;
	int a[10000][10000]={0};
	int b[10000][10000]={0};	
	int c[10000][10000]={0};
	int i,j,k,l,q,s;

	scanf("%d %d %d",n,m,p);	

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

	for(q=0;q<n;q++){
		for(s=0;s<p;s++){
			for(r=0;r<m;r++){
				c[q][s]=c[q][r]+a[q][r]*b[r][s];
			}
			printf("%d ",c[q][s]);
		}
		printf("\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:29: error: 'r' undeclared (first use in this function)
   27 |                         for(r=0;r<m;r++){
      |                             ^
main.c:27:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

int main(void) {
	int n, m, l;
	int a[100][100] = {}, b[100][100] = {};
	int i, j, k;
	
	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++){
			long long c = 0;
			for (k = 0; k < m; k++){
				c += a[i][k]*b[k][j];
			}
			if (j) printf(" ");
			printf("%d", c);
		}
		printf("\n");
	}
	
	return 0;
}
		}
		printf("\n");
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:29:41: error: stray '#' in program
   29 |                         printf("%d", c);#include <stdio.h>
      |                                         ^
main.c:29:42: error: 'include' undeclared (first use in this function)
   29 |                         printf("%d", c);#include <stdio.h>
      |                                          ^~~~~~~
main.c:29:42: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:51: error: 'stdio' undeclared (first use in this function); did you mean 'stdin'?
   29 |                         printf("%d", c);#include <stdio.h>
      |                                                   ^~~~~
      |                                                   stdin
main.c:31:1: error: expected expression before 'int'
   31 | int main(void) {
      | ^~~
Language: C

#include <stdio.h>

int main(void)
{
  int n = 0;
  int m = 0;
  int a[100][100];
  int b[100][100];
  int i, j;
  int sum = 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 < m; j++)
      sum += a[i][j] * b[j][i];

    printf("%d\n", sum);

    sum = 0;
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:30: error: 'l' undeclared (first use in this function)
   12 |   scanf("%d %d %d", &n, &m, &l);
      |                              ^
main.c:12:30: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#define M 100
int main(){
  int d=0,n,m,l,i,j,k,a[M][M],b[M][M]
long logn int c[M][M];

  scanf("%d %d %d",&n,&m,&l);
  /*  printf("input 1\n");*/
  for(i=0;i<n;i++){
    for(j=0;j<m;j++){
      scanf("%d",&a[i][j]);
    }
  }
  /*printf("input 2\n");*/

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

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

        d+=a[i][k]*b[k][j];
      }
      c[i][j]=d;
      d=0;
    }
  }

  for(i=0;i<n;i++){
    for(j=0;j<l;j++){
      printf("%lld",c[i][j]);

      if(j!=l-1)printf(" ");
      }
      printf("\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'
    5 | long logn int c[M][M];
      | ^~~~
main.c:18:19: error: 'b' undeclared (first use in this function)
   18 |       scanf("%d",&b[i][j]);
      |                   ^
main.c:18:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:7: error: 'c' undeclared (first use in this function)
   29 |       c[i][j]=d;
      |       ^
Language: C

#include<stdio.h>
#define M 100
int main(){
  int d=0,n,m,l,i,j,k,a[M][M],b[M][M]
long long int c[M][M];

  scanf("%d %d %d",&n,&m,&l);
  /*  printf("input 1\n");*/
  for(i=0;i<n;i++){
    for(j=0;j<m;j++){
      scanf("%d",&a[i][j]);
    }
  }
  /*printf("input 2\n");*/

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

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

        d+=a[i][k]*b[k][j];
      }
      c[i][j]=d;
      d=0;
    }
  }

  for(i=0;i<n;i++){
    for(j=0;j<l;j++){
      printf("%lld",c[i][j]);

      if(j!=l-1)printf(" ");
      }
      printf("\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'
    5 | long long int c[M][M];
      | ^~~~
main.c:18:19: error: 'b' undeclared (first use in this function)
   18 |       scanf("%d",&b[i][j]);
      |                   ^
main.c:18:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:7: error: 'c' undeclared (first use in this function)
   29 |       c[i][j]=d;
      |       ^
Language: C

#include<stdio.h>
#include<stdlib.h>

int main(){
  int i,j,k,n,m,l;
  int sum;
  int **A;
  int **B;
  scanf("%d%d%d",&n,&m,&l);
  A=malloc(n*sizeof(int *));
  for(i=0;i<n;i++){
    A[i]=malloc(m*sizeof(int));}
  for(i=0;i<n;i++){
    for(j=0;j<m;j++){
      scanf("%d",&A[i][j]);}}
  B=malloc(m*sizeof(int *));
  for(i=0;i<m;i++){
    B[i]=malloc(l*sizeof(int));}
  for(i=0;i<n1;i++){
    for(j=0;j<m1;j++){
      scanf("%d",&B[i][j]);}}
    for(i=0;i<n;i++){
      for(j=0;j<l-1;j++){
        sum=0;
        for(k=0;k<m;k++){
          sum=sum+A[i][k]*B[k][j];}
        printf("%d ",sum);}
      sum=0;
      for(k=0;k<m;k++){
        sum=sum+A[i][k]*B[k][l-1];}
      printf("%d\n",sum);}
  for(i=0;i<n;i++){
    free(A[i]);}
  free(A);
  for(i=0;i<m;i++){
    free(B[i]);}
  free(B);
  return 0;}

Compiler output:
main.c: In function 'main':
main.c:19:13: error: 'n1' undeclared (first use in this function); did you mean 'n'?
   19 |   for(i=0;i<n1;i++){
      |             ^~
      |             n
main.c:19:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:15: error: 'm1' undeclared (first use in this function); did you mean 'm'?
   20 |     for(j=0;j<m1;j++){
      |               ^~
      |               m