std::vector<int>a[100];
declares an array containing 100 vectors. So a[i]
is a vector, not an int
. You can't read a vector directly from input.
If you want vectors of size 100, instead of an array of 100 vectors, the syntax is
std::vector<int> a(100);