Problem minstack
User j0ashhh
Submission Time 2026-02-02 17:54:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp: In function ‘void push(int)’:
minstack.cpp:12:27: error: expected ‘)’ before ‘;’ token
12 | mn.push(min(X, mn.top());
| ~ ^
| )
minstack.cpp: In function ‘int getMin()’:
minstack.cpp:26:13: error: overloaded function with no contextual type information
26 | return min.top();
| ^~~