Help me in solving MATADD problem

My issue

giving run time error

My code

#include <stdio.h>

int main() {
    int a[10][10],b[10][10],c[10][10],i,j,N,M;
    scanf("%d %d",&M,&N);
    for(i=0;i<M;i++){
    for(j=0;j<N;j++){
        scanf("%d",&a[i][j]);
    }
    }
    for(i=0;i<M;i++){
    for(j=0;j<N;j++){
        scanf("%d",&b[i][j]);
    }
    }
    for(i=0;i<M;i++){
    for(j=0;j<N;j++){
        c[i][j]=a[i][j]+b[i][j];
    }
    }
    for(i=0;i<M;i++){
    for(j=0;j<N;j++){
        printf("%d\t",c[i][j]);
    }
    printf("\n");
    }
}


Learning course: Programming and Problem solving using C
Problem Link: https://www.codechef.com/learn/course/ciet-programming-c/CIETPC28A/problems/MATADD

`type or paste code here`