title: Why is my simple C++ "What is your name?" program not working?
body: <p><a href="https://i.stack.imgur.com/xgcfn.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>I keep getting the "undeclared identifier" error but I don't know what that means or how to fix this. Forgive me I am new to this!</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  int main(void);
       //Not sure why there is a Parse issue?
  {
       // insert code here...
       cout&lt;&lt; "Hello, what is your name?";
       cin&gt;&gt; Scotty;
  
       cout&lt;&lt; "Hello, "&lt;&lt;Scotty&lt;&lt;endl;
  
       return0;
   }
  </code></pre>
  
  <p>I was able to figure out the previous question of the undeclared identifier but now I am getting an 'Expected unqualified-id' error? Thanks for answering to those who have</p>