c ++ simple program not working
<p>Here is code of my program that do not working.This program have to calculate  result of  first number raised of second number. Where's the problem?</p>

<pre><code>#include &lt;iostream&gt;
    int main()
    {
        std::cout &lt;&lt; "iveskite betkoki skaiciu" &lt;&lt; std::endl;
        // "enter number:"
        int v1;
        std::cin &gt;&gt; v1;
        std::cout &lt;&lt; "iveskite skaiciu kiek kartu jus norit pakelti pirmaji skaiciu" &lt;&lt; std::endl;
        // "Enter the number of times you want to raise the first number"
        int v2;
        std::cin &gt;&gt; v2;
        int rez;
        // result
        for (int cnt = 0; cnt != v2; ++cnt)
            rez *= v1;  //  rez = rez * v1;
        std::cout &lt;&lt; v1
                  &lt;&lt; " pakeltas "
                  &lt;&lt; v2 &lt;&lt; " kartu ,yra: /t"
                  &lt;&lt; rez &lt;&lt; std::endl;
        return 0;
    }
</code></pre>
