Problem carpark
User justin271828
Submission Time 2024-05-22 15:20:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

carpark.cpp: In function ‘int main()’:
carpark.cpp:18:32: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’
18 | while (!q.empty() && q.front == 1) one++;
| ~~~~~~~ ^~ ~
| | |
| | int
| <unresolved overloaded function type>
carpark.cpp:21:32: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’
21 | while (!q.empty() && q.front == 0) zero++;
| ~~~~~~~ ^~ ~
| | |
| | int
| <unresolved overloaded function type>
carpark.cpp:24:7: error: ‘zero’ was not declared in this scope; did you mean ‘zeros’?
24 | sort(zero.begin(), zero.end());