Problem minstack
User RogueRanger
Submission Time 2026-03-13 19:31:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp: In function β€˜int top()’:
minstack.cpp:18:11: error: named return values are no longer supported
18 | int top() return st.back();
| ^~~~~~
minstack.cpp:20:36: error: expected β€˜{’ at end of input
20 | int getMin() return minarray.back();
| ^