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