| Problem | minstack |
|---|---|
| User | PlayVoltz |
| Submission Time | 2023-07-16 01:02:37 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
minstack.cpp: In function ‘void pop()’:
minstack.cpp:12:26: error: expected ‘;’ before ‘}’ token
12 | vect.erase(vect.end()-1)
| ^
| ;
13 | }
| ~
minstack.cpp: In function ‘int getMin()’:
minstack.cpp:20:25: error: no matching function for call to ‘min_element(std::vector<int>&)’
20 | return min_element(vect);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from minstack.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:5649:12: note: candidate: ‘template<class _FIter> constexpr _FIter std::min_element(_FIter, _FIter)’
5649 | inline min_element(_ForwardIterator __first, _ForwardIterator __last)
| ^~~~~~~~~~~
/usr/include/c++/9/bits/stl_algo.h:5649:12: note: template argument