#include<bits/stdc++.h>
using namespace std;
int paths(int m,int n,int a,int b,int* arr[b])
{
if(m<0||n<0)
return 0;
if(m==0&&n==0)
return 1;
if(arr[m][n]==1)
return 0;
return paths(m-1,n,a,b,arr)+paths(m,n-1,a,b,arr);
}
main()
{
int m,n,p;
cin>>m;
cin>>n;
cin>>p;
int arr[m][n];
for(int i=0;i<p;i++){
int a,b;
cin>>a>>b;
arr[a][b]=1;
}
cout<<paths(m-1,n-1,m,n,arr);
}
What is the problem in above code as it is not compiling?