El colegio tiene una caja de objetos perdidos, y box lista lo que hay dentro. Escribe in_the_box(box, thing): usa find para buscar thing y devuelve true si está, false si no. Los nombres deben coincidir exactamente, mayúsculas incluidas.
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) {
// tu código aquí: busca thing con find
return false;
}
Ejecutar prueba los ejemplos. Cuando salgan bien, Enviar.