*max_element(a.begin(), a.end());
auto max = *max_element(vector.begin(), vector.end());
cout<<*max_element(a.begin(), a.end())<<endl;
Code Example |
---|
Cpp :: c++ messagebox |
Cpp :: initialize 3d vector c++ |
Cpp :: c++ count bits |
Cpp :: c++ SDL2 window |
Cpp :: split vector in half cpp |
Cpp :: c++ erase last element of set |
Cpp :: check if key exists in map c++ |
Cpp :: check compiler version c++ |
Cpp :: how to sort in descending order c++ |
Cpp :: loop through map c++ |
Cpp :: inserting at start in vector c++ |
Cpp :: c++ pass argument to singleton |
Cpp :: Plus (programming language) |
Cpp :: resizing dynamic array c++ |
Cpp :: c++ console color some digits |
Cpp :: program to convert int to int array c++ |
Cpp :: qt qmessagebox |
Cpp :: getline cin is being skipped |
Cpp :: do you need inline for template in C++ |
Cpp :: how to get 4 decimal places in c++ |
Cpp :: c++ std::fmin |
Cpp :: cpp rand |
Cpp :: Array sum in c++ stl |
Cpp :: how to get last element of set in c++ |
Cpp :: structure and function c++ |
Cpp :: kruskal in c++ |
Cpp :: how to traverse a linked list in c++ |
Cpp :: input 2d vector c++ |
Cpp :: cases in cpp |
Cpp :: c++ construnctor |