Problem eelimination
User Yizhou
Submission Time 2024-06-30 12:20:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eelimination.cpp:2:20: error: expected ‘;’ before ‘int’
2 | using namespace std
| ^
| ;
3 | int main() {
| ~~~
eelimination.cpp: In function ‘int main()’:
eelimination.cpp:8:16: error: ‘heights’ was not declared in this scope
8 | cin >> heights[i];
| ^~~~~~~
eelimination.cpp:13:30: error: ‘heights’ was not declared in this scope
13 | while (!s.empty() && heights[s.top()] < heights[i]) {
| ^~~~~~~