#include <stdio.h>
#include<stdlib.h>
int main(){
int i,n,m,**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+CiNpbmNsdWRlPHN0ZGxpYi5oPgoKaW50IG1haW4oKXsKCWludCBpLG4sbSwqKmE7CglzY2FuZigiJWQgJWQiLCZuLCZtKTsKCWE9KGludCoqKW1hbGxvYyhzaXplb2YoaW50Kikqbik7Cglmb3IoaT0wO2k8bjtpKyspewoJCWFbaV09KGludCopbWFsbG9jKHNpemVvZihpbnQpKm0pOwoJfQoJZm9yKGk9MDtpPG47aSsrKXsKCQlmb3IoaW50IGo9MDtqPG07aisrKXsKCQkJYVtpXVtqXT1pKm0rajsKCQkJcHJpbnRmKCIlM2QiLGFbaV1bal0pOwoJCX0KCQlwcmludGYoIlxuIik7Cgl9Cglmb3IoaT0wO2k8bjtpKyspewoJCWZyZWUoYVtpXSk7Cgl9CglmcmVlKGEpOwoJcmV0dXJuIDA7Cn0=