title: C++ error at the last line of code
body: <p>I'm a begineer in C++ programming but I know the basics. 
  I recently started writing a simple game. The program chooses a random number 
  (1-100) and you have to guess it. There are 2 modes:</p>
  
  <p>Normal - whenever you enter a number program tells you if it's bigger than the random or smaller.</p>
  
  <p>hard - no clues, just pure luck.</p>
  
  <p>Everything was running ok but when I added some fixes to the displayed text the program won't compile. I use CODE::BLOCKS.
  Screenshot: <a href="http://scr.hu/81tw/m6cm0" rel="nofollow">http://scr.hu/81tw/m6cm0</a>
  I really apreciate your help.</p>
  
  <p>Full code below:</p>
  
  <pre><code>   #include &lt;iostream&gt;
  #include &lt;cstdlib&gt;
  #include &lt;time.h&gt;
  
  using namespace std;
  
  int number_normal;
  int number_hard;
  int guess_normal;
  int guess_hard;
  int tries_normal=0;
  int tries_hard=0;
  int mode;
  int main()
  {
  
  
  {
      cout&lt;&lt;"Choose your mode..."&lt;&lt;endl;
      cout&lt;&lt;"Normal (Press 1) or Hard (Press 2)"&lt;&lt;endl;
      cin&gt;&gt;mode;
      if(mode=1)
          cout&lt;&lt;"Normal mode chosen."&lt;&lt;endl;
              goto normal;
      if(mode=2)
          cout&lt;&lt;"Hard mode chosen!"&lt;&lt;endl;
              goto hard;
              return 0;
  }
  {
  
      hard:
  
          cout&lt;&lt;"I chose a random number in a range from 1 to 100, can you      guess it?"&lt;&lt;endl;
          srand(time(NULL));
          number_hard = rand()%100+1;
  
      while(guess_hard!=number_hard)
  
          tries_hard++;
          cout&lt;&lt;"Enter your guess!(Try "&lt;&lt;tries_hard&lt;&lt;"): ";
          cin&gt;&gt;guess_hard;
  
          if(guess_hard=number_normal)
              cout&lt;&lt;"Respect! You guessed it in "&lt;&lt;tries_hard&lt;&lt;" tries!"&lt;&lt;endl;
  }
  {
  
      normal:
  
          cout&lt;&lt;"I chose a random number from 1 to 100. I will give you some clues! Try to guess it."&lt;&lt;endl;
          srand(time(NULL));
          number_normal = rand()%100+1;
  
      while(guess_normal!=number_normal)
  
          tries_normal++;
          cout&lt;&lt;"Enter your guess!(Try "&lt;&lt;tries_normal&lt;&lt;"): ";
          cin&gt;&gt;guess_normal;
  
          if(guess_normal==number_normal)
              cout&lt;&lt;"Congrats! You're lucky. (Won in "&lt;&lt;tries_normal&lt;&lt;" tries!)"&lt;&lt;endl;
  
          if(guess_normal&lt;number_normal)
              cout&lt;&lt;"Too low."&lt;&lt;endl;
          else if(guess_normal&gt;number_normal)
              cout&lt;&lt;"That's too much!"&lt;&lt;endl;
  
          system("pause");
          return 0;
  }
  </code></pre>