- long number_of_tasks = xbt_str_parse_int(argv[1], "Invalid amount of tasks: %s");
- double comp_size = xbt_str_parse_double(argv[2], "Invalid computational size: %s");
- long comm_size = xbt_str_parse_int(argv[3], "Invalid communication size: %s");
- long workers_count = xbt_str_parse_int(argv[4], "Invalid amount of workers: %s");
+ long number_of_tasks = std::stol(args[1]);
+ double comp_size = std::stod(args[2]);
+ long comm_size = std::stol(args[3]);
+ long workers_count = std::stol(args[4]);