4 Answers
New AnswerYour binary() function has return type `int`, so you can't return a std::vector from it. Change the return type of binary() to `vector<int>`. Also, on lines 50, 68 and 60, you are using the name `and` for your variable. `and` is a keyword in C++, so you can't use it as a variable name. Change it to something else.
Jay Matthews Sir why's the vector not returning here https://code.sololearn.com/c5nDeIo5twO3/?ref=app
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message