I\'m trying to ask the user to enter numbers that are put into a vector, then using a function call to count the numbers, why is this not working? I am only able to count t
#include using namespace std; int main() { int x,n; cin>>x; vector v; cout<<"Enter numbers:\n"; for(int i=0;i>n; v.push_back(n); } //displaying vector contents for(int p : v) cout<
A simple way to take input in vector.