title: Can't read first string
body: <p>Here is the code</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;cstring&gt;
  #define limit 25
  using namespace std;
  
  int main()
  {
      int te; //Number of test cases
      cin&gt;&gt;te;
  
  
      while(te)
      {
  
      char m[limit];
      char w[limit];
  
      cin.getline(m,limit); // This line is not getting executed for some reason
      cin.getline(w,limit);
  
      cout&lt;&lt;"m "&lt;&lt;m&lt;&lt;" "&lt;&lt;endl&lt;&lt;"w "&lt;&lt;w&lt;&lt;endl;
  
      te--;
  
      }
  
  }
  </code></pre>
  
  <p>For god knows what reason, the machine refuses to read m for the first test case. It reads and prints values for both m and w in the other cases, but for the first case, it refuses to read m.</p>
  
  <p>Sample:</p>
  
  <pre><code>INPUT
  1
  hello
  
  
  m is 
  w is hello
  
  
  2
  
  hello
  m 
  w  hello
  
  stack
  overflow
  
  m  stack
  w overflow
  </code></pre>