#include "stage.h"
#include "persons.h"
#include "catalog.h"
#include <string>
#include <map>
#include <vector>
#include <random>
#include <iostream>

int main(){
    Stage etapa(2);
    int i=0;
    CyclistCatalog c;
    c.Load("/home/yulalo/Escritorio/CARRERA/poo/p4/data/cyclists.csv");

    std::vector<Cyclist> cVect =c.Data();
    etapa.Simulate(cVect);
    std::map <std::string, int> delay=etapa.GetDelays();

    std::cout << "LISTADO DE CICLISTAS: \n" << std::endl;
    for (auto &a : delay){
        std::cout << cVect[i].GetName() << " | " << a.first << " | " << a.second << "\n" <<std::endl;
        i++;
    }

}