I keep getting an error while running this code. I've searched for a solution for similar errors, but as a junior programmer, I can't understand solutions meant to be for different codes. Here is my code. Please give me a solution with demonstration.
#include <iostream>
#include <vector>
#include <numeric>
#include <algorithm>
using namespace std;
int main() {
vector <int> listed_elements {10,6,11};
auto min_value = min_element(listed_elements.begin(), listed_elements.end());
cout << "The smallest element on the list is: ";
cout << min_value << endl;
return 0;
}