#include <stdio.h>
int main () {
int ***array
= (int ***) malloc(3*sizeof(int**)); int i, j;
for (i = 0; i < 3; i++) {
array
[i
] = (int **)malloc(3*sizeof(int*)); for (j = 0; j < 3; j++) {
array
[i
][j
] = (int *)malloc(3*sizeof(int)); }
}
array[1][2][1] = 10;
printf("%d\n", array
[1][2][1]); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbiAoKSB7CiAgaW50ICoqKmFycmF5ID0gKGludCAqKiopIG1hbGxvYygzKnNpemVvZihpbnQqKikpOwogIGludCBpLCBqOwoKICBmb3IgKGkgPSAwOyBpIDwgMzsgaSsrKSB7CiAgICBhcnJheVtpXSA9IChpbnQgKiopbWFsbG9jKDMqc2l6ZW9mKGludCopKTsKICAgIGZvciAoaiA9IDA7IGogPCAzOyBqKyspIHsKICAgICAgYXJyYXlbaV1bal0gPSAoaW50ICopbWFsbG9jKDMqc2l6ZW9mKGludCkpOwogICAgfQogIH0KCiAgYXJyYXlbMV1bMl1bMV0gPSAxMDsKICBwcmludGYoIiVkXG4iLCBhcnJheVsxXVsyXVsxXSk7CiAgcmV0dXJuIDA7Cn0=