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