title: getting multiple errors for this code within the for loop and for the variable value;
body: <p>used the variable value as a size of an array but it will not let me.   </p>
  
  <pre><code>int main () {
      double a,b,N,increment,value;
      value=0;
      cout&lt;&lt; "enter values for (a,b,N)";
      cin&gt;&gt;a;
      cin&gt;&gt;b;
      cin&gt;&gt;N;
      increment= (b-a)/(N-1);
      for (int i =0;i&lt;=b;i+=increment){
      value = value+i;    
      }
      double sivalues[value];
      for (int x=a;i&lt;=b;i+=increment){
          sivalues[a]=si(x);
          cout&lt;&lt;"si("&lt;&lt;x&lt;&lt;") = "&lt;&lt; sivalues[a];
      }
  </code></pre>