SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to use the function std::max_element(), the way you have to do it is:
std::max_element()
double max = *max_element(vector.begin(), vector.end()); cout<<"Max value: "<<max<<endl;
I hope this can help.