rectangle-union-area/main.cpp

14 lines
No EOL
315 B
C++

#include <cstdlib>
#include <iostream>
#include <cassert>
#include "areas.h"
int main() {
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);
return 0;
}