title: C++ Code Blocks | I keep getting the same message when compiling " .......was not declared in the scope. How do i declare something in the scope?
body: <p>I'm new to C++ and I keep getting a message saying something was not declared in the scope. How do I declare stuff in the scope?</p>
  
  <p>This is a bit of code I wrote, when compiling I get the message that system and return0 where not declared in the scope, how do you fix the code? How do I declare stuff in the scope?</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main()
  
  {
      cout&lt;&lt;"hello";
      system("PAUSE";
  
      return0;
  }
  </code></pre>