title: How do I read in inputs into an array in c++?
body: <pre><code>#include&lt;iostream&gt;
  Using namespace std;
  int main() {
      int i;
      char array[5];
      for (i = 0; i &lt; 5; i++) {
          cin &gt;&gt; array[i];
      }
      for (i = 0; i; &lt; 5; i++) {
          cout &lt;&lt; array[i] &lt;&lt; endl;
      }
      return 0;
  }
  </code></pre>
  
  <p>This is my code. I face some compilation errors. Please advise. </p>