// Error: malloc recibe bytes. 10 bytes no alcanzan para 10 enteros.
#include <stdio.h>
#include <stdlib.h>

int main(void) {
    int *p = malloc(10);
    if (p == NULL) {
        return 1;
    }

    for (int i = 0; i < 10; i++) {
        p[i] = i;
    }
    printf("%d\n", p[9]);

    free(p);
    return 0;
}
