title: Why does "Using Uninitialized memory 'guess'" occur here?
body: <p>I've just started programming. I've followed a tutorial video and entered the code like he did. It works for him but not for me and I can't find the mistake. It could be a typo but I've checked multiple times. The required packages to run iostream and so forth are installed. It says the error message in the title:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
  
      int secretNum = 7;
      int guess;
  
      while (secretNum != guess) {
          cout &lt;&lt; "Enter guess please: ";
          cin &gt;&gt; guess;
      }
  
      cout &lt;&lt; "Win";
  
      return 0;
  
  }
  </code></pre>