Problem minstack
User LiuZq
Submission Time 2024-04-14 15:23:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp: In function ‘void pop()’:
minstack.cpp:15:10: error: no match for ‘operator[]’ (operand types are ‘std::stack<int>’ and ‘std::stack<int>::size_type’ {aka ‘long unsigned int’})
15 | m=mini[mini.size()-1];
| ^