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