Problem minstack
User dakingwawin
Submission Time 2024-12-11 15:12:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp:6:21: error: conversion from ‘int’ to non-scalar type ‘std::vector<int>’ requested
6 | vector<int> pmin = (INT_MAX);
| ^
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:9:7: error: ‘class std::vector<int>’ has no member named ‘puch_back’; did you mean ‘push_back’?
9 | pmin.puch_back(min(X,duck.back());
| ^~~~~~~~~
| push_back
minstack.cpp:9:35: error: expected ‘)’ before ‘;’ token
9 | pmin.puch_back(min(X,duck.back());
| ~ ^
| )