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

Compile Error

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