#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++){
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCgppbnQgbWFpbigpewogICAgaW50IGksaixrPTE7CiAgICBpbnQgYSxiOwogICAgaW50ICoqbWF0OwogICAgc2NhbmYoIiVkICVkIiwmYSwmYik7CgogICAgIG1hdD0oaW50ICoqKW1hbGxvYyhzaXplb2YoaW50ICopKmEpOwogICAgZm9yIChpPTA7aTxhO2krKykgewogICAgICAgIG1hdFtpXT0oaW50ICopbWFsbG9jKHNpemVvZihpbnQpKmIpOwogICAgfQoJZm9yKGk9MDtpPGE7aSsrKXsKCQlmb3Ioaj0wO2o8YjtqKyspewoJCQltYXRbaV1bal09aysrOwoJCQkKCQl9Cgl9CiAgICAKICAgIAogICAKICAgIGZvcihpPTA7aTxhO2krKyl7CiAgICAgICAgZm9yKGo9MDtqPGI7aisrKXsKICAgICAgICAgICAgcHJpbnRmKCIlZCAiLG1hdFtpXVtqXSk7CiAgICAgICAgfQogICAgICAgIHByaW50ZigiXG4iKTsKICAgIH0KICAgIGZyZWUobWF0KTsKCiAgICByZXR1cm4gMDsKfQo=