i am getting compilation in busyman problem everytime i am submmiting the code
this is my code
#include
using namespace std;
int main() {struct interval
{ int m,n;};
interval a[100000];
bool compare(interval d, interval e){
return (d.m<e.m);
};
long long T;
std ::cin>>T>>"\n"
while(T–)
{ int N;
std::cin>>N>>"\n";
for(long long i=0; i<N; i++){
std::cin>>a[i].m>>"\t">>a[i].n>>"\n";
}
long long r= sizeof(a)/sizeof(a[0]);
sort(a,a+r, compare);
int count =1;
for(long long i=0; i<N;i++)
{ if(a[i].n<=a[i+1].m){count++;
}
std::cout<<count<<"\n";
}
return 0;
}