#include <stdio.h>
#include <string.h>
void processShapes(struct shape *shapes[], int length) {
for (int i = 0; i < length; i++) {
if (strcmp(shapes[i]->type, "rectangle") == 0) {
struct rectangle *rect = &shapes[i]->u.rect;
int width = rect->bottom_right.x - rect->top_left.x;
int height = rect->bottom_right.y - rect->top_left.y;
printf("Rectangle area: %d\n", width * height);
} else if (strcmp(shapes[i]->type, "point") == 0) {
struct point *pt = &shapes[i]->u.center;
printf("Point coordinates: (%d, %d)\n", pt->x, pt->y);
}
}
}