title: C++: Error C4700 uninitialized local variable “ ” used
body: <p>I have written out the code out but I keep getting an error saying:  "Error C4700 uninitalized local variable "zi_saptamana" used.  "Error C4700 uninitialized local variable "dar" used.  I've done If/if-else/else nesting before but I've never ran into this error. I am new to C++ and still learning.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;conio.h&gt;
  
  using namespace std;
  
  int main() {
      int zi_saptamana, a, s, d, f, g, h, j; char dar;
  
      switch (zi_saptamana)
      {
      case 1:
          cout &lt;&lt; " a"; cin &gt;&gt; a;
          break;
      case 2:
          cout &lt;&lt; " s"; cin &gt;&gt; s;
          break;
      case  3:
          cout &lt;&lt; " d"; cin &gt;&gt; d;
          break;
      case 4:
          cout &lt;&lt; "  f"; cin &gt;&gt; f;
      case 5:
          cout &lt;&lt; "  g"; cin &gt;&gt; g;
      case 6:
          cout &lt;&lt; " h"; cin &gt;&gt; h;
      case 7:
          cout &lt;&lt; "  j"; cin &gt;&gt; j;
      default:
          cout &lt;&lt; " nu stiu ce zi este aceasta te rog sa alegi o zi de la 1 la 7";
          break;
      }
      cout &lt;&lt; " ce zi a saptamanii doresti?";
      cin &gt;&gt; zi_saptamana;
      cout &lt;&lt; " doresti sa alegi o alta zi din saptamana ??\n_&gt; ";
      if (dar == 'y' || dar == 'Y');
      {
          main();
      }
      return 0;
  }
  </code></pre>