Data structures Each Movie object consists of: • title (std::string). Unique, for the purposes of this task treat it as index. • duration (std::string). • actors (std::vector of std::string). • watchlist (std::vector of int) - list of User ID's for users who have this movie on the watchlist. • favorites (std::vector of int) - list of User ID's for users who have this movie in the favorites list. • ratings (std::vector of Rating). Each Rating object consists of: • userId (int) - User ID of the corresponding user. • rating (int) - Integer rating (0-10) the user gave the Movie. Each User object consists of: • userId (int) • email (std::string) • friends (std::vector of int) - User ID's of this user's friends.
Example output Your implementation should return the following output for userId=62289: ["The Dark Knight", "The Godfather", "Pulp Fiction"]"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)