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