Assign first item of queue to int : <p>I am trying to assign the first item of a queue to an int</p>

<pre><code>queue&lt;int&gt; q;
int cur = q.pop();
</code></pre>

<p>put it gives me an error </p>

<pre><code>Types 'int' and 'void' are not compatible
</code></pre>
