Problem minstack
User yc
Submission Time 2025-05-29 06:44:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp: In function ‘int getMin()’:
minstack.cpp:24:10: error: no match for ‘operator[]’ (operand types are ‘std::stack<int>’ and ‘int’)
24 | return i[0];
| ^