a is an array of vectors. Are you sure you want an array of vectors? If you did, then make sure your function accepts an array of vectors. If you wanted just a vector, but with 100001 elements, then you need to call the constructor, not declare an array:
Code:
vector<pair<int, int> >a(100001);