Problem eelimination
User sharelletqx
Submission Time 2026-04-25 09:44:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eelimination.cpp: In function ‘int main()’:
eelimination.cpp:10:2: error: ‘stacj’ was not declared in this scope
10 | stacj<int> stk;
| ^~~~~
eelimination.cpp:10:8: error: expected primary-expression before ‘int’
10 | stacj<int> stk;
| ^~~
eelimination.cpp:13:10: error: ‘stk’ was not declared in this scope; did you mean ‘std’?
13 | while(!stk.empty() and heights[stk.top()]<height[i]){
| ^~~
| std
eelimination.cpp:13:45: error: ‘height’ was not declared in this scope; did you mean ‘heights’?
13 | while(!stk.empty() and heights[stk.top()]<height[i]){
| ^~~~~~
| heights
eelimination.cpp:16:7: error: ‘stk’ was not declared in this scope; did you mean ‘std’?
16 | if (stk.empty()){
| ^~~
| std