#include #include #include using namespace std; //Your code here void draw(vector shapes) { int h {40}, w{80}; for(int i {}; i < h; ++i) { for(int j{}; j < w; ++j) { char to_print {' '}; for (Shape s : shapes) { if (s.contains(j,i*2)) { to_print = s.get_symbol(); } } cout << to_print; } cout << endl; } }; int main() { vector shapes { Circle{10,70, 'x', 5}, Circle{20,70, 'x', 5}, Circle{30,70, 'x', 5}, Rectangle{5,59, '#', 31,6}, Rectangle{25,50, '#', 10,10}, Rectangle{23,44, '#', 14,6}, Rectangle{10,53, '#', 4,6}, Circle{12,48, '%', 3}, Circle{16,36, ';', 6}, Circle{28,20, '.', 9}, }; draw(shapes); }