Problem brick
User BlueSpace
Submission Time 2026-11-15 20:32:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:19:35: error: cannot convert ‘std::stack<int>::empty’ from type ‘bool (std::stack<int>::)() const’ to type ‘bool’
19 | } else if (s.top() != x && !s.empty) {
| ^~~~~
brick.cpp:19:35: error: in argument to unary !