Problem | brick |
---|---|
User | idayuan |
Submission Time | 2025-06-15 23:33:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:14:12: error: expected unqualified-id before ‘.’ token
14 | if (stack.empty()) {
| ^
brick.cpp:18:19: error: cannot convert ‘std::stack<long int>::empty’ from type ‘bool (std::stack<long int>::)() const’ to type ‘bool’
18 | while ( !brick.empty && (brick.top() <= height) ) {
| ^~~~~
brick.cpp:18:19: error: in argument to unary !