title: How do I fix “for loop initial declaration used outside C99 mode” GCC error?
body: <p>I'm trying to solve but I don't know where a mistake.</p>
  
  <pre><code>int main() {
      for (int i = 0; i &lt; 3; i++) {
          pid_t pid = fork();
    }
      return 0;
  }
  </code></pre>