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