// Error a propósito: una función que promete no cambiar la imagen intenta cambiarla.
#include "../lab/image.h"

int count_pixels(const struct image *img) {
    img->width = 3;
    return img->width * img->height;
}

int main(void) {
    struct image img;

    if (!image_new(&img, 3, 2, 255, 0)) {
        return 1;
    }
    return count_pixels(&img);
}
