How to find minimum value from vector?
<p>How can I find the minimum value from a vector?</p>

<pre><code>int main()
{
    int v[100] = {5,14,2,4,6};
    int n = 5;
    int mic = v[0];
    for(int i=0;i&lt;v[n];i++)
    {
        if(v[i]&lt;mic)
        mic=v[i];
    }
    cout&lt;&lt;mic;
}
</code></pre>

<p>But is not working, what can I do?</p>
