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

#include<stdio.h>
#include<stdlib.h>
int main(void){
    int **a;
    int **b;
    int **c;
    int n,m,l,i,j,k;
    scanf("%d",&n);
    scanf("%d",&m);
    scanf("%d",&l);
    a = (int **)malloc(n * sizeof(int *));
    b = (int **)malloc(m * sizeof(int *));
    c = (int **)malloc(n * sizeof(int *));
    for(i=0;i<n;i++){
        a[i] = (int *)malloc(m * sizeof(int));
        c[i] = (int *)malloc(sizeof(int) * l);
    }
    for(i=0;i<m;i++){
        b[i] = (int *)malloc(sizeof(int) * 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(i=0;i<n;i++){
        for(j=0;j<l;j++){
                for(k =0;k<m;k++){
                 c[i][j] += (a[i][k] * b[k][j]);
                }
        }
    }
    for(i=0;i<n;i++){
        for(j=0;j<l;j++){
            if(j < l -1) printf("%d ",c[i][j]);
            else printf("%d\n",c[i][j]);
        }
    }
    for(i=0;i<n;i++){
        free(a[i]);
        free(c[i]);
    }
    for(i=0;i<m;i++){
        free(b[i]);
    }
    free(a);
    free(b);
    free(c);
    return 0;

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

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

Compiler output:
main.c:5:11: error: expected declaration specifiers or '...' before string constant
    5 |     scanf("%d %d %d", &n, &m,&l);
      |           ^~~~~~~~~~
main.c:5:23: error: expected declaration specifiers or '...' before '&' token
    5 |     scanf("%d %d %d", &n, &m,&l);
      |                       ^
main.c:5:27: error: expected declaration specifiers or '...' before '&' token
    5 |     scanf("%d %d %d", &n, &m,&l);
      |                           ^
main.c:5:30: error: expected declaration specifiers or '...' before '&' token
    5 |     scanf("%d %d %d", &n, &m,&l);
      |                              ^
main.c:6:5: error: expected identifier or '(' before 'for'
    6 |     for (i = 0;  i< n; i++)
      |     ^~~
main.c:6:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    6 |     for (i = 0;  i< n; i++)
      |                   ^
main.c:6:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    6 |     for (i = 0;  i< n; i++)
      |                         ^~
main.c:13:5: error: expected identifier or '(' before 'for'
   13 |     for (i = 0; i< m; i++)
      |     ^~~
main.c:13:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   13 |     for (i = 0; i< m; i++)
      |                  ^
main.c:13:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   13 |     for (i = 0; i< m; i++)
      |                        ^~
main.c:20:5: error: expected identifier or '(' before 'for'
   20 |     for (i = 0; i< n; i++)
      |     ^~~
main.c:20:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   20 |     for (i = 0; i< n; i++)
      |                  ^
main.c:20:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   20 |     for (i = 0; i< n; i++)
      |                        ^~
main.c:33:5: error: expected identifier or '(' before 'return'
   33 |     return 0;
      |     ^~~~~~
Language: C

#include <stdio.h>

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

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

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:37: error: expected ')' before ';' token
   19 |                 scanf("%d\n",b[i][j];
      |                      ~              ^
      |                                     )
main.c:19:38: error: expected ';' before '}' token
   19 |                 scanf("%d\n",b[i][j];
      |                                      ^
      |                                      ;
   20 |                 }
      |                 ~
Language: C

#include <stdio.h>

int main(void) {
   int i,j,k;
    longlong int n,m,l,num;
    
    scanf("%lld",&n);
    scanf("%lld",&m);    
    scanf("%lld",&l); 


    int A[n][m],B[m][l],C[n][l];
    
    for(i=0;i<n;i++){
        for(j=0;j<m;j++){
            scanf("%d",&num);
            A[i][j] = num;

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

        }
    }
    
    for(i=0;i<n;i++){
        for(k=0;k<l;k++){
            C[i][k] = 0;
        }
    }
 
    
    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];   
            }
            printf("%d",C[i][k]); 
            if(k != l-1){
                printf(" ");
            }
        }
          printf("\n");
    }
    
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: 'longlong' undeclared (first use in this function)
    5 |     longlong int n,m,l,num;
      |     ^~~~~~~~
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:13: error: expected ';' before 'int'
    5 |     longlong int n,m,l,num;
      |             ^~~~
      |             ;
main.c:7:19: error: 'n' undeclared (first use in this function)
    7 |     scanf("%lld",&n);
      |                   ^
