Problem brick
User PerihelionfromAphelion
Submission Time 2026-11-16 22:12:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int32_t main()’:
brick.cpp:14:14: error: cannot convert ‘std::stack<long long int>::empty’ from type ‘bool (std::stack<long long int>::)() const’ to type ‘bool’
14 | while (!st.empty && st.top() <= x) {
| ^~~~~
brick.cpp:14:14: error: in argument to unary !