title: Variable name expected
body: <p>I am creating a program in GP/Pari </p>
  
  <pre><code>foo()=
  {
      coefficient = vector(2);
      coefficient[1] = 1;
      coefficient[2] = 2;
  
      UserNum = Vector(2);
      UserNum[1] = 1;
      UserNum[2] = 2;
  
      n=2;
  
      for( r=1,n,
      sum = coefficient[r]* UserNum[r]^r );
  
  
  
  }
  </code></pre>
  
  <p>Why do i get a compilation error :</p>
  
  <blockquote>
    <p>variable name not expected</p>
  </blockquote>
  
  <p>It appears the error lies in the FOR LOOP but I cant tell whats wrong with my FOR LOOP , can someone help me thanks !!!</p>