I am trying to solve MAXEP but I’m getting errors I don’t understand the concept behind the -1 input from grader
It’s nothing, just continue i.e. if you are using C++ then, when input -1 is given then you have to continue the loop.
wrong answer in short
check your approach again