The school has a lost-and-found box, and box lists what's in it. Write in_the_box(box, thing): use find to look for thing, and return true if it's there, false if not. Names must match exactly, capitals included.
in_the_box({"umbrella", "scarf", "glove"}, "scarf")→Truein_the_box({"umbrella", "scarf"}, "hat")→Falsebool in_the_box(const vector<string> &box, const string &thing)#include <algorithm>
#include <string>
#include <vector>
using namespace std;
bool in_the_box(const vector<string> &box, const string &thing) {
// your code here: look for thing with find
return false;
}
Run tries the examples. When they look right, Submit.