Sphere online judge finds my code wrong although its working correct for hundreds of test cases
<p>Question goes like this..
Input</p>

<pre><code>n [the number of multiplications &lt;= 1000]
l1 l2 [numbers to multiply (at most 10000 decimal digits each)]

Text grouped in [ ] does not appear in the input file.
</code></pre>

<p>Output</p>

<pre><code>The results of multiplications.
</code></pre>

<p>My code..</p>

<pre><code>#include&lt;iostream&gt;
#include&lt;vector&gt;
using namespace std;
int main()
{
    long int n,a,b,c,t;
    vector&lt;long int&gt; v(1000);
    vector&lt;long int&gt;::iterator p;
    cin&gt;&gt;n;
    t=n;
    p=v.begin();
    while(t&gt;0)
    {
        cin&gt;&gt;a;
        cin&gt;&gt;b;
        *p=a;
        *(p+1)=b;
        p+=2;
        t--;
    }
    t=n;
    p=v.begin();
    while(t&gt;0)
    {
        c= (*p) * (*(p+1));
        cout&lt;&lt;"\n"&lt;&lt;c;
        p+=2;
        t--;
    }
  return 0;
}
</code></pre>
