How can you pass a vector<pair<int, int> > into a function?
<p>If I try to declare the function as <code>void some_function(vector&lt;pair&lt;int, int&gt; &gt; theVector)</code>, I get an error (presumably from the comma after "<code>pair&lt;int</code>."  Any ideas on how I can pass this vector with pairs into a function?</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;vector&gt;

void someFunc(int x, int y, vector&lt;pair&lt;int, int&gt; &gt; hello);

int main()
{
    int x = 0;
    int y = 5;

    vector&lt;pair&lt;int, int&gt; &gt; helloWorld;
    helloWorld.push_back(make_pair(1,2));

    someFunc(x,y,helloWorld);
}

void someFunc(int x, int y, vector&lt;pair&lt;int, int&gt; &gt; hello)
{
    cout &lt;&lt; "I made it." &lt;&lt; endl;
}
</code></pre>

<p>Error: 'vector' has not been declared</p>
