#include <stdio.h>
#include <stdlib.h>
int main(){
int n, m, i, **a;
a
= (int **)malloc(sizeof(int*)*n
); for(i=0; i<n; i++) {
a
[i
] = (int *)malloc(sizeof(int)*m
); }
for(i=0; i<n; i++) {
for(int j=0; j<m; j++) {
a[i][j] = i*m+j;
}
}
for(i=0; i<n; i++) {
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCl7CiAgICBpbnQgbiwgbSwgaSwgKiphOwogICAgc2NhbmYoIiVkICVkIiwgJm4sICZtKTsKICAgIGEgPSAoaW50ICoqKW1hbGxvYyhzaXplb2YoaW50Kikqbik7CiAgICBmb3IoaT0wOyBpPG47IGkrKykgewogICAgCWFbaV0gPSAoaW50ICopbWFsbG9jKHNpemVvZihpbnQpKm0pOwogICAgfQogICAgZm9yKGk9MDsgaTxuOyBpKyspIHsKICAgIAlmb3IoaW50IGo9MDsgajxtOyBqKyspIHsKICAgIAkJYVtpXVtqXSA9IGkqbStqOwogICAgCQlwcmludGYoIiUzZCIsIGFbaV1bal0pOwogICAgCX0KCQlwcmludGYoIlxuIik7CiAgICB9CiAgICBmb3IoaT0wOyBpPG47IGkrKykgewogICAgCWZyZWUoYVtpXSk7CiAgICB9CiAgICBmcmVlKGEpOwogICAgcmV0dXJuIDA7Cn0K