title: C++ std::cin is stuck at 80 lines of input
body: <p>here is the code that I have </p>
  
  <pre><code>int main() 
  {
    int total = 0;
    int count = 0;
    std::cin &gt;&gt; total;
  
  
    int arr[4] = {0,0,0,0}; 
  
    while(count &lt; total) 
    { 
  
      std::cin&gt;&gt;arr[0]&gt;&gt;arr[1]&gt;&gt;arr[2]&gt;&gt;arr[3];
  
      count++;
      std::cout&lt;&lt;count&lt;&lt;std::endl;
  
    }
  
   return 0;
  
   }  
  </code></pre>
  
  <p>so the first line of input tells how many lines I need to read after..and each line has 4 numbers separated by space. Whenever the number of lines exceed 80(e.g 100), then the while loop gets stuck. I have no idea what causes the problem and I have tried a couple things like cin.clear() but they just didnt work....</p>
  
  <p><strong>Edit:</strong> std::cin stops reading after 80 lines of input with format like 10 20 210 10</p>
  
  <p>Xcode with LLVM didn't work...However g++ using terminal works.... <a href="http://melpon.org/wandbox/permlink/UXAMgM4ldn2K2NgU" rel="nofollow">http://melpon.org/wandbox/permlink/UXAMgM4ldn2K2NgU</a>
  here is the code that works on my terminal with g++ but not my xcode...</p>