| Problem | minstack |
|---|---|
| User | CKCodeBreaker55 |
| Submission Time | 2024-12-11 14:56:44 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
minstack.cpp: In function ‘void pop()’:
minstack.cpp:15:5: error: ‘class std::vector<int>’ has no member named ‘pop’
15 | v.pop();
| ^~~
minstack.cpp: In function ‘int top()’:
minstack.cpp:22:25: error: expected ‘;’ before ‘}’ token
22 | return v[v.size() - 1]
| ^
| ;
23 | }
| ~
minstack.cpp: In function ‘int getMin()’:
minstack.cpp:27:20: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int’ in return
27 | return min_element(begin(v), end(v));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >