Aug 8 When i Run the second file I get the output of the first file in c++ I tried to solve it but couldn’t pls help if anyone can :')

**Question: Aug 8

When i Run the second file I get the output of the first file i tried to solve it but couldn’t pls help if anyone can :')**

Repl link/Link to where the bug appears:

Screenshots, links, or other helpful context:

code snippet

Hi @NewtGaming1 , welcome to the forums!
You can create header file (.hpp) for multiple files, as creating multiple .cpp files will cause an error.
Next, could you send the link to the repl?

1 Like