title: Cannot compile C++ code in Atom with g++: no such file or directory
body: <p>I'm running a simple C++ program and I'm getting <a href="https://i.stack.imgur.com/RZr0a.png" rel="nofollow noreferrer">an error</a> with g++. My code:</p>
  <pre><code>using namespace std;
  
  int main()
  {
      int divisor, dividend, quotient, remainder;
  
      cout &lt;&lt; &quot;Enter dividend: &quot;;
      cin &gt;&gt; dividend;
  
      cout &lt;&lt; &quot;Enter divisor: &quot;;
      cin &gt;&gt; divisor;
  
      quotient = dividend / divisor;
      remainder = dividend % divisor;
  
      cout &lt;&lt; &quot;Quotient = &quot; &lt;&lt; quotient &lt;&lt; endl;
      cout &lt;&lt; &quot;Remainder = &quot; &lt;&lt; remainder;
  
      return 0;
  } 
  </code></pre>
  <p>The error I'm getting:</p>
  <pre><code>g++: error: /mnt/c/Users/User/Documents/assignment/hello.cpp: No such file or directory
  g++: fatal error: no input files
  compilation terminated.
  </code></pre>