title: No operator >> matches these operands ifstream
body: <p>I am coding in Visual Studio Code, using C++. I am getting the following error, "no operator >> matches these operands". Can you please tell me what I am doing wrong? (The error is occurring on the line, <code>fin &gt;&gt; N.</code>)</p>
  
  <pre><code>#include &lt;fstream&gt;
  
  int solve() {
      std::ifstream fin;
      fin.open("race3.in");
      int N;
      fin&gt;&gt;N;
  
      std::ofstream fout;
      fout.open("race3.out");
  
      fout.close();
      fin.close();
  }
  </code></pre>