title: |error: expected ')' before ';' token| Declaration of variables doubts
body: <p>I have a problem whit my code, because he keeps showing me that error: <code>expected ')' before ';' token|</code>, in the rows inside the <code>for</code>. I think I'm not declaring this correctly for C++.</p>
  
  <pre><code>int main(void) {
  
  
      float Z = 1.0;
      float R = 1.0;
      float ks = 1.0;
      float ke = 1.0;
      float kw = 1.0;
      int nr = 5.0;
      int nz = 5.0;
      int i;
      int j;
      int a;
      float vetorq = 1;
      float kn = 1;
  
      float T[nr][nz] = {0};
  
  
      for (a = 0; a &lt; 100; a++){
  
  
      for (i = 0; i &lt; nz; i++){
          for (j = 0; j &lt; nr; j++){
  
  
              float an = (i + (1 / 2)) * ((pow(R, 2))*nz*kn/ ((pow(nr, 2))* Z);
              float ae = (i + 2) * Z * ke / nz;
              float aw = ((i+1) * kw * Z) / nz;
              float asul = (i + (1 / 2)) * (pow(R, 2))*nz*ks / (Z * (pow(nr, 2));
              float ap = an + ae + aw + asul;
              float aef = 0;
  </code></pre>