#ifndef INSTANCE_H #define INSTANCE_H #include class pos { public: pos(int x, int y); pos(); int dist2(const pos &b) const; int x, y; }; class warehouse { public: warehouse(pos p, std::vector disp); pos p; std::vector disp; }; class order { public: order(int id, pos p, std::map ord); pos p; int id; std::map ord; int best_wh; }; class instance { public: instance(); // read from stdin 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