Problem eelimination
User j0ashhh
Submission Time 2026-01-15 15:44:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eelimination.cpp: In function ‘int main()’:
eelimination.cpp:15:41: error: expression cannot be used as a function
15 | while(!st.empty() && (st.top()).first() < arr[i].first()){
| ^
eelimination.cpp:15:58: error: expression cannot be used as a function
15 | while(!st.empty() && (st.top()).first() < arr[i].first()){
| ^
eelimination.cpp:19:31: error: expression cannot be used as a function
19 | res[i] = (st.top()).second();
| ^