#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] =j+1+b*i ;
}
}
for(i = 0; i < a; i++){
for(j = 0; j < b; j++){
}
}
for(i = 0; i < a; i++){
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCl7CiAgICBpbnQgaSwgaiwgayA9IDE7CiAgICBpbnQgYSwgYjsKICAgIGludCAqKm1hdDsgCgogICAgc2NhbmYoIiVkICVkIiwgJmEsICZiKTsKCiAgICBtYXQgPSAoaW50KiopbWFsbG9jKHNpemVvZihpbnQqKSphKTsgCiAgICBmb3IoaSA9IDA7IGkgPCBhOyBpKyspewogICAgICAgIG1hdFtpXSA9IChpbnQqKW1hbGxvYyhzaXplb2YoaW50KSpiKTsgCiAgICB9CgogICAgZm9yKGkgPSAwOyBpIDwgYTsgaSsrKXsKICAgICAgICBmb3IoaiA9IDA7IGogPCBiOyBqKyspewogICAgICAgICAgICBtYXRbaV1bal0gPWorMStiKmkgOyAKICAgICAgICB9CiAgICB9CgogICAgZm9yKGkgPSAwOyBpIDwgYTsgaSsrKXsKICAgICAgICBmb3IoaiA9IDA7IGogPCBiOyBqKyspewogICAgICAgICAgICBwcmludGYoIiVkICIsIG1hdFtpXVtqXSk7CiAgICAgICAgfQogICAgICAgIHByaW50ZigiXG4iKTsKICAgIH0KCiAgICBmb3IoaSA9IDA7IGkgPCBhOyBpKyspewogICAgICAgIGZyZWUobWF0W2ldKTsgCiAgICB9CiAgICBmcmVlKG1hdCk7IAoKICAgIHJldHVybiAwOwp9Cg==