#include
#include
#include
#include
using namespace std;
int main()
{
cout << "Enter num: " << endl;<br>vector array(istream_iterator(cin), { });
for (auto i : array) {
cout << i << " ";<br>}
auto result = min_element(array.begin(), array.end()) - array.begin();
cout<< "Min element: " << array.at(result);<br>
return 0;
}
___________________________
Ввод: 12 96 33 9 45
Вывод: 9