Why it's showing an error in incrementing vector elements by using ++ or -- operator?
#include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> a[1000];
for(int i=0;i<1000;i++){
a[i]++;
a[1000-i-1]--;
}
return 0;
}