Problem minstack
User kahchun
Submission Time 2023-11-30 13:11:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp: In function ‘int getMin()’:
minstack.cpp:20:20: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int’ in return
20 | return min_element(v.begin(), v.end());
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >