title: error c2065 and many other error
body: <p>I don't know what is wrong in my code. I doing a OS time scheduling program, I only just starting to code and when I try it to just check if its run correct I got an error.</p>
  
  <p>this is my function:</p>
  
  <pre><code>void npefcfs()
  {
      int process;
      int bt[10];
      printf("    How many process do you like to use: ");
      scanf("%d",&amp;process);
      printf("\n  -----------------------------------------");
      printf("\n  Please Enter Burst time: ");
  
      for (int i = 0; i &lt; process; i++)
      {
          int num = 1;
          printf("\nP%d =",num);
          num = num + 1;
          scanf("%d", &amp;bt[i]);
      }
  
      for (int k = 0; k &lt; process; k++)
      {
          printf("%d", &amp;bt[k]);
      }
  }
  </code></pre>
  
  <p>I keep having an error like </p>
  
  <pre><code>error C2065: 'k' : undeclared identifier    
  error C2143: syntax error : missing ';' before '{'
  </code></pre>
  
  <p>I check it many time. I think I correctly declared K and there's shouldn't be missing ';'</p>