| Problem | minstack |
|---|---|
| User | jerrielchangjiebin |
| Submission Time | 2024-12-11 15:07:19 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
minstack.cpp:1:1: error: ‘vector’ does not name a type
1 | vector <int> v;
| ^~~~~~
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:4:2: error: ‘v’ was not declared in this scope
4 | v.push_back(X);
| ^
minstack.cpp: In function ‘void pop()’:
minstack.cpp:8:2: error: ‘v’ was not declared in this scope
8 | v.pop_back()
| ^
minstack.cpp: In function ‘int top()’:
minstack.cpp:12:9: error: ‘v’ was not declared in this scope
12 | return v.back();
| ^
minstack.cpp: In function ‘int getMin()’:
minstack.cpp:16:25: error: ‘v’ was not declared in this scope
16 | int min = *min_element(v.begin(), v.end());
| ^
minstack.cpp:16:13: error: ‘min_element’ was not declared in this scope
16 | int min = *min_element(v.begin(), v.end());
| ^~~~~~~~~~~