main.c:8:19: error: 'm' undeclared (first use in this function)
    8 |     scanf("%lld",&m);
      |                   ^
main.c:9:19: error: 'l' undeclared (first use in this function)
    9 |     scanf("%lld",&l);
      |                   ^
main.c:16:25: error: 'num' undeclared (first use in this function)
   16 |             scanf("%d",&num);
      |                         ^~~
Language: C

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





return 0;





     }

Compiler output:
main.c: In function 'main':
main.c:36:14: error: expected expression before '<' token
   36 |         if(i=<n-1){printf(" ");}
      |              ^
Language: C

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





return 0;





     }

Compiler output:
main.c: In function 'main':
main.c:36:14: error: expected expression before '<' token
   36 |         if(i=<k-1){printf(" ");}
      |              ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:32:32: error: expected ';' before '}' token
   32 |           else printf("%d\n",x)
      |                                ^
      |                                ;
   33 |         }
      |         ~
Language: C

#include<stdio.h>
 
int main(int argc, char const *argv[]) {
  int n,m,l,i,j,k;
  int a[100][100]={0},b[100][100]={0};
  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", &a[i][j]);
    }
  }
  //printf("\n");
  for (i = 0; i < m; i++) {
    for (j = 0; j < l; j++) {
      scanf("%d", &b[i][j]);
    }
  }
  //printf("\n");
  for (i = 0; i < n; i++) {
    for (j = 0; j < l; j++) {
      for (k = 0; k < m; k++) {
          c[i][j]+=a[i][k]*b[k][j];
      }
    }
  }
  for (i = 0; i < n; i++) {
    for (j = 0; j < l; j++) {
      printf("%lld", c[i][j]);
      if (j < l-1) {
        printf(" ");
      }
    }
    printf("\n");
  }
  return 0;

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

#include <stdio.h>
int main () {
  int A[100][100]={0}, B[100][100]={0}, C[100][100]={0};
  int n, m, l;
  scanf("%d %d %d", &n, &m, &l);
  int i, j, k;
  for (i=0; i<n; i++) {
    for (j=0; j<m; j++) {
      scanf("%d", &A[i][j]);
    }
  }
  for (i=0; i<m; i++) {
    for (j=0; j<l; j++) {
      scanf("%d", &B[i][j]);
    }
  }
  for (i=0; i<n; i++) {
    for (j=0; j<l; j++) {
      for (k=0; k<m; k++) {
        C[i][j] += A[i][k]*B[k][j];
      }
    }
  }
  for (i=0; i<n; i++) {
    for (j=0; j<l; j++) {
        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:33:3: error: expected declaration or statement at end of input
   33 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:26:29: error: 'I' undeclared (first use in this function)
   26 |            printf("%d\n", C[I][j]);
      |                             ^
main.c:26:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

#include  <stdio.h>

int main()
{
	int n,m,l;
	scanf("%d %d %d", &n, &m, &l);
	int A[n][m],i,j;

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

	int b[m][l];
	for(i=0;i<m;i++)
	{
		for(j=0;j<l;j++)
		{
			scanf("%d",&B[i][j]);
		}
	}
	int  sum,c[n][l],k;
	sum=0;
	for(i=0;i<n;i++)
	{
		for(j=0;j<l;j++)
		{
			for(k=0;k<m;k++)
			{
				sum=sum+A[i][j]*B[i][j];
			}
			C[i][j]=sum;
			sum=0;
		}
	}
	
	for ( i = 0 ; i < n ; i++ )	
	{
    
		for ( j = 0 ; j < l ; j++ )
		{
			printf("%ld", c[i][j]);
			if ( j == l - 1 )
			{
				printf("\n");
				 break;
			}
			printf(" ");
		}
     
	}
	return 0;   
}

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

#include<stdio.h>
#include <stdlib.h>
#include "stdafx.h"
int main(int argc , _TCHAR argv[]){
  
  int x,y,z,q,i,m;
  long box1[100][100]={0};
  long box2[100][100]={0};
  long box3[100][100]={0};
  scanf("%d%d%d",&x,&y,&z);
for(i=0;i<x;i++){
	for(q=0;q<y;q++){
		scanf("%d",&box1[i][q]);
	}
}  
for(i=0;i<y;i++){
	for(q=0;q<z;q++){
		scanf("%d",&box2[i][q]);
		for(m=0;m<x;m++){
			box3[m][q] += box2[i][q]*box1[m][i];
		}
		
	}
}
for(i=0;i<x;i++){
	for(q=0;q<z;q++){
		if(q==0){printf("%d",box3[i][q]);}
		else{printf(" %d",box3[i][q]);}
	}printf("\n");
}  
  return 0;
}

Compiler output:
main.c:3:10: fatal error: stdafx.h: No such file or directory
    3 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include <stdlib.h>
#include "stdafx.h"
int main(int argc , _TCHAR argv[]){
  
  int x,y,z,q,i,m;
  int box1[100][100]={0};
  int box2[100][100]={0};
  int box3[1000][1000]={0};
  scanf("%d%d%d",&x,&y,&z);
for(i=0;i<x;i++){
	for(q=0;q<y;q++){
		scanf("%d",&box1[i][q]);
	}
}  
for(i=0;i<y;i++){
	for(q=0;q<z;q++){
		scanf("%d",&box2[i][q]);
		for(m=0;m<x;m++){
			box3[m][q] += box2[i][q]*box1[m][i];
		}
		
	}
}
for(i=0;i<x;i++){
	for(q=0;q<z;q++){
		if(q==0){printf("%d",box3[i][q]);}
		else{printf(" %d",box3[i][q]);}
	}printf("\n");
}  
  return 0;
}

Compiler output:
main.c:3:10: fatal error: stdafx.h: No such file or directory
    3 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

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

    n = readint();

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

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

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

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

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

    printf("YES\n");

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'readint' [-Wimplicit-function-declaration]
    5 |     n = readint();
      |         ^~~~~~~
main.c:27:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   27 |                 printf("NO\n");
      |                 ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:27:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   27 |                 printf("NO\n");
      |                 ^~~~~~
main.c:27:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   31 |     printf("YES\n");
      |     ^~~~~~
main.c:31:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

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

    n = readint();

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

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

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

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

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

    printf("YES\n");

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'readint' [-Wimplicit-function-declaration]
    7 |     n = readint();
      |         ^~~~~~~
Language: C

#include <stdio.h>

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

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

Compiler output:
main.c:30:2: error: stray '#' in program
   30 | }#include <stdio.h>
      |  ^
main.c:30:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   30 | }#include <stdio.h>
      |           ^
Language: C

#include <stdio.h>

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

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

Compiler output:
main.c:30:2: error: stray '#' in program
   30 | }#include <stdio.h>
      |  ^
main.c:30:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   30 | }#include <stdio.h>
      |           ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:35:1: error: expected declaration or statement at end of input
   35 | }
      | ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:35:1: error: expected declaration or statement at end of input
   35 | }
      | ^
Language: C

#include<stdio.h>

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


  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++){
      sum=0;
      for(k=0;k<m;k++){
	sum += a[i][k]*b[k][j];
    }
      printf("%ld ",sum);
      if(j==l-1)
	printf("\n");
    }
  }

Compiler output:
main.c: In function 'main':
main.c:35:3: error: expected declaration or statement at end of input
   35 |   }
      |   ^
Language: C

#include<stdio.h>

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


  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++){
      sum=0;
      for(k=0;k<m;k++){
	sum += a[i][k]*b[k][j];
    }
      printf("%ld ",sum);
      if(j==l-1)
	printf("\n");
    }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:37:1: error: expected declaration or statement at end of input
   37 | }
      | ^
Language: C

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

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

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

  for(i=1;i<=n;i++){
    for(j=1;j<l;j++) printf("%d ",c[i][j]);
    printf("%d\n",c[i][l]);
  }


  return 0;

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:27:39: error: expected ';' before ')' token
   27 |                 cn = a[i][j] * b[j][k]);
      |                                       ^
      |                                       ;
main.c:27:39: error: expected statement before ')' token
main.c:29:13: error: implicit declaration of function 'rintf' [-Wimplicit-function-declaration]
   29 |             rintf("%d\n", cn);
      |             ^~~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'rintf'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:29:13: warning: incompatible implicit declaration of built-in function 'rintf' [-Wbuiltin-declaration-mismatch]
   29 |             rintf("%d\n", cn);
      |             ^~~~~
main.c:29:13: note: include '<math.h>' or provide a declaration of 'rintf'
main.c:29:19: error: incompatible type for argument 1 of 'rintf'
   29 |             rintf("%d\n", cn);
      |                   ^~~~~~
      |                   |
      |                   char *
