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

Compile Error

eelimination.cpp: In function ‘int main()’:
eelimination.cpp:15:13: error: expected ‘;’ before ‘}’ token
15 | arr[i] = 0
| ^
| ;
16 | }
| ~
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();
| ^~~~~