title: C++14 RAM Usage
body: <p>On submitting a solution on SPOJ, I've found that my program used 16M of memory even though my program used a single integer variable.</p>
  <p>Is this natural or am I missing something?</p>
  <pre><code>#include &lt;iostream&gt;
  
  int main(void)
  {
      int x;
      while(true)
      {
          std::cin &gt;&gt; x;
          if(x == 42)
          {
              break;
          }
          std::cout &lt;&lt; x &lt;&lt; &quot;\n&quot;;
      }
      return 0;
  }
  </code></pre>
  <p>The compiler used is gcc 6.</p>
  <p><img src="https://i.stack.imgur.com/fK2Zd.png" alt="Submission Info" /></p>