#ifndef INSTANCE_H #define INSTANCE_H #include class pos { public: pos(int x, int y); int dist2(pos &b); int x, y; }; class warehouse { public: warehouse(pos p, std::vector disp); pos p; std::vector disp; }; class order { public: order(pos p, std::map ord); pos p; std::map ord; }; class instance { public: instance(); // read from stdin int find(pos p, int id, int quantity); // cherche une warehouse proche de x/y int row, col, drones, max_load; int T; // deadline int P; // # products int W; // # warehouses int C; // # orders std::vector weights; std::vector wh; std::vector orders; }; #endif