// Project Identifier: 9B734EC0C043C5A836EA0EBE4BEFEA164490B2C7 #include <vector> #include <string> #include <iostream> #include <getopt.h> #include <cstdlib> #include <iomanip> #include "xcode_redirect.hpp" #include "TSP.h" using namespace std; int main(int argc, char **argv){ // SETUP xcode_redirect(argc, argv); std::cout << std::setprecision(2); // show 2 decimal places //std::cerr << std::fixed << std::showpoint << std::setprecision(2); // debug std::cout << std::fixed; // no scientific notation // INPUT Line_args lineargs; process_cmd_line(argc, argv, lineargs); //PART A if(lineargs.is_mst){ vector<Pokemon> container; get_pokemon(container); check_the_mst(container); run_the_mst(container); } /* // PART A if(lineargs.is_mst){ std::vector<Location> container; get_locations(container); check_mst(container); run_mst(container); } */ // PART B if(lineargs.is_fasttsp){ std::vector<Vertex> container; get_vertices(container); run_fasttsp(container); } // PART C if(lineargs.is_opttsp){ OPT opt = OPT(); get_vertices(opt.container); run_opttsp(opt); //test_run_opttsp(opt.container); } return 0; }