Problem brick
User ethantanaki
Submission Time 2026-11-13 09:43:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:20:11: error: cannot convert ‘std::stack<int>::empty’ from type ‘bool (std::stack<int>::)() const’ to type ‘bool’
20 | while(!a.empty) {
| ^~~~~
brick.cpp:20:11: error: in argument to unary !