Problem brick
User Hiya123
Submission Time 2024-08-05 07:11:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:19:9: error: expected ‘(’ before ‘dq’
19 | while dq (!dq.empty && dq.back <= X){
| ^~
| (
brick.cpp:19:17: error: cannot convert ‘std::deque<int>::empty’ from type ‘bool (std::deque<int>::)() const noexcept’ to type ‘bool’
19 | while dq (!dq.empty && dq.back <= X){
| ^~~~~
brick.cpp:19:17: error: in argument to unary !
brick.cpp:19:34: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<=’
19 | while dq (!dq.empty && dq.back <= X){
| ~~~~~~~ ^~ ~
| | |
| | int
| <unresolved overloaded function type>
brick.cpp:19:39: error: expected ‘)’ before ‘{’ token
19 | while dq (!dq.empty && dq.back <= X)