#include using namespace std; int main(){ int N,M,in1,in2,x,y,max=0; vector a,b,ans; cin >> N; for(int i=0;i> in1 >> in2; a.push_back(in1); b.push_back(in2); } cin >> M; vector num(M,0); for(int i=0;i> x >> y; for(int j=0;j=x && b[j]<=y) num[i]++; } } for(int i=0;i