title: Why do I get an "Unreferenced Local Variable" warning? (C++)
body: <p>When I do something like</p>
  
  <pre><code>#include&lt;iostream&gt;
  int main()
  {
      int x;
      return 0;
  }
  </code></pre>
  
  <p>I get a warning about x being an unreferenced local variable (I assume becuase I created a variable, then did not use it), why does this give me a warning though?</p>