/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/06/04 13:26:50 by adjoly #+# #+# */ /* Updated: 2025/06/04 13:44:29 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ #include int main(int argc, char **argv) { if (argc < 2) { std::cerr << "Error: No input provided" << std::endl; return 1; } try { std::vector inputVector = parseInput(argc, argv); std::deque inputDeque(inputVector.begin(), inputVector.end()); std::cout << "Before: "; printContainer(inputVector); sortAndTime(inputVector, inputDeque); } catch (const std::exception &e) { std::cerr << "Error: " << e.what() << std::endl; return 1; } }