It helps to read the documentation, that would have told you
queue<int> q;
...
int cur = q.front();
q.pop();
solved Assign first item of queue to int [closed]
It helps to read the documentation, that would have told you
queue<int> q;
...
int cur = q.front();
q.pop();
solved Assign first item of queue to int [closed]