#include <iostream> #include <algorithm> #include <vector> using namespace std; int main() { vector<int> a = {1,5,6,7,8,3}; cout << *min_element(a.begin(), a.end()); return 0; }