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, fin >> N.
)
#include <fstream>
int solve() {
std::ifstream fin;
fin.open("race3.in");
int N;
fin>>N;
std::ofstream fout;
fout.open("race3.out");
fout.close();
fin.close();
}