Question: C++ write a function called int smallest(vector numbers) that returns the smallest number in the vector. This is my code, I'm not sure what I'm
C++ write a function called int smallest(vector numbers) that returns the smallest number in the vector.
This is my code, I'm not sure what I'm doing wrong.
#include
using std::cin; using std::cout; using std::endl; using std::vector;
int smallest(vector int main() { vector return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
