#include <stdio.h>
#include <stdlib.h>
int main(){
int i,j;
int a,b;
int **mat;
mat
=(int*)malloc(sizeof(int)*a
); for(int x=0;x<a;x++){
mat
[x
]=(int**)malloc(sizeof(int*)*b
); }
for(int y=0;y<a;y++){
for(int z=0;z<b;z++){
mat[y][z]=y*b+z+1;
}
}
for(i=0;i<a;i++){
for(j=0;j<b;j++){
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCgoKaW50IG1haW4oKXsKICAgIGludCBpLGo7CiAgICBpbnQgYSxiOwogICAgaW50ICoqbWF0OwogICAgc2NhbmYoIiVkICVkIiwmYSwmYik7CiAgICBtYXQ9KGludCopbWFsbG9jKHNpemVvZihpbnQpKmEpOwogICAgZm9yKGludCB4PTA7eDxhO3grKyl7CiAgICAgICBtYXRbeF09KGludCoqKW1hbGxvYyhzaXplb2YoaW50KikqYik7CiAgICB9CiAgICBmb3IoaW50IHk9MDt5PGE7eSsrKXsKICAgICAgIGZvcihpbnQgej0wO3o8Yjt6KyspewogICAgICAgICAgbWF0W3ldW3pdPXkqYit6KzE7CiAgICAgICB9CiAgICB9CiAgICBmb3IoaT0wO2k8YTtpKyspewogICAgICAgIGZvcihqPTA7ajxiO2orKyl7CiAgICAgICAgICAgIHByaW50ZigiJWQgIixtYXRbaV1bal0pOwogICAgICAgIH0KICAgICAgICBwcmludGYoIlxuIik7CiAgICB9CiAgICAKICAgIGZyZWUobWF0KTsKCgogICAgcmV0dXJuIDA7Cn0K