The company SpeedCube requires automation of its Rubik's cube tournaments. The idea for the new system should include the registration of competitors by category and the collection of results. Note that the tournament categories are: 3x3, 4x4, Pyraminx and Megaminx, in each category multiple competitors are registered and each competitor can participate in multiple categories if desired. The table of positions in each category is calculated based on the time of resolution of each competitor (winning the one who has achieved the shortest time) and if there is a tie, the tiebreaker is made taking into account the number of moves in which the competitor managed to solve that cube. Also include a functionality that generates a report with the winners of each category. -Solution written in C++ that includes at least 1 record, 2 classes and the main() function with test data. -It must incorporate the use of files.
nclude <iostream> #include <fstream> #include <string> #include <vector> #include <algorithm> #include <iterator> #include <sstream> #include <map> #include <set> #include <utility> #include <numeric> #include <limits> #include <cmath> #include <cstdlib> #include <cstdio> #include <cassert> #include <cstddef>