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