This is the program I am currently working on, unfortunately my code is not compiling, and I can not figure out what is wrong with it. Someone help, please! I have an exam coming up and must master these topics.
//Write a program that takes in a number of values that should be input, and then that number of inputs from the keyboard. The program should store the numbers in a vector of doubles. After that, your program should read in a find value and a replace value, and then search through the vector, replacing every instance of the find value with the replace value (not including the first number in the vector). The final operation should be printing the new vector.
using namespace std;
double a, nums, find, replace;
cout << "Enter number of values: " << endl;
cin >> a;