cooling pie problem. Accepted for sample test cases. Still getting WRONG ANSWER. pls help..

#include
#include
#include<stdio.h>
#include

using namespace std;

int main()
{
int n,t,x;

scanf("%d", &t);
while(t--){
	scanf("%d", &n);
	vector<int> a,b;
	
	for(int i=0; i<n; i++){
		scanf("%d", &x);	
		a.push_back(x);	
	}
	for(int i=0; i<n; i++){
		scanf("%d", &x);	
		b.push_back(x);	
	}

	sort(a.begin(), a.begin()+n);
	sort(b.begin(), b.begin()+n);
	int c=0;
	for(int i=0; i<n; i++){
		for(int j=0; j<n; j++){
			if(a[i] <= b[j]){
				b[j] = -1;
				c++;	
			}	
			
		}
	}
	a.erase(a.begin(), a.begin()+n);
	b.erase(b.begin(), b.begin()+n);

	cout << c << endl;
}
	
return 0;	

}

your code gives wrong answer for the following case:

1

3

10 100 100

20 30 40