My C++

Why is it that my code gives me an error whenever I add a new file to a Repl I created

You are viewing a single comment. View All

Hi, replit tries to compile both of the files into the same cpp file, so you have to configure the run button:

Here is the code you could add in your .replit file:

And then to run the other file: