#include <stdio.h>
#include <stdlib.h>


void test(int ***bla){
	int n1, n2;
	(*bla) = malloc(sizeof(int *)*2);
	for(n1=0; n1<2; n1++){
		(*bla)[n1] = malloc(sizeof(int)*2);
	}
	for(n1=0; n1<2; n1++){
		for(n2=0; n2<2; n2++){
			(*bla)[n1][n2] = 1;
		}
	}

}

int main(int argc, char **argv){
	int **bla;
	int n1, n2;
	test(&bla);
	for(n1=0; n1<2; n1++){
		for(n2=0; n2<2; n2++){
			printf("%d\n", bla[n1][n2]);
		}
	}

	return 0;
}