Another C++ function error :/

I'm trying to make XP go to 0 after the player levels up but I don't know how to do that.

Here is what I have:

You are viewing a single comment. View All

Because the repl includes 400+ lines of code which would make the question harder to read.