#include <stdio.h>
#include <stdlib.h>
int main(){
int i,j,k;
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+CiNpbmNsdWRlIDxzdGRsaWIuaD4KIAppbnQgbWFpbigpewogICAgaW50IGksaixrOwogICAgaW50IGEsYjsKICAgIGludCAqKm1hdDsKICAgIHNjYW5mKCIlZCAlZCIsJmEsJmIpOwogCiAgICBtYXQgPSAoaW50ICoqKW1hbGxvYyhzaXplb2YoaW50ICopICogYSk7CiAgICBmb3IoaSA9IDA7IGkgPCBhOyBpKyspewogICAgICAgIG1hdFtpXSA9IChpbnQgKiltYWxsb2Moc2l6ZW9mKGludCkgKiBiKTsKICAgIH0KIAoJZm9yKGkgPSAwOyBpIDwgYTsgaSsrKXsKICAgICAgICBmb3IoaiA9IDA7IGogPCBiOyBqKyspewogICAgICAgICAgICBtYXRbaV1bal0gPSBrKys7CiAgICAgICAgfQogICAgfQogCiAgICBmb3IoaT0wO2k8YTtpKyspewogICAgICAgIGZvcihqPTA7ajxiO2orKyl7CiAgICAgICAgICAgIHByaW50ZigiJWQgIixtYXRbaV1bal0pOwogICAgICAgIH0KICAgICAgICBwcmludGYoIlxuIik7CiAgICB9CiAKICAgIGZvcihpID0gMDsgaSA8IGE7IGkrKyl7CiAgICAgICAgZnJlZShtYXRbaV0pOwogICAgfQogICAgZnJlZShtYXQpOwogCiAgICByZXR1cm4gMDsKfQ==