2022-04-16 11:49:45 +02:00
|
|
|
#include <cstdlib>
|
|
|
|
#include <iostream>
|
|
|
|
#include <cassert>
|
2022-04-16 09:24:00 +02:00
|
|
|
|
2022-04-16 11:49:45 +02:00
|
|
|
#include "areas.h"
|
2022-04-16 09:24:00 +02:00
|
|
|
|
2022-04-16 11:41:48 +02:00
|
|
|
int main() {
|
2022-04-16 11:49:45 +02:00
|
|
|
srand(987192345);
|
|
|
|
std::vector<Rectangle> inst1 = get_random_instance(10,100);
|
|
|
|
Unit area = get_area_union(inst1);
|
|
|
|
std::cout << "Area is " << area << "." << std::endl;
|
|
|
|
assert(area == 6559);
|
2022-04-16 11:41:48 +02:00
|
|
|
return 0;
|
|
|
|
}
|