Activity selection problem

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

bool compare( int a,int b)
{
return a<b;
}
void max_activity(int m[],int n[],int N)
{
int i=0;
cout<<i;

for(int j=1;j<N;j++)
{
	if(m[j]>n[i])
	{
		cout<<j;
		i=j;
	}
}

}
int main() {
int m[];
int n[];

int N = sizeof(m)/sizeof(int);
N = sizeof(n)/sizeof(int);

for(int i=0;i<N;i++)
{
cin>>m[i]>>n[i];
}
max_activity(m,n,N,compare);
return 0;
}
This is the code ,but it is having a compilation error as storage size of m and n are not given. Help me resolving

@ankita_10 please provide your code in coding blocks IDE.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.