Problem | minstack |
---|---|
User | Denzio321 |
Submission Time | 2023-07-22 19:16:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:10:27: error: no match for ‘operator>’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long int, long int> >, std::pair<long int, long int> >::value_type’ {aka ‘std::pair<long int, long int>’} and ‘int’)
10 | if(m.empty() or m.top() > X){
| ~~~~~~~ ^ ~
| | |
| | int
| __gnu_cxx::__alloc_traits<std::allocator<std::pair<long int, long int> >, std::pair<long int, long int> >::value_type {aka std::pair<long int, long int>}
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from minstack.cpp:1:
/usr/include/c++/9/bits/regex.h:1081:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operat