Problem eelimination
User NgMinSong123
Submission Time 2024-01-26 16:46:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eelimination.cpp: In function ‘int main()’:
eelimination.cpp:20:15: error: no match for ‘operator[]’ (operand types are ‘std::stack<long long int>’ and ‘int’)
20 | if (temp > S[0]) {
| ^
eelimination.cpp:25:6: error: ‘class std::stack<long long int>’ has no member named ‘clear’
25 | S.clear();
| ^~~~~