Problem pairofballs
User wongyikai
Submission Time 2023-12-13 12:00:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pairofballs.cpp: In function ‘int main()’:
pairofballs.cpp:35:69: error: no match for ‘operator[]’ (operand types are ‘std::queue<int>’ and ‘int’)
35 | if (top2[a[top[temp][0]].front()] == 2) pairs.push(a[top[temp][0]][0]);
| ^
pairofballs.cpp:37:69: error: no match for ‘operator[]’ (operand types are ‘std::queue<int>’ and ‘int’)
37 | if (top2[a[top[temp][1]].front()] == 2) pairs.push(a[top[temp][1]][0]);
| ^