Problem minstack
User hyishigh
Submission Time 2024-12-11 15:17:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp: In function ‘void pop()’:
minstack.cpp:16:17: error: found ‘:’ in nested-name-specifier, expected ‘::’
16 | auto curr = http://stk.top();
| ^
| ::
minstack.cpp:16:13: error: ‘http’ has not been declared
16 | auto curr = http://stk.top();
| ^~~~
minstack.cpp:17:4: error: use of ‘curr’ before deduction of ‘auto’
17 | mp[curr]++;
| ^~~~
minstack.cpp:18:14: error: found ‘:’ in nested-name-specifier, expected ‘::’
18 | while(mp[http://pq.top()] > 0){
| ^
| ::
minstack.cpp:18:10: error: ‘http’ has not been declared
18 | while(mp[http://pq.top()] > 0){
| ^~~~
minstack.cpp:19:8: error: found ‘:’ in nested-name-specifier, expected ‘::’
19 | mp[http://pq.top()]--;
| ^
| ::
minstack.cpp:19:4: error: ‘http’ has not been declared
19 | mp[http: