#include <iostream>
#include <vector>

float min;
float temp;
void computeMin(std::vector<float> nums){
	//You could just use the vector size() instead of needing the input.
	for (int i = 0; i < nums.size(); ++i){
		min = (nums[i] < min) ? nums[i] : min;
	}
	std::cout << "Incorrect Minimum Value: " << min << std::endl;
}

void computeCorMin(std::vector<float> numArray){
	for (int i = 0; i < numArray.size()-1; i++){
		temp = numArray[i+1];
		min = (numArray[i] < temp) ? numArray[i] : temp;
	}
	std::cout << "Correct Minimum Value: " << min << std::endl;
}

int main() {
	// your code goes here
	std::vector<float> arrayTest(3);
	arrayTest.push_back(3);
	arrayTest.push_back(2);
	arrayTest.push_back(1);
	arrayTest.push_back(4);
	
	computeMin(arrayTest);
	computeCorMin(arrayTest);
	
	return 0;
}