main.c:29:19: note: expected 'float' but argument is of type 'char *'
main.c:29:13: error: too many arguments to function 'rintf'
   29 |             rintf("%d\n", cn);
      |             ^~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:29:13: error: implicit declaration of function 'rintf' [-Wimplicit-function-declaration]
   29 |             rintf("%d\n", cn);
      |             ^~~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'rintf'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:29:13: warning: incompatible implicit declaration of built-in function 'rintf' [-Wbuiltin-declaration-mismatch]
   29 |             rintf("%d\n", cn);
      |             ^~~~~
main.c:29:13: note: include '<math.h>' or provide a declaration of 'rintf'
main.c:29:19: error: incompatible type for argument 1 of 'rintf'
   29 |             rintf("%d\n", cn);
      |                   ^~~~~~
      |                   |
      |                   char *
main.c:29:19: note: expected 'float' but argument is of type 'char *'
main.c:29:13: error: too many arguments to function 'rintf'
   29 |             rintf("%d\n", cn);
      |             ^~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:24:13: error: 'c' undeclared (first use in this function)
   24 |             c[i][j] = 0;
      |             ^
main.c:24:13: 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, cn[100][100];
    int i, j, k;
    int a[100][100];
    int 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++){
            cn = 0;
            for(j = 0; j < m; j++){
                cn\ += a[i][j] * b[j][k];
            }
           printf("%ld", cn);
           if(k == l-1) printf("\n");
           else printf(" ");

        }
        puts("");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:16: error: assignment to expression with array type
   24 |             cn = 0;
      |                ^
main.c:26:19: error: stray '\' in program
   26 |                 cn\ += a[i][j] * b[j][k];
      |                   ^
main.c:26:21: error: assignment to expression with array type
   26 |                 cn\ += a[i][j] * b[j][k];
      |                     ^~
Language: C

#include <stdio.h>

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

        }
        puts("");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:16: error: assignment to expression with array type
   24 |             cn = 0;
      |                ^
main.c:26:19: error: stray '\' in program
   26 |                 cn\ += a[i][j] * b[j][k];
      |                   ^
main.c:26:21: error: assignment to expression with array type
   26 |                 cn\ += a[i][j] * b[j][k];
      |                     ^~
Language: C

#include <stdio.h>

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

        }
        puts("");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
    5 |     int i, j, k;
      |     ^~~
main.c:11:9: error: 'i' undeclared (first use in this function)
   11 |     for(i = 0; i < n; i++){
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:13: error: 'j' undeclared (first use in this function)
   12 |         for(j = 0; j < m; j++){
      |             ^
main.c:17:13: error: 'k' undeclared (first use in this function)
   17 |         for(k = 0; k < l; k++){
      |             ^
main.c:24:13: error: 'cn' undeclared (first use in this function); did you mean 'n'?
   24 |             cn = 0;
      |             ^~
      |             n
main.c:26:19: error: stray '\' in program
   26 |                 cn\ += a[i][j] * b[j][k];
      |                   ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
    5 |     int i, j, k;
      |     ^~~
main.c:11:9: error: 'i' undeclared (first use in this function)
   11 |     for(i = 0; i < n; i++){
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:13: error: 'j' undeclared (first use in this function)
   12 |         for(j = 0; j < m; j++){
      |             ^
main.c:17:13: error: 'k' undeclared (first use in this function)
   17 |         for(k = 0; k < l; k++){
      |             ^
main.c:24:13: error: 'cn' undeclared (first use in this function); did you mean 'n'?
   24 |             cn = 0;
      |             ^~
      |             n
main.c:26:19: error: stray '\' in program
   26 |                 cn\ += a[i][j] * b[j][k];
      |                   ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
    5 |     int i, j, k;
      |     ^~~
main.c:11:9: error: 'i' undeclared (first use in this function)
   11 |     for(i = 0; i < n; i++){
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:13: error: 'j' undeclared (first use in this function)
   12 |         for(j = 0; j < m; j++){
      |             ^
main.c:17:13: error: 'k' undeclared (first use in this function)
   17 |         for(k = 0; k < l; k++){
      |             ^
main.c:24:13: error: 'cn' undeclared (first use in this function); did you mean 'n'?
   24 |             cn = 0;
      |             ^~
      |             n
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:25: error: expected ';' before 'j'
   16 |         for(j = 0; j < l j++){
      |                         ^~
      |                         ;
main.c:30:21: error: expected expression before '<' token
   30 |         for(j = 0;  < c; l++){
      |                     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:30:21: error: expected expression before '<' token
   30 |         for(j = 0;  < c; l++){
      |                     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:24:13: error: expected expression before '}' token
   24 |             }
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:24:13: error: expected expression before '}' token
   24 |             }
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:25:13: error: expected expression before '}' token
   25 |             }
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:24:13: error: expected expression before '}' token
   24 |             }
      |             ^
Language: C

#include <stdio.h>
#define M 100
int main(void)
{
	int n,m,l;
	int a[M][M],b[M][M];
	
	long long ans[M][M];
	
	int i,j,k;
	
	scanf("%d %d %d",&n,&m,&l);
	
	for(i=0 ; i<n ; i++){	//aの入力
		for(j=0 ; j<m ; j++)
			scanf("%d",&a[i][j]);
	}
	for(i=0 ; i<m ; i++){	//bの入力
		for(j=0 ; j<l ; j++)
			scanf("%d",&b[i][j]);
	}
	
	for(i=0 ; i<n ; i++){	//n
		for(j=0 ; j<l ; j++){	//l
			for(k=0 ; k<m ; k++){	//m
				ans[i][j]+=#include <stdio.h>
#define M 100
int main(void)
{
	int n,m,l;
	int a[M][M],b[M][M];
	
	long long ans[M][M];
	
	int i,j,k;
	
	scanf("%d %d %d",&n,&m,&l);
	
	for(i=0 ; i<n ; i++){	//aの入力
		for(j=0 ; j<m ; j++)
			scanf("%d",&a[i][j]);
	}
	for(i=0 ; i<m ; i++){	//bの入力
		for(j=0 ; j<l ; j++)
			scanf("%d",&b[i][j]);
	}
	
	for(i=0 ; i<n ; i++){	//n
		for(j=0 ; j<l ; j++){	//l
			for(k=0 ; k<m ; k++){	//m
				ans[i][j]+=(long long)a[i][k]*b[k][j];
			}//m
		}//l
	}//n

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

	return 0;
}a[i][k]*b[k][j];
			}//m
		}//l
	}//n

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:26:44: error: stray '#' in program
   26 |                                 ans[i][j]+=#include <stdio.h>
      |                                            ^
main.c:26:45: error: 'include' undeclared (first use in this function)
   26 |                                 ans[i][j]+=#include <stdio.h>
      |                                             ^~~~~~~
main.c:26:45: note: each undeclared identifier is reported only once for each function it appears in
main.c:26:54: error: 'stdio' undeclared (first use in this function); did you mean 'stdin'?
   26 |                                 ans[i][j]+=#include <stdio.h>
      |                                                      ^~~~~
      |                                                      stdin
main.c:28:1: error: expected expression before 'int'
   28 | int main(void)
      | ^~~
Language: C

#include<stdio.h>

int element_multiplication(int row, int col, int * A, int * B);
int main(){
	int A[100][100];
	int B[100][100]
	int C[100][100];
	int row;
	int share;
	int col;
	int i, j;
	
	for(i = 0;i < 100;i++){
		for(j = 0;j < 100;j++){
			A[i][j] = 0;
			B[i][j] = 0;
			C[i][j] = 0;
		}
	}
	
	scanf("%d %d %d", &row, &share, &col);
	
	for(i = 0;i < row;i++){
		for(j = 0;j < share;j++){
			scanf("%d", A[i][j]);
		}
	}
	
	for(i = 0;i < share;i++){
		for(j = 0;j < col;j++){
			scanf("%d", B[i][j]);
		}
	}
	
	for(i = 0;i < row;i++){
		for(j = 0;j < share;j++){
			scanf("%d", A[i][j]);
		}
	}
	
	for(i = 0;i < row;i++){
		for(j = 0;j < col;j++){
			C[i][j] = element_multiplication(i, j, A, B);
		}
	}
	
	for(i = 0;i < row;i++){
		for(j = 0;j < col - 1;j++){
			printf("%d ", C[i][j]);
		}
		printf("%d\n", C[i][col - 1]);
	}
	
	retur 0;
}

int element_multiplication(int row, int col, int * A, int * B)
{
	int ans;
	int i;
	
	for(i = 0;i < 100;i++){
		ans += A[i][col] * B[row][i];
	}
	
	return ans;
}


Compiler output:
main.c: In function 'main':
main.c:6:24: error: expected ';' before 'int'
    6 |         int B[100][100]
      |                        ^
      |                        ;
    7 |         int C[100][100];
      |         ~~~             
main.c:16:25: error: 'B' undeclared (first use in this function)
   16 |                         B[i][j] = 0;
      |                         ^
main.c:16:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:43:64: error: passing argument 3 of 'element_multiplication' from incompatible pointer type [-Wincompatible-pointer-types]
   43 |                         C[i][j] = element_multiplication(i, j, A, B);
      |                                                                ^
      |                                                                |
      |                                                                int (*)[100]
main.c:3:52: note: expected 'int *' but argument is of type 'int (*)[100]'
    3 | int element_multiplication(int row, int col, int * A, int * B);
      |                                              ~~~~~~^
main.c:54:9: error: 'retur' undeclared (first use in this function)
   54 |         retur 0;
      |         ^~~~~
main.c:54:14: error: expected ';' before numeric constant
   54 |         retur 0;
      |              ^~
      |              ;
main.c: In function 'element_multiplication':
main.c:63:28: error: subscripted value is neither array nor pointer nor vector
   63 |                 ans += A[i][col] * B[row][i];
      |                            ^
main.c:63:42: error: subscripted value is neither array nor pointer nor vector
   63 |                 ans += A[i][col] * B[row][i];
      |                                          ^
Language: C

#include<stdio.h>
#define MATRIX_MAX 101
int main(){
	unsigned double A[MATRIX_MAX][MATRIX_MAX];
	unsigned double B[MATRIX_MAX][MATRIX_MAX];
	unsigned double C[MATRIX_MAX][MATRIX_MAX];
	int row;
	int share;
	int col;
	int i, j, k;
	
	for(i = 0;i < MATRIX_MAX;i++){
		for(j = 0;j < MATRIX_MAX;j++){
			A[i][j] = 0;
			B[i][j] = 0;
			C[i][j] = 0;
		}
	}
	
	scanf("%d %d %d", &row, &share, &col);
	
	for(i = 0;i < row;i++){
		for(j = 0;j < share;j++){
			scanf("%d", &A[i][j]);
		}
	}
	
	for(i = 0;i < share;i++){
		for(j = 0;j < col;j++){
			scanf("%d", &B[i][j]);
		}
	}
	

	for(i = 0;i < row;i++){
		for(j = 0;j < col;j++){
			for(k = 0;k < MATRIX_MAX;k++){
				C[i][j] += A[i][k] * B[k][j];
			}
		}
	}
	
	for(i = 0;i < row;i++){
		for(j = 0;j < col - 1;j++){
			printf("%d ", C[i][j]);
		}
		printf("%d\n", C[i][col - 1]);
	}
	
	return 0;
}




Compiler output:
main.c: In function 'main':
main.c:4:18: error: both 'unsigned' and 'double' in declaration specifiers
    4 |         unsigned double A[MATRIX_MAX][MATRIX_MAX];
      |                  ^~~~~~
main.c:5:18: error: both 'unsigned' and 'double' in declaration specifiers
    5 |         unsigned double B[MATRIX_MAX][MATRIX_MAX];
      |                  ^~~~~~
main.c:6:18: error: both 'unsigned' and 'double' in declaration specifiers
    6 |         unsigned double C[MATRIX_MAX][MATRIX_MAX];
      |                  ^~~~~~
Language: C

#include <stdio.h>

int main(){
  int i, j, k ,l, a, b, c, d, sum = 0;
  scanf("%d", &a);
  scanf("%d", &b);
  scanf("%d", &c);
  int d1[a][b];
  int d2[b][c];
  int d3[a][c];
  for(i = 0; i < a; i++) {
    for(j = 0; j < b; j++){
      scanf("%d", &d);
      d1[i][j] = d;
    }
  }
  for(i = 0; i < b; i++) {
    for(j = 0; j < c; j++){
      scanf("%d", &d);
      d2[i][j] = d;
    }
  }
  for(i = 0; i < a; i++) {
    for(j = 0; j < c; j++) {
      for(k = 0; k < b; k++) {
        sum += d1[i][k] * d2[k][j];
      }
      printf("%d", sum);
      sum = 0;
      if(j < c - 1) {
        printf(" ");
      }
    }
/*    if(i < a - 1) {
      printf("\n");
    }
  }*/

  printf("\n");

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:42:1: error: expected declaration or statement at end of input
   42 | }
      | ^