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