int n , d ; cin>>n>>d; vector v(n); for (int x; cin>>x;) v.push_back(x);
this is the code I wrote and if