Whats wrong with this code?
#include
using namespace std;
void activitySelect(int s[100], int f[100], int N){
int i = 0;
int counter = 1;
for(int j = 1; j<N; j++){
if ((s[j] >= f[i]))
{
i=j;
counter++;
}
else
{
continue;
}
cout<<counter;
}
}
int main(){
int s[10000], f[10000];
int t;
int N;
int n, m;
cin>>t;
while(t>0){
cin>>N;
int M = N;
for(int k = 0; M>0; M--, k++){
cin>>s[k];
cin>>f[k];
}
activitySelect(s, f, N);
t--;
}
return 0;
}