#include <stdio.h>
#include <stdlib.h>
int main(){
int n, i;
int *a;
scanf("%d",&n
); //inputに4をいれている
a
= (int *)malloc(sizeof(int)*n
);
//領域の確保を失敗した場合、正しく確保できたら先頭アドレスを返す
if(a == NULL){
return 0;
}
//確保した領域にi+1を代入
for(i=0;i<n;i++){
a[i] = i + 1;
}
//確保した領域を表示
for(i=0;i<n;i++){
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCl7CiAgICBpbnQgbiwgaTsKICAgIGludCAqYTsKICAgIAogICAgc2NhbmYoIiVkIiwmbik7IC8vaW5wdXTjgas044KS44GE44KM44Gm44GE44KLCiAgICAKICAgIGEgPSAoaW50ICopbWFsbG9jKHNpemVvZihpbnQpKm4pOwogICAgCiAgICAvL+mgmOWfn+OBrueiuuS/neOCkuWkseaVl+OBl+OBn+WgtOWQiOOAgeato+OBl+OBj+eiuuS/neOBp+OBjeOBn+OCieWFiOmgreOCouODieODrOOCueOCkui/lOOBmQogICAgaWYoYSA9PSBOVUxMKXsKICAgICAgICBwcmludGYoIkVSUk9SXG4iKTsKICAgICAgICByZXR1cm4gMDsgCiAgICB9CiAgICAKICAgIC8v56K65L+d44GX44Gf6aCY5Z+f44GraSsx44KS5Luj5YWlCiAgICBmb3IoaT0wO2k8bjtpKyspewogICAgICAgIGFbaV0gPSBpICsgMTsKICAgIH0KICAgIAogICAgLy/norrkv53jgZfjgZ/poJjln5/jgpLooajnpLoKICAgIGZvcihpPTA7aTxuO2krKyl7CiAgICAgICAgcHJpbnRmKCIlZCAiLGFbaV0pOwogICAgfQogICAgCiAgICBwcmludGYoIlxuIik7CiAgICAKICAgIGZyZWUoYSk7IC8v5pyA5b6M44Gr6aCY5Z+f44KSZnJlZeOBmeOCiwogICAgCiAgICByZXR1cm4gMDsKfQo=