I am getting this error. Launch Failed, binary not found.
I am new to C++, so I am unsure where to start with this.. it was compiling until I added “swap”.

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
“Binary not found” is the result of a failing compilation – check the compiler output, it says
assignment of read-only reference. That’s because you cannot assign to variablestr, since it’s declared asconstparameter to thepermutemethod.The solution depends on how your method should work:
permuteshould modify the variable given as parameterstr(i.e. the string you use as parameter whenpermuteis called), then remove theconstin the method declarationstrinside the method, and the string variable used for the method call should remain unchanged, then create a copy of it (e.g.std::string strCopy(str);) and work with that instead ofstr.