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

Compile Error

carpark.cpp: In function ‘int main()’:
carpark.cpp:15:17: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’
15 | while (q.front == 0) q.pop();
| ~~~~~~~ ^~ ~
| | |
| | int
| <unresolved overloaded function type>
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++;
|