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