fork download
  1. #include <deque>
  2. #include <algorithm>
  3. #include <iostream>
  4.  
  5. int main() {
  6. std::deque<int> d = {0, 1, 2, 5, 8, 4, 1, 6, 4};
  7. std::cout << *std::max_element(d.begin(), d.end()) << '\n';
  8. return 0;
  9. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
8