#include <stdio.h>
#include <stdlib.h>
int main(){
int i,j,k;
int a,b;
int **mat;
mat
=(int **)malloc(sizeof(int*)*a
); for(i=0;i<a;i++)
mat
[i
]=(int *)malloc(sizeof(int)*b
);
for(i=0;i<a;i++){
for(j=0;j<b;j++){
mat[i][j]=1;
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCl7CiAgICBpbnQgaSxqLGs7CiAgICBpbnQgYSxiOwogICAgaW50ICoqbWF0OwogICAgc2NhbmYoIiVkICVkIiwmYSwmYik7CiAgICAKCW1hdD0oaW50ICoqKW1hbGxvYyhzaXplb2YoaW50KikqYSk7Cglmb3IoaT0wO2k8YTtpKyspCgltYXRbaV09KGludCAqKW1hbGxvYyhzaXplb2YoaW50KSpiKTsKICAgIAoJZm9yKGk9MDtpPGE7aSsrKXsKCQlmb3Ioaj0wO2o8YjtqKyspewoJCQltYXRbaV1bal09MTsKICAgICAgICB9Cgl9CglwcmludGYoIiVkICIsbWF0WzFdWzJdKTsKICAgIAogICAgZnJlZSAobWF0KTsKCgogICAgcmV0dXJuIDA7Cn